Skip to content

Commit

Permalink
Refine assumptions in testUnlockStEth
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmt committed Jul 27, 2024
1 parent b6c977d commit f4e2678
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/kontrol/EscrowLockUnlock.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,9 @@ contract EscrowLockUnlockTest is EscrowInvariants, DualGovernanceSetUp {
);

AccountingRecord memory pre = this.saveAccountingRecord(sender, signallingEscrow);
vm.assume(0 < pre.userSharesLocked);
vm.assume(pre.userSharesLocked <= pre.totalSharesLocked);
vm.assume(Timestamps.now() >= addTo(config.SIGNALLING_ESCROW_MIN_LOCK_TIME(), pre.userLastLockedTime));
vm.assume(Timestamps.now() > addTo(config.SIGNALLING_ESCROW_MIN_LOCK_TIME(), pre.userLastLockedTime));

this.escrowInvariants(Mode.Assume, signallingEscrow);
this.signallingEscrowInvariants(Mode.Assume, signallingEscrow);
Expand Down

0 comments on commit f4e2678

Please sign in to comment.