Skip to content

Commit

Permalink
feat: omit bad debt realization for verification
Browse files Browse the repository at this point in the history
  • Loading branch information
QGarchery committed Feb 20, 2024
1 parent 173c992 commit 722b1ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions certora/specs/Health.spec
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ rule liquidateEquivalentInputDebtAndInputCollateral(env e, MorphoHarness.MarketP
uint256 repaidAssets1;
_, repaidAssets1 = liquidate(e, marketParams, borrower, seizedAssets, 0, data);
require !priceChanged;
// Omit the bad debt realization case.
require collateral(id, borrower) != 0;
uint256 sharesAfter = borrowShares(id, borrower);
uint256 repaidShares1 = assert_uint256(sharesBefore - sharesAfter);

Expand Down

0 comments on commit 722b1ee

Please sign in to comment.