Skip to content

Commit

Permalink
fix: add more doc
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-morpho committed Oct 3, 2024
1 parent 89ff510 commit 0c27b5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion certora/specs/Liveness.spec
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ rule preLiquidateRepays(method f, env e, calldataarg data) {
// Set up the initial state.
require !preLiquidateCalled;
require !onMorphoRepayCalled;

// Safe require because Morpho cannot send transactions.
require e.msg.sender != preLiq.MORPHO();
// Capture the first method call which is not performed with a CALL opcode.
if (f.selector == sig:preLiquidate(address, uint256, uint256, bytes).selector) {
preLiquidateCalled = true;
} else if (f.selector == sig:onMorphoRepay(uint256, bytes).selector) {
Expand Down

0 comments on commit 0c27b5c

Please sign in to comment.