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
}-
Withdraw
- Call
delegationManager.completeQueuedWithdrawalto withdraw rETH from EigenLayer. - Set
IDelegationManager.Withdrawal.nonceto 0.
Hint: See the interface
IDelegateManager. - Call
forge test --fork-url $FORK_URL --match-path test/exercise-eigen-layer.sol --match-test test_withdraw -vvv