WithdrawalManagerInitializer (Cyclical)
\
Functions
cycleConfigs
cycleConfigs
Gets the configuration for a given config id.
function cycleConfigs(
uint256
)
view
returns (
uint64 initialCycleId,
uint64 initialCycleTime,
uint64 cycleDuration,
uint64 windowDuration
);
Parameters:
0
``
uint256
uint256
Return Values:
0
initialCycleId
uint64
uint64
Identifier of the first withdrawal cycle using this configuration.
1
initialCycleTime
uint64
uint64
Timestamp of the first withdrawal cycle using this configuration.
2
cycleDuration
uint64
uint64
Duration of the withdrawal cycle.
3
windowDuration
uint64
uint64
Duration of the withdrawal window.
\
decodeArguments
decodeArguments
function decodeArguments(
bytes encodedArguments_
)
pure
returns (
address pool_,
uint256 startTime_,
uint256 cycleDuration_,
uint256 windowDuration_
);
Parameters:
0
encodedArguments_
bytes
bytes
Return Values:
0
pool_
address
address
1
startTime_
uint256
uint256
2
cycleDuration_
uint256
uint256
3
windowDuration_
uint256
uint256
\
encodeArguments
encodeArguments
function encodeArguments(
address pool_,
uint256 startTime_,
uint256 cycleDuration_,
uint256 windowDuration_
)
pure
returns (
bytes encodedArguments_
);
Parameters:
0
pool_
address
address
1
startTime_
uint256
uint256
2
cycleDuration_
uint256
uint256
3
windowDuration_
uint256
uint256
Return Values:
0
encodedArguments_
bytes
bytes
\
exitCycleId
exitCycleId
Gets the id of the cycle that account can exit on.
function exitCycleId(
address
)
view
returns (
uint256
);
Parameters:
0
``
address
address
Return Values:
0
uint256
uint256
\
latestConfigId
latestConfigId
Gets the most recent configuration id.
function latestConfigId()
view
returns (
uint256
);
Return Values:
0
uint256
uint256
\
lockedShares
lockedShares
Gets the amount of locked shares for an account.
function lockedShares(
address
)
view
returns (
uint256
);
Parameters:
0
``
address
address
Return Values:
0
uint256
uint256
\
pool
pool
Gets the address of the pool associated with this withdrawal manager.
function pool()
view
returns (
address
);
Return Values:
0
address
address
\
poolManager
poolManager
Gets the address of the pool manager associated with this withdrawal manager.
function poolManager()
view
returns (
address
);
Return Values:
0
address
address
\
totalCycleShares
totalCycleShares
Gets the amount of shares for a cycle.
function totalCycleShares(
uint256
)
view
returns (
uint256
);
Parameters:
0
``
uint256
uint256
Return Values:
0
uint256
uint256
\
Events
ConfigurationUpdated
ConfigurationUpdated
Emitted when the withdrawal configuration is updated.
event ConfigurationUpdated(
uint256 configId_,
uint64 initialCycleId_,
uint64 initialCycleTime_,
uint64 cycleDuration_,
uint64 windowDuration_
);
Parameters:
0
configId_
uint256
uint256
The identifier of the configuration.
1
initialCycleId_
uint64
uint64
The identifier of the withdrawal cycle when the configuration takes effect.
2
initialCycleTime_
uint64
uint64
The timestamp of the beginning of the withdrawal cycle when the configuration takes effect.
3
cycleDuration_
uint64
uint64
The new duration of the withdrawal cycle.
4
windowDuration_
uint64
uint64
The new duration of the withdrawal window.
\
Initialized
Initialized
event Initialized(
address pool_,
uint256 cycleDuration_,
uint256 windowDuration_
);
Parameters:
0
pool_
address
address
1
cycleDuration_
uint256
uint256
2
windowDuration_
uint256
uint256
\
WithdrawalCancelled
WithdrawalCancelled
Emitted when a withdrawal request is cancelled.
event WithdrawalCancelled(
address account_
);
Parameters:
0
account_
address
address
Address of the account whose withdrawal request has been cancelled.
\
WithdrawalProcessed
WithdrawalProcessed
Emitted when a withdrawal request is processed.
event WithdrawalProcessed(
address account_,
uint256 sharesToRedeem_,
uint256 assetsToWithdraw_
);
Parameters:
0
account_
address
address
Address of the account processing their withdrawal request.
1
sharesToRedeem_
uint256
uint256
Amount of shares that the account will redeem.
2
assetsToWithdraw_
uint256
uint256
Amount of assets that will be withdrawn from the pool.
\
WithdrawalUpdated
WithdrawalUpdated
Emitted when a withdrawal request is updated.
event WithdrawalUpdated(
address account_,
uint256 lockedShares_,
uint64 windowStart_,
uint64 windowEnd_
);
Parameters:
0
account_
address
address
Address of the account whose request has been updated.
1
lockedShares_
uint256
uint256
Total amount of shares the account has locked.
2
windowStart_
uint64
uint64
Time when the withdrawal window for the withdrawal request will begin.
3
windowEnd_
uint64
uint64
Time when the withdrawal window for the withdrawal request will end.
\
Last updated