Skip to content

Commit

Permalink
100 address for treasury imported from rules for servicer
Browse files Browse the repository at this point in the history
  • Loading branch information
aazhou1 committed Jun 23, 2024
1 parent 8937188 commit 36af4cb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 18 deletions.
4 changes: 2 additions & 2 deletions certora/confs/termRepoServicer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"files": [
"certora/harness/TermRepoServicerHarness.sol",
"contracts/TermAuctionBidLocker.sol",
"certora/harness/TermControllerHarness.sol",
"contracts/TermController.sol",
"contracts/TermRepoLocker.sol",
"contracts/TermRepoToken.sol",
"contracts/TermRepoRolloverManager.sol",
Expand All @@ -13,7 +13,7 @@
"TermRepoServicerHarness:termRepoToken=TermRepoToken",
"TermRepoServicerHarness:termRepoLocker=TermRepoLocker",
"TermRepoServicerHarness:termRepoCollateralManager=TermRepoCollateralManagerHarness",
"TermRepoServicerHarness:termController=TermControllerHarness",
"TermRepoServicerHarness:termController=TermController",
"TermRepoServicerHarness:termRepoRolloverManager=TermRepoRolloverManager",
"TermRepoCollateralManagerHarness:termRepoLocker=TermRepoLocker"
],
Expand Down
11 changes: 0 additions & 11 deletions certora/harness/TermControllerHarness.sol

This file was deleted.

4 changes: 2 additions & 2 deletions certora/specs/termRepoServicer/accessRoles.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import "../methods/erc20Methods.spec";
import "../methods/emitMethods.spec";

using TermControllerHarness as servicerAccessController;
using TermController as servicerAccessController;


methods {
Expand All @@ -15,7 +15,7 @@ methods {
function ROLLOVER_MANAGER() external returns (bytes32) envfree;
function ROLLOVER_TARGET_AUCTIONEER_ROLE() external returns (bytes32) envfree;

function TermControllerHarness.verifyMintExposureAccess(address) external returns(bool) envfree;
function TermController.verifyMintExposureAccess(address) external returns(bool) envfree;
}


Expand Down
4 changes: 1 addition & 3 deletions certora/specs/termRepoServicer/rolloverExposure.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using TermControllerHarness as rolloverExposureController;
using TermController as rolloverExposureController;
using TermRepoLocker as rolloverExposureLocker;
using TermRepoRolloverManager as rolloverExposureRolloverManager;
using TermRepoCollateralManagerHarness as rolloverExposureRepaymentCollateralManager;
Expand Down Expand Up @@ -47,8 +47,6 @@ rule openExposureOnRolloverNewIntegrity(env e) {

uint256 expScale = 10 ^ 18;

require(rolloverExposureController.requireTreasuryWallet() == 100);

require(purchaseToken() == rolloverExposureToken); // bounds for test
require(termRepoLocker() == rolloverExposureLocker); // bounds for test
require(rolloverExposureLocker != previousTermRepoLocker);
Expand Down
4 changes: 4 additions & 0 deletions certora/specs/termRepoServicer/rules.spec
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ methods {
// function _.transferTokenFromWallet(address,address,uint256) external => DISPATCHER(true);
// function _.transferTokenToWallet(address,address,uint256) external => DISPATCHER(true);

// TermController
function TermController.getTreasuryAddress() external => ALWAYS(100);
function TermController.getProtocolReserveAddress() external => ALWAYS(100);


// // TermRepoRolloverManager
// function _.getRolloverInstructions(address) external => DISPATCHER(true);
Expand Down

0 comments on commit 36af4cb

Please sign in to comment.