Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 675 Bytes

File metadata and controls

25 lines (16 loc) · 675 Bytes

SwapRocketPool.getDepositDelay exercise

Write your code inside the SwapRocketPool contract

The goal of this exercise is to learn how to directly get data from the RocketStorage contract.

function getDepositDelay() public view returns (uint256) {
    // Write your code here
}

Instructions

  1. Get deposit delay

    • Implement logic to fetch the deposit delay setting

    Hint: Look for how this is done inside RocketTokenRETH._beforeTokenTransfer

Testing

forge test --fork-url $FORK_URL --match-path test/exercise-swap-rocket-pool.sol --match-test test_getDepositDelay -vvv