WithdrawalManager (Cyclical)
\
Functions
addShares
addShares
Add shares to the withdrawal manager.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Amount of shares to add. |
1 |
|
|
| Address of the owner of shares. |
\
asset
asset
Gets the asset address used in this withdrawal manager.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Address of the asset. |
\
cycleConfigs
cycleConfigs
Gets the configuration for a given config id.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 | `` |
|
|
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Identifier of the first withdrawal cycle using this configuration. |
1 |
|
|
| Timestamp of the first withdrawal cycle using this configuration. |
2 |
|
|
| Duration of the withdrawal cycle. |
3 |
|
|
| Duration of the withdrawal window. |
\
exitCycleId
exitCycleId
Gets the id of the cycle that account can exit on.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 | `` |
|
|
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
factory
factory
The address of the proxy factory.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
|
\
getConfigAtId
getConfigAtId
Gets the configuration of a given cycle id.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The id of the cycle. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The configuration info corresponding to the cycle. |
\
getCurrentConfig
getCurrentConfig
Gets the configuration of the current cycle id.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The configuration info corresponding to the cycle. |
\
getCurrentCycleId
getCurrentCycleId
Gets the id of the current cycle.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
|
\
getRedeemableAmounts
getRedeemableAmounts
Gets the shares and assets that are redeemable for a given user.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of shares that are locked. |
1 |
|
|
| The owner of the shares. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of shares that are redeemable based on current liquidity. |
1 |
|
|
| The corresponding amount of assets that can be redeemed using the shares. |
2 |
|
|
| Boolean indicating if there is enough liquidity to facilitate a full redemption. |
\
getWindowAtId
getWindowAtId
Gets the timestamps of the beginning and end of the withdrawal window for a given cycle.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The id of the current cycle. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The timestamp of the beginning of the cycle, which is the same as the beginning of the withdrawal window. |
1 |
|
|
| The timestamp of the end of the withdrawal window. |
\
getWindowStart
getWindowStart
Gets the timestamp of the beginning of the withdrawal window for a given cycle.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The id of the current cycle. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The timestamp of the beginning of the cycle, which is the same as the beginning of the withdrawal window. |
\
globals
globals
Gets the address of globals.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of globals. |
\
governor
governor
Gets the address of the governor.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the governor. |
\
implementation
implementation
The address of the implementation contract being proxied.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
|
\
isInExitWindow
isInExitWindow
Checks if an account is included in an exit window.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the share owners to check. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| A boolean indicating whether or not the account is in an exit window. |
\
latestConfigId
latestConfigId
Gets the most recent configuration id.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
lockedLiquidity
lockedLiquidity
Gets the total amount of funds that need to be locked to fulfill exits.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of locked liquidity. |
\
lockedShares
lockedShares
Gets the amount of locked shares for an account.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 | `` |
|
|
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
migrate
migrate
Modifies the proxy's storage by delegate-calling a migrator contract with some arguments. Access control logic critical since caller can force a selfdestruct via a malicious `migrator_` which is delegatecalled.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of a migrator contract. |
1 |
|
|
| Some encoded arguments to use for the migration. |
\
pool
pool
Gets the address of the pool associated with this withdrawal manager.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
poolDelegate
poolDelegate
Gets the pool delegate address.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Address of the pool delegate. |
\
poolManager
poolManager
Gets the address of the pool manager associated with this withdrawal manager.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
previewRedeem
previewRedeem
Gets the amount of shares that can be redeemed.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address to check the redemption for. |
1 |
|
|
| The amount of requested shares to redeem. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of shares that can be redeemed. |
1 |
|
|
| The amount of assets that will be returned for `redeemableShares`. |
\
previewWithdraw
previewWithdraw
Gets the amount of shares that can be withdrawn.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address to check the withdrawal for. |
1 |
|
|
| The amount of requested shares to withdraw. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of assets that can be withdrawn. |
1 |
|
|
| The amount of shares that will be burned. |
\
processExit
processExit
Process the exit of an account.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Amount of initially requested shares. |
1 |
|
|
| Address of the account which will be processed for exit. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| |
1 |
|
|
|
\
removeShares
removeShares
Remove shares to the withdrawal manager.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Amount of shares to remove. |
1 |
|
|
| Address of the owner of shares. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
|
\
setExitConfig
setExitConfig
Sets up a new exit configuration.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The total duration, in seconds, of a withdrawal cycle. |
1 |
|
|
| The duration, in seconds, of the withdrawal window. |
\
setImplementation
setImplementation
Modifies the proxy's implementation address.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
|
\
totalCycleShares
totalCycleShares
Gets the amount of shares for a cycle.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 | `` |
|
|
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
upgrade
upgrade
Upgrades a contract implementation to a specific version. Access control logic critical since caller can force a selfdestruct via a malicious `migrator_` which is delegatecalled.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| |
1 |
|
|
| Some encoded arguments to use for the upgrade. |
\
Events
ConfigurationUpdated
ConfigurationUpdated
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| |
1 |
|
|
| |
2 |
|
|
| |
3 |
|
|
| |
4 |
|
|
|
\
Upgraded
Upgraded
The instance was upgraded.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The new version of the loan. |
1 |
|
|
| The upgrade arguments, if any. |
\
WithdrawalCancelled
WithdrawalCancelled
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
|
\
WithdrawalProcessed
WithdrawalProcessed
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| |
1 |
|
|
| |
2 |
|
|
|
\
WithdrawalUpdated
WithdrawalUpdated
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| |
1 |
|
|
| |
2 |
|
|
| |
3 |
|
|
|
\
Last updated