WithdrawalManager
Last updated
Last updated
Inherits: , ,
Returns the revision number of the contract
Needs to be defined in the inherited class as a constant.
Returns
revision_
uint256
The revision number
Initializes the Withdrawal Manager.
Function is invoked by the proxy contract when the Withdrawal Manager Contract is added to the PoolAddressesProvider of the market.
Parameters
provider_
IPoolAddressesProvider
The address of the PoolAddressesProvider.
cycleDuration_
uint256
The total duration of a withdrawal cycle.
windowDuration_
uint256
The duration of the withdrawal window.
Pool admin sets a new configuration for the withdrawal manager.
Parameters
cycleDuration_
uint256
The total duration of a withdrawal cycle.
windowDuration_
uint256
The total duration of a withdrawal window.
Add more shares for withdrawal.
Parameters
shares_
uint256
The amount of shares to add.
owner_
address
The owner of the shares.
Remove shares from withdrawal.
Parameters
shares_
uint256
The amount of shares to remove from withdrawal.
owner_
address
The owner of the shares.
Process the exit of requested shares of a owner.
Parameters
requestedShares_
uint256
The amount of shares to redeem.
owner_
address
The owner of the shares.
Returns
redeemableShares_
uint256
The amount of redeemable shares.
resultingAssets_
uint256
The corresponding amount of assets with the redeemable shares.
Checks if the owner has a withdrawal request in the exit window.
Parameters
owner_
address
The owner address to check.
Returns
isInExitWindow_
bool
True if the owner has a withdrawal request in the exit window.
Gets the total amount of liquidity locked in the current cycle.
Returns
lockedLiquidity_
uint256
The total amount of liquidity locked in the current cycle.
Previews the amount of shares and assets that can be redeemed.
Parameters
owner_
address
The owner of the shares.
shares_
uint256
The amount of shares to redeem.
Returns
redeemableShares_
uint256
The amount of redeemable shares.
resultingAssets_
uint256
The corresponding amount of assets with the redeemable shares.
Gets the configuration of a config id.
Parameters
configId_
uint256
The id of the config.
Returns
config_
WM.CycleConfig
The config.
Gets the configuration of a given cycle id.
Parameters
cycleId_
uint256
The cycle id.
Returns
config_
WM.CycleConfig
The configuration used at the cycle id.
Gets the configuration of the current cycle id.
Returns
config_
WM.CycleConfig
The configuration used at the current cycle id.
Gets the current cycle id.
Returns
cycleId_
uint256
The id of the current cycle.
Gets the starting time of a window for a given cycle id.
Parameters
cycleId_
uint256
The id of the cycle.
Returns
windowStart_
uint64
The starting time of the window.
Gets the start and end time of a window for a given cycle id.
Parameters
cycleId_
uint256
The id of the cycle.
Returns
windowStart_
uint64
The starting time of the window.
windowEnd_
uint64
The ending time of the window.