Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 734 Bytes

File metadata and controls

29 lines (20 loc) · 734 Bytes

EigenLayerRestake.withdraw exercise

Write your code inside the EigenLayerRestake contract

This exercise is designed to implement a function that will withdraw rETH from EigenLayer.

function withdraw(address operator, uint256 shares, uint32 startBlockNum)
  external
  auth
{
  // Write your code here
}

Instructions

  1. Withdraw

    • Call delegationManager.completeQueuedWithdrawal to withdraw rETH from EigenLayer.
    • Set IDelegationManager.Withdrawal.nonce to 0.

    Hint: See the interface IDelegateManager.

Testing

forge test --fork-url $FORK_URL --match-path test/exercise-eigen-layer.sol --match-test test_withdraw -vvv