mirror of
https://github.com/logos-storage/logos-storage-contracts-eth.git
synced 2026-01-02 13:23:10 +00:00
Another mutation: freezeFunds when already withdrawing
This commit is contained in:
parent
7c2e9e68fc
commit
a7d0332a58
13
certora/mutations/039_freezeFunds_when_withdrawing.patch
Normal file
13
certora/mutations/039_freezeFunds_when_withdrawing.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/contracts/vault/VaultBase.sol b/contracts/vault/VaultBase.sol
|
||||
index be21481..04e914f 100644
|
||||
--- a/contracts/vault/VaultBase.sol
|
||||
+++ b/contracts/vault/VaultBase.sol
|
||||
@@ -237,7 +237,7 @@ abstract contract VaultBase {
|
||||
|
||||
function _freezeFund(Controller controller, FundId fundId) internal {
|
||||
Fund storage fund = _funds[controller][fundId];
|
||||
- require(fund.status() == FundStatus.Locked, VaultFundNotLocked());
|
||||
+ require(fund.status() == FundStatus.Locked || fund.status() == FundStatus.Withdrawing, VaultFundNotLocked());
|
||||
|
||||
fund.frozenAt = Timestamps.currentTime();
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
../039_freezeFunds_when_withdrawing.patch
|
||||
Loading…
x
Reference in New Issue
Block a user