Skip to content

Commit

Permalink
feat: tests passing
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-manuel committed Jun 24, 2024
1 parent 62578bb commit b1212b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 1 addition & 3 deletions test/invariant/Invariants.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,6 @@ abstract contract PSMInvariantTestBase is PSMTestBase {

uint256 startingSeedValue = psm.convertToAssetValue(1e18);

console.log("startingSeedValue", startingSeedValue);

// Liquidity is unknown so withdraw all assets for all users to empty PSM.
_withdraw(address(dai), lp0, type(uint256).max);
_withdraw(address(usdc), lp0, type(uint256).max);
Expand Down Expand Up @@ -357,7 +355,7 @@ contract PSMInvariants_TimeBasedRateSetting_NoTransfer is PSMInvariantTestBase {
timeBasedRateHandler.setPotData(1e27, 1e27, block.timestamp);

targetContract(address(lpHandler));
// targetContract(address(swapperHandler));
targetContract(address(swapperHandler));
targetContract(address(timeBasedRateHandler));
}

Expand Down
7 changes: 4 additions & 3 deletions test/invariant/handlers/TimeBasedRateHandler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ contract TimeBasedRateHandler is StdCheats, StdUtils {
}));
}

// function warp(uint256 skipTime) external {
// skip(_bound(skipTime, 0, 45 days));
// }
function warp(uint256 skipTime) external {
skip(_bound(skipTime, 0, 45 days));
}

}

0 comments on commit b1212b7

Please sign in to comment.