IDelayedWithdrawalRouter
Functions
createDelayedWithdrawal
Creates an delayed withdrawal for msg.value
to the recipient
.
Only callable by the podOwner
's EigenPod contract.
claimDelayedWithdrawals
Called in order to withdraw delayed withdrawals made to the recipient
that have passed the withdrawalDelayBlocks
period.
Parameters
recipient
address
The address to claim delayedWithdrawals for.
maxNumberOfWithdrawalsToClaim
uint256
Used to limit the maximum number of withdrawals to loop through claiming.
claimDelayedWithdrawals
Called in order to withdraw delayed withdrawals made to the caller that have passed the withdrawalDelayBlocks
period.
Parameters
maxNumberOfWithdrawalsToClaim
uint256
Used to limit the maximum number of withdrawals to loop through claiming.
setWithdrawalDelayBlocks
Owner-only function for modifying the value of the withdrawalDelayBlocks
variable.
userWithdrawals
Getter function for the mapping _userWithdrawals
getUserDelayedWithdrawals
Getter function to get all delayedWithdrawals of the user
getClaimableUserDelayedWithdrawals
Getter function to get all delayedWithdrawals that are currently claimable by the user
userDelayedWithdrawalByIndex
Getter function for fetching the delayedWithdrawal at the index
th entry from the _userWithdrawals[user].delayedWithdrawals
array
userWithdrawalsLength
Getter function for fetching the length of the delayedWithdrawals array of a specific user
canClaimDelayedWithdrawal
Convenience function for checking whether or not the delayedWithdrawal at the index
th entry from the _userWithdrawals[user].delayedWithdrawals
array is currently claimable
withdrawalDelayBlocks
Delay enforced by this contract for completing any delayedWithdrawal. Measured in blocks, and adjustable by this contract's owner, up to a maximum of MAX_WITHDRAWAL_DELAY_BLOCKS
. Minimum value is 0 (i.e. no delay enforced).
Events
DelayedWithdrawalCreated
event for delayedWithdrawal creation
DelayedWithdrawalsClaimed
event for the claiming of delayedWithdrawals
WithdrawalDelayBlocksSet
Emitted when the withdrawalDelayBlocks
variable is modified from previousValue
to newValue
.
Structs
DelayedWithdrawal
struct used to pack data into a single storage slot
UserDelayedWithdrawals
struct used to store a single users delayedWithdrawal data
Last updated