Skip to content

Commit

Permalink
no zero address msg sender in exposure opening on new rollover certora
Browse files Browse the repository at this point in the history
  • Loading branch information
aazhou1 committed Jun 21, 2024
1 parent 4621474 commit 42a611e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion certora/specs/termRepoServicer/rolloverExposure.spec
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ rule openExposureOnRolloverNewIntegrity(env e) {
require(rolloverExposureController.getTreasuryAddress() != e.msg.sender); // Protecting treasury from calling this function
require(rolloverExposureController.getTreasuryAddress() != rolloverExposureLocker); // Protecting locker from using treasury address;
require(rolloverExposureController.getTreasuryAddress() != previousTermRepoLocker); // Protecting previous locker from using treasury address;

require(e.msg.sender != 0); // Protecting from zero address

mathint balanceBefore = getBorrowerRepurchaseObligation(borrower);
mathint tokenBalanceTermRepoLockerBefore = rolloverExposureToken.balanceOf(rolloverExposureLocker);
mathint tokenBalancePreviousTermRepoLockerBefore = rolloverExposureToken.balanceOf(previousTermRepoLocker);
Expand Down

0 comments on commit 42a611e

Please sign in to comment.