From d46c9bdeb33ff0f2dbbeeff78ff072849a86e6c0 Mon Sep 17 00:00:00 2001 From: wildmolasses Date: Fri, 8 Nov 2024 16:38:57 +0700 Subject: [PATCH] revise pause to include transfers --- specs/fault-proof/stage-one/bond-incentives.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/specs/fault-proof/stage-one/bond-incentives.md b/specs/fault-proof/stage-one/bond-incentives.md index da528486b..5fb24a8a3 100644 --- a/specs/fault-proof/stage-one/bond-incentives.md +++ b/specs/fault-proof/stage-one/bond-incentives.md @@ -148,12 +148,16 @@ checks that the current `block.timestamp` is greater than the timestamp on the w seconds and reverts if not. It also confirms that the amount being withdrawn is less than the amount in the withdrawal request. Before completing the withdrawal, it reduces the amount contained within the withdrawal request. The original `withdraw(wad)` function becomes an alias for `withdraw(msg.sender, wad)`. -`withdraw(guy,wad)` will not be callable when `SuperchainConfig.paused()` is `true`, or when `withdrawalsPaused` is `true`. -- `DelayedWETH` has a `setWithdrawalsPaused()` function that allows the `owner()` address to either pause or unpause withdrawals. +`withdraw(guy,wad)` will not be callable when `SuperchainConfig.paused()` is `true`. Also, `withdraw(guy,wad)` is not callable +when `delayedWethPaused` is `true`, unless the caller is the `owner()`. +- `DelayedWETH` has a `setDelayedWethPaused(bool)` function that allows the `owner()` address to either pause or unpause +withdrawals and transfers. - `DelayedWETH` has a `hold()` function that allows the `owner()` address to, for any holder, give itself an allowance and immediately `transferFrom` that allowance amount to itself. - `DelayedWETH` has a `recover()` function that allows the `owner()` address to recover any amount of ETH from the contract. +- `DelayedWETH` transfers are subject to the local `delayedWethPaused` pause; users other than the owner will not be able to +transfer any tokens within the contract. #### Sub-Account Model