Skip to content

Commit

Permalink
fix: unlock callable when paused
Browse files Browse the repository at this point in the history
Makes unlock callable when paused. Unlock does not actual transfer
out any funds, so making it callable when paused is fine. Also
makes sure that games can be resolved when the system is paused.
  • Loading branch information
smartcontracts committed Mar 8, 2024
1 parent 4862d63 commit 5f9dbbd
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 5f9dbbd

Please sign in to comment.