IFluidPauseAuthDex ​
Title: Fluid Pause Auth DEX Interface
Interface for the DEX-layer pause auth helper used by FluidPauseAuth. DEX user pause is side-level: a whole side toggles the pool's pause bit, borrow without payback freezes the user's borrow limits (restored by the matching unpause), and the other half-side shapes revert PauseAuthDex__PartialSideNotSupported.
Functions ​
pauseVault ​
Pauses selected vault operations at the DEX layer.
function pauseVault(uint256 vaultId_, bool pauseSupply_, bool pauseWithdraw_, bool pauseBorrow_, bool pausePayback_)
external
returns (address vault_, bool actedSupply_, bool actedWithdraw_, bool actedBorrow_, bool actedPayback_);Parameters
| Name | Type | Description |
|---|---|---|
vaultId_ | uint256 | Vault ID to pause. |
pauseSupply_ | bool | Whether to pause supply/deposit operations. |
pauseWithdraw_ | bool | Whether to pause withdraw operations. |
pauseBorrow_ | bool | Whether to pause borrow operations. |
pausePayback_ | bool | Whether to pause payback operations. |
Returns
| Name | Type | Description |
|---|---|---|
vault_ | address | Resolved vault address. |
actedSupply_ | bool | Whether supply/deposit pause state changed. |
actedWithdraw_ | bool | Whether withdraw pause state changed. |
actedBorrow_ | bool | Whether borrow state changed (pause bit, or limits freeze for borrow-only). |
actedPayback_ | bool | Whether payback pause state changed. |
unpauseVault ​
Unpauses selected vault operations at the DEX layer.
function unpauseVault(
uint256 vaultId_,
bool unpauseSupply_,
bool unpauseWithdraw_,
bool unpauseBorrow_,
bool unpausePayback_
) external returns (address vault_, bool actedSupply_, bool actedWithdraw_, bool actedBorrow_, bool actedPayback_);Parameters
| Name | Type | Description |
|---|---|---|
vaultId_ | uint256 | Vault ID to unpause. |
unpauseSupply_ | bool | Whether to unpause supply/deposit operations. |
unpauseWithdraw_ | bool | Whether to unpause withdraw operations. |
unpauseBorrow_ | bool | Whether to unpause borrow operations. |
unpausePayback_ | bool | Whether to unpause payback operations. |
Returns
| Name | Type | Description |
|---|---|---|
vault_ | address | Resolved vault address. |
actedSupply_ | bool | Whether supply/deposit unpause state changed. |
actedWithdraw_ | bool | Whether withdraw unpause state changed. |
actedBorrow_ | bool | Whether borrow state changed (pause bit, or frozen limits restored). |
actedPayback_ | bool | Whether payback unpause state changed. |
pauseSwapAndArbitrage ​
Pauses swap and arbitrage on a DEX pool.
function pauseSwapAndArbitrage(uint256 dexId_) external returns (address dex_, bool acted_);Parameters
| Name | Type | Description |
|---|---|---|
dexId_ | uint256 | DEX ID to pause. |
Returns
| Name | Type | Description |
|---|---|---|
dex_ | address | Resolved DEX address. |
acted_ | bool | Whether swap and arbitrage pause state changed. |
unpauseSwapAndArbitrage ​
Unpauses swap and arbitrage on a DEX pool.
function unpauseSwapAndArbitrage(uint256 dexId_) external returns (address dex_, bool acted_);Parameters
| Name | Type | Description |
|---|---|---|
dexId_ | uint256 | DEX ID to unpause. |
Returns
| Name | Type | Description |
|---|---|---|
dex_ | address | Resolved DEX address. |
acted_ | bool | Whether swap and arbitrage unpause state changed. |
pauseSmartLending ​
Pauses the smart lending contract on a DEX pool; both flags must be set, else 100143.
function pauseSmartLending(uint256 dexId_, bool pauseSupply_, bool pauseWithdraw_)
external
returns (address dex_, address smartLending_, bool actedSupply_, bool actedWithdraw_);Parameters
| Name | Type | Description |
|---|---|---|
dexId_ | uint256 | DEX ID whose smart lending contract should be paused. |
pauseSupply_ | bool | Whether to pause smart lending supply/deposit operations. |
pauseWithdraw_ | bool | Whether to pause smart lending withdraw operations. |
Returns
| Name | Type | Description |
|---|---|---|
dex_ | address | Resolved DEX address. |
smartLending_ | address | Resolved smart lending address. |
actedSupply_ | bool | Whether smart lending supply/deposit pause state changed. |
actedWithdraw_ | bool | Whether smart lending withdraw pause state changed. |
unpauseSmartLending ​
Unpauses the smart lending contract on a DEX pool; both flags must be set, else 100143.
function unpauseSmartLending(uint256 dexId_, bool unpauseSupply_, bool unpauseWithdraw_)
external
returns (address dex_, address smartLending_, bool actedSupply_, bool actedWithdraw_);Parameters
| Name | Type | Description |
|---|---|---|
dexId_ | uint256 | DEX ID whose smart lending contract should be unpaused. |
unpauseSupply_ | bool | Whether to unpause smart lending supply/deposit operations. |
unpauseWithdraw_ | bool | Whether to unpause smart lending withdraw operations. |
Returns
| Name | Type | Description |
|---|---|---|
dex_ | address | Resolved DEX address. |
smartLending_ | address | Resolved smart lending address. |
actedSupply_ | bool | Whether smart lending supply/deposit unpause state changed. |
actedWithdraw_ | bool | Whether smart lending withdraw unpause state changed. |
pauseUser ​
Pauses a user's selected operations on a DEX pool. Reverts PauseAuthDex__InvalidParams if a requested side has no row on the pool.
function pauseUser(
uint256 dexId_,
address user_,
bool pauseSupply_,
bool pauseWithdraw_,
bool pauseBorrow_,
bool pausePayback_
) external returns (address dex_, bool actedSupply_, bool actedWithdraw_, bool actedBorrow_, bool actedPayback_);Parameters
| Name | Type | Description |
|---|---|---|
dexId_ | uint256 | DEX ID where the user should be paused. |
user_ | address | User address to pause on the DEX. |
pauseSupply_ | bool | Whether to pause supply/deposit operations. |
pauseWithdraw_ | bool | Whether to pause withdraw operations. |
pauseBorrow_ | bool | Whether to pause borrow operations. |
pausePayback_ | bool | Whether to pause payback operations. |
Returns
| Name | Type | Description |
|---|---|---|
dex_ | address | Resolved DEX address. |
actedSupply_ | bool | Whether supply/deposit pause state changed. |
actedWithdraw_ | bool | Whether withdraw pause state changed. |
actedBorrow_ | bool | Whether borrow state changed (pause bit, or limits freeze for borrow-only). |
actedPayback_ | bool | Whether payback pause state changed. |
unpauseUser ​
Unpauses a user's selected operations on a DEX pool. Reverts PauseAuthDex__InvalidParams if a requested side has no row on the pool.
function unpauseUser(
uint256 dexId_,
address user_,
bool unpauseSupply_,
bool unpauseWithdraw_,
bool unpauseBorrow_,
bool unpausePayback_
) external returns (address dex_, bool actedSupply_, bool actedWithdraw_, bool actedBorrow_, bool actedPayback_);Parameters
| Name | Type | Description |
|---|---|---|
dexId_ | uint256 | DEX ID where the user should be unpaused. |
user_ | address | User address to unpause on the DEX. |
unpauseSupply_ | bool | Whether to unpause supply/deposit operations. |
unpauseWithdraw_ | bool | Whether to unpause withdraw operations. |
unpauseBorrow_ | bool | Whether to unpause borrow operations. |
unpausePayback_ | bool | Whether to unpause payback operations. |
Returns
| Name | Type | Description |
|---|---|---|
dex_ | address | Resolved DEX address. |
actedSupply_ | bool | Whether supply/deposit unpause state changed. |
actedWithdraw_ | bool | Whether withdraw unpause state changed. |
actedBorrow_ | bool | Whether borrow state changed (pause bit, or frozen limits restored). |
actedPayback_ | bool | Whether payback unpause state changed. |