ICooler
This contract will hold the tokens during the cooldown period
Public Functions
pendingWithdrawals
function pendingWithdrawals(contract IEToken eToken) external view returns (uint256)
Returns the amount of pending (scheduled) withdrawals for a given eToken
Parameters
| Name |
Type |
Description |
| eToken |
contract IEToken |
The eToken (see {EToken}) |
Return Values
| Name |
Type |
Description |
| [0] |
uint256 |
The amount in currency that is pending |
cooldownPeriod
function cooldownPeriod(contract IEToken eToken, address owner, uint256 amount) external view returns (uint40)
Returns the cooldown period in seconds required for withdrawals in a given eToken
Parameters
| Name |
Type |
Description |
| eToken |
contract IEToken |
The eToken (see {EToken}) |
| owner |
address |
The owner of the tokens requested to withdraw |
| amount |
uint256 |
The amount requested to withdraw |
Return Values
| Name |
Type |
Description |
| [0] |
uint40 |
The cooldown period in seconds |