From 5f9dbbdd7b6cf520f2c127cbf1d1f0bd732a4928 Mon Sep 17 00:00:00 2001 From: Kelvin Fichter Date: Fri, 8 Mar 2024 12:29:52 -0500 Subject: [PATCH] fix: unlock callable when paused 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. --- specs/experimental/fault-proof/stage-one/bond-incentives.md | 1 - 1 file changed, 1 deletion(-) diff --git a/specs/experimental/fault-proof/stage-one/bond-incentives.md b/specs/experimental/fault-proof/stage-one/bond-incentives.md index 13477717a..a624ac923 100644 --- a/specs/experimental/fault-proof/stage-one/bond-incentives.md +++ b/specs/experimental/fault-proof/stage-one/bond-incentives.md @@ -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()`