IAssetRecoveryFacet
The AssetRecoveryFacet contract interface
This is a security feature to ensure that no assets are locked in the contract
This contract allows for the recovery of assets from the contract
Functions
Section titled “Functions”recoverERC20
Section titled “recoverERC20”Recovers an ERC20 token from the contract
This ensures that the token is not the deposit token or a reward token
Only the admin can call this function
function recoverERC20(address tokenAddress) external;Parameters
| Name | Type | Description |
|---|---|---|
tokenAddress | address | The address of the token to recover |
recoverETH
Section titled “recoverETH”Recovers all ETH from the contract
This is safe because the contract is not supposed to hold any ETH, just WETH
Only the admin can call this function
function recoverETH() external;