IAssetVault
IAssetVault
AssetNotFound
error AssetNotFound()
Thrown when the asset is not is found among vault inventory.
VaultIsInRecoveryMode
error VaultIsInRecoveryMode()
Thrown when the function is called on the vault in recovery mode.
AssetReturnIsNotAllowed
error AssetReturnIsNotAllowed()
Thrown when the asset return is not allowed, due to the vault state or the caller permissions.
AssetDepositIsNotAllowed
error AssetDepositIsNotAllowed()
Thrown when the asset deposit is not allowed, due to the vault state or the caller permissions.
RecoveryModeActivated
event RecoveryModeActivated(address account)
Emitted when the vault is switched to recovery mode by `account`.
switchToRecoveryMode
function switchToRecoveryMode() external
Activates asset recovery mode. Emits a {RecoveryModeActivated} event.
withdrawERC20Tokens
function withdrawERC20Tokens(contract IERC20 token, address to, uint256 amount) external
Send ERC20 tokens to an address.
pause
function pause() external
Pauses the vault.
unpause
function unpause() external
Unpauses the vault.
assetClass
function assetClass() external pure returns (bytes4)
Returns vault asset class.
Name | Type | Description |
---|---|---|
[0] | bytes4 | Asset class ID. |
metahub
function metahub() external view returns (address)
Returns the Metahub address.
isRecovery
function isRecovery() external view returns (bool)
Returns vault recovery mode flag state.
Name | Type | Description |
---|---|---|
[0] | bool | True when the vault is in recovery mode. |