Skip to content

Commit

Permalink
fix: Fix certora rule
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmtzinf committed May 29, 2024
1 parent ec911ff commit cdb664e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions certora/steward/specs/rules.spec
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ rule updateGhoBorrowCap__correctness() {
assert BORROW_CAP==newBorrowCap;

uint256 borrow_cap_after = BORROW_CAP;
assert 0 <= to_mathint(borrow_cap_after) && to_mathint(borrow_cap_after) <= 2*borrow_cap_before;
assert to_mathint(borrow_cap_after) <= 2*borrow_cap_before;
}


Expand All @@ -313,8 +313,7 @@ rule updateGsmExposureCap__correctness() {
assert EXPOSURE_CAP==newExposureCap;

uint128 exposure_cap_after = EXPOSURE_CAP;
assert 0 <= to_mathint(exposure_cap_after) &&
to_mathint(exposure_cap_after) <= 2*exposure_cap_before;
assert to_mathint(exposure_cap_after) <= 2*exposure_cap_before;
}


Expand Down

0 comments on commit cdb664e

Please sign in to comment.