Skip to content

Commit

Permalink
Merge pull request #84 from ethereum-optimism/sc/paused-unlock
Browse files Browse the repository at this point in the history
fix: unlock callable when paused
  • Loading branch information
tynes authored Mar 8, 2024
2 parents 4862d63 + 5f9dbbd commit d20de8f
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ incorrectly distribute bonds.
`withdrawals[msg.sender][guy] => WithdrawalRequest` where `WithdrawalRequest` is
`struct Withdrawal Request { uint256 amount, uint256 timestamp }`. When `unlock` is called, the timestamp for
`withdrawals[msg.sender][guy]` is set to the current timestamp and the amount is increased by the given amount.
`unlock(guy,wad)` is not callable when `SuperchainConfig.paused()` is `true`.
- `DelayedWETH` modifies the `WETH.withdraw` function such that an address *must* provide a "sub-account" to withdraw
from. The function signature becomes `withdraw(guy,wad)`. The function retrieves `withdrawals[msg.sender][guy]` and
checks that the current `block.timestamp` is greater than the timestamp on the withdrawal request plus the `delay()`
Expand Down

0 comments on commit d20de8f

Please sign in to comment.