Skip to content

Commit

Permalink
refactor: naming timestamp hook
Browse files Browse the repository at this point in the history
  • Loading branch information
QGarchery committed Apr 2, 2024
1 parent 6a59f0e commit d43b547
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions certora/specs/Timelock.spec
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ function summarySupplyshares(MetaMorphoHarness.Id id, address user) returns uint

persistent ghost uint256 lastTimestamp;

hook TIMESTAMP uint v {
hook TIMESTAMP uint newTimestamp {
// Safe require because timestamps are guaranteed to be increasing.
require v >= lastTimestamp;
require newTimestamp >= lastTimestamp;
// Safe require as it corresponds to some time very far into the future.
require v < 2^63;
lastTimestamp = v;
require newTimestamp < 2^63;
lastTimestamp = newTimestamp;
}

// Show that nextGuardianUpdateTime does not revert.
Expand Down

0 comments on commit d43b547

Please sign in to comment.