From b1212b763fb027f4c2fb8d12103b10931dd6205b Mon Sep 17 00:00:00 2001 From: lucas-manuel Date: Mon, 24 Jun 2024 10:31:21 -0400 Subject: [PATCH] feat: tests passing --- test/invariant/Invariants.t.sol | 4 +--- test/invariant/handlers/TimeBasedRateHandler.sol | 7 ++++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/test/invariant/Invariants.t.sol b/test/invariant/Invariants.t.sol index fe54026..cb90c7b 100644 --- a/test/invariant/Invariants.t.sol +++ b/test/invariant/Invariants.t.sol @@ -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); @@ -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)); } diff --git a/test/invariant/handlers/TimeBasedRateHandler.sol b/test/invariant/handlers/TimeBasedRateHandler.sol index 5e52acf..c23da27 100644 --- a/test/invariant/handlers/TimeBasedRateHandler.sol +++ b/test/invariant/handlers/TimeBasedRateHandler.sol @@ -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)); + } + }