Skip to content

IFluidPauseAuthLiquidity ​

Git Source

Title: Fluid Pause Auth Liquidity Interface

Interface for the Liquidity-layer pause auth helper used by FluidPauseAuth.

Functions ​

pauseVault ​

Pauses selected vault operations at the Liquidity layer.

solidity
function pauseVault(uint256 vaultId_, bool pauseSupply_, bool pauseWithdraw_, bool pauseBorrow_, bool pausePayback_)
    external
    returns (
        address vault_,
        bool actedSupply_,
        bool actedWithdraw_,
        bool actedBorrow_,
        bool actedPayback_,
        uint256 skippedUserClass_
    );

Parameters

NameTypeDescription
vaultId_uint256Vault ID to pause.
pauseSupply_boolWhether to pause supply/deposit operations.
pauseWithdraw_boolWhether to pause withdraw operations.
pauseBorrow_boolWhether to pause borrow operations.
pausePayback_boolWhether to pause payback operations.

Returns

NameTypeDescription
vault_addressResolved vault address.
actedSupply_boolWhether supply/deposit pause state changed.
actedWithdraw_boolWhether withdraw pause state changed.
actedBorrow_boolWhether borrow pause state changed.
actedPayback_boolWhether payback pause state changed.
skippedUserClass_uint256Liquidity user class skipped by the helper, or zero if none.

unpauseVault ​

Unpauses selected vault operations at the Liquidity layer.

solidity
function unpauseVault(
    uint256 vaultId_,
    bool unpauseSupply_,
    bool unpauseWithdraw_,
    bool unpauseBorrow_,
    bool unpausePayback_
)
    external
    returns (
        address vault_,
        bool actedSupply_,
        bool actedWithdraw_,
        bool actedBorrow_,
        bool actedPayback_,
        uint256 skippedUserClass_
    );

Parameters

NameTypeDescription
vaultId_uint256Vault ID to unpause.
unpauseSupply_boolWhether to unpause supply/deposit operations.
unpauseWithdraw_boolWhether to unpause withdraw operations.
unpauseBorrow_boolWhether to unpause borrow operations.
unpausePayback_boolWhether to unpause payback operations.

Returns

NameTypeDescription
vault_addressResolved vault address.
actedSupply_boolWhether supply/deposit unpause state changed.
actedWithdraw_boolWhether withdraw unpause state changed.
actedBorrow_boolWhether borrow unpause state changed.
actedPayback_boolWhether payback unpause state changed.
skippedUserClass_uint256Liquidity user class skipped by the helper, or zero if none.

pauseDex ​

Pauses selected DEX-as-Liquidity-user operations.

solidity
function pauseDex(uint256 dexId_, bool pauseSupply_, bool pauseWithdraw_, bool pauseBorrow_, bool pausePayback_)
    external
    returns (
        address dex_,
        bool actedSupply_,
        bool actedWithdraw_,
        bool actedBorrow_,
        bool actedPayback_,
        uint256 skippedUserClass_
    );

Parameters

NameTypeDescription
dexId_uint256DEX ID to pause at the Liquidity layer.
pauseSupply_boolWhether to pause supply/deposit operations.
pauseWithdraw_boolWhether to pause withdraw operations.
pauseBorrow_boolWhether to pause borrow operations.
pausePayback_boolWhether to pause payback operations.

Returns

NameTypeDescription
dex_addressResolved DEX address.
actedSupply_boolWhether supply/deposit pause state changed.
actedWithdraw_boolWhether withdraw pause state changed.
actedBorrow_boolWhether borrow pause state changed.
actedPayback_boolWhether payback pause state changed.
skippedUserClass_uint256Liquidity user class skipped by the helper, or zero if none.

unpauseDex ​

Unpauses selected DEX-as-Liquidity-user operations.

solidity
function unpauseDex(
    uint256 dexId_,
    bool unpauseSupply_,
    bool unpauseWithdraw_,
    bool unpauseBorrow_,
    bool unpausePayback_
)
    external
    returns (
        address dex_,
        bool actedSupply_,
        bool actedWithdraw_,
        bool actedBorrow_,
        bool actedPayback_,
        uint256 skippedUserClass_
    );

Parameters

NameTypeDescription
dexId_uint256DEX ID to unpause at the Liquidity layer.
unpauseSupply_boolWhether to unpause supply/deposit operations.
unpauseWithdraw_boolWhether to unpause withdraw operations.
unpauseBorrow_boolWhether to unpause borrow operations.
unpausePayback_boolWhether to unpause payback operations.

Returns

NameTypeDescription
dex_addressResolved DEX address.
actedSupply_boolWhether supply/deposit unpause state changed.
actedWithdraw_boolWhether withdraw unpause state changed.
actedBorrow_boolWhether borrow unpause state changed.
actedPayback_boolWhether payback unpause state changed.
skippedUserClass_uint256Liquidity user class skipped by the helper, or zero if none.

pauseTokens ​

Pauses selected token operations at the Liquidity layer.

solidity
function pauseTokens(
    address[] calldata tokens_,
    bool pauseSupply_,
    bool pauseWithdraw_,
    bool pauseBorrow_,
    bool pausePayback_
)
    external
    returns (
        bool[] memory actedSupply_,
        bool[] memory actedWithdraw_,
        bool[] memory actedBorrow_,
        bool[] memory actedPayback_
    );

Parameters

NameTypeDescription
tokens_address[]Token addresses to pause.
pauseSupply_boolWhether to pause supply operations.
pauseWithdraw_boolWhether to pause withdraw operations.
pauseBorrow_boolWhether to pause borrow operations.
pausePayback_boolWhether to pause payback operations.

Returns

NameTypeDescription
actedSupply_bool[]Per-token flags for supply pause state changes.
actedWithdraw_bool[]Per-token flags for withdraw pause state changes.
actedBorrow_bool[]Per-token flags for borrow pause state changes.
actedPayback_bool[]Per-token flags for payback pause state changes.

unpauseTokens ​

Unpauses selected token operations at the Liquidity layer.

solidity
function unpauseTokens(
    address[] calldata tokens_,
    bool unpauseSupply_,
    bool unpauseWithdraw_,
    bool unpauseBorrow_,
    bool unpausePayback_
)
    external
    returns (
        bool[] memory actedSupply_,
        bool[] memory actedWithdraw_,
        bool[] memory actedBorrow_,
        bool[] memory actedPayback_
    );

Parameters

NameTypeDescription
tokens_address[]Token addresses to unpause.
unpauseSupply_boolWhether to unpause supply operations.
unpauseWithdraw_boolWhether to unpause withdraw operations.
unpauseBorrow_boolWhether to unpause borrow operations.
unpausePayback_boolWhether to unpause payback operations.

Returns

NameTypeDescription
actedSupply_bool[]Per-token flags for supply pause state changes.
actedWithdraw_bool[]Per-token flags for withdraw pause state changes.
actedBorrow_bool[]Per-token flags for borrow pause state changes.
actedPayback_bool[]Per-token flags for payback pause state changes.

pauseUserSupply ​

Pauses a user's supply-side token operations at the Liquidity layer.

solidity
function pauseUserSupply(address user_, address[] calldata tokens_, bool pauseSupply_, bool pauseWithdraw_)
    external
    returns (bool[] memory actedSupply_, bool[] memory actedWithdraw_);

Parameters

NameTypeDescription
user_addressLiquidity user address to pause.
tokens_address[]Supply tokens to pause.
pauseSupply_boolWhether to pause supply operations.
pauseWithdraw_boolWhether to pause withdraw operations.

Returns

NameTypeDescription
actedSupply_bool[]Per-token flags for supply pause state changes.
actedWithdraw_bool[]Per-token flags for withdraw pause state changes.

pauseUserBorrow ​

Pauses a user's borrow-side token operations at the Liquidity layer.

solidity
function pauseUserBorrow(address user_, address[] calldata tokens_, bool pauseBorrow_, bool pausePayback_)
    external
    returns (bool[] memory actedBorrow_, bool[] memory actedPayback_);

Parameters

NameTypeDescription
user_addressLiquidity user address to pause.
tokens_address[]Borrow tokens to pause.
pauseBorrow_boolWhether to pause borrow operations.
pausePayback_boolWhether to pause payback operations.

Returns

NameTypeDescription
actedBorrow_bool[]Per-token flags for borrow pause state changes.
actedPayback_bool[]Per-token flags for payback pause state changes.

unpauseUserSupply ​

Unpauses a user's supply-side token operations at the Liquidity layer.

solidity
function unpauseUserSupply(address user_, address[] calldata tokens_, bool unpauseSupply_, bool unpauseWithdraw_)
    external
    returns (bool[] memory actedSupply_, bool[] memory actedWithdraw_);

Parameters

NameTypeDescription
user_addressLiquidity user address to unpause.
tokens_address[]Supply tokens to unpause.
unpauseSupply_boolWhether to unpause supply operations.
unpauseWithdraw_boolWhether to unpause withdraw operations.

Returns

NameTypeDescription
actedSupply_bool[]Per-token flags for supply pause state changes.
actedWithdraw_bool[]Per-token flags for withdraw pause state changes.

unpauseUserBorrow ​

Unpauses a user's borrow-side token operations at the Liquidity layer.

solidity
function unpauseUserBorrow(address user_, address[] calldata tokens_, bool unpauseBorrow_, bool unpausePayback_)
    external
    returns (bool[] memory actedBorrow_, bool[] memory actedPayback_);

Parameters

NameTypeDescription
user_addressLiquidity user address to unpause.
tokens_address[]Borrow tokens to unpause.
unpauseBorrow_boolWhether to unpause borrow operations.
unpausePayback_boolWhether to unpause payback operations.

Returns

NameTypeDescription
actedBorrow_bool[]Per-token flags for borrow pause state changes.
actedPayback_bool[]Per-token flags for payback pause state changes.