Skip to content

Commit

Permalink
test: remove console logs and use new logic in setup
Browse files Browse the repository at this point in the history
  • Loading branch information
pakim249CAL committed Aug 27, 2023
1 parent 6f43e71 commit 764259c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
9 changes: 1 addition & 8 deletions test/forge/BaseTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,8 @@ contract BaseTest is Test {
irm = new Irm();
vm.label(address(irm), "IRM");

marketParams =
MarketParams(address(borrowableToken), address(collateralToken), address(oracle), address(irm), LLTV);
id = marketParams.id();

vm.startPrank(OWNER);
morpho.enableIrm(address(irm));
morpho.enableLltv(LLTV);
morpho.createMarket(marketParams);
vm.stopPrank();

borrowableToken.approve(address(morpho), type(uint256).max);
Expand All @@ -110,8 +104,7 @@ contract BaseTest is Test {
morpho.setAuthorization(BORROWER, true);
vm.stopPrank();

vm.roll(block.number + 1);
vm.warp(block.timestamp + 1 days);
_setLltv(LLTV);
}

function _setLltv(uint256 lltv) internal {
Expand Down
4 changes: 0 additions & 4 deletions test/forge/integration/LiquidateIntegrationTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ contract LiquidateIntegrationTest is BaseTest {
(amountCollateral, amountBorrowed, priceCollateral) =
_boundUnhealthyPosition(amountCollateral, amountBorrowed, priceCollateral);

console2.log(amountCollateral);
console2.log(amountBorrowed);
console2.log(priceCollateral);

vm.assume(amountCollateral > 1);

amountSupplied = bound(amountSupplied, amountBorrowed, amountBorrowed + MAX_TEST_AMOUNT);
Expand Down

0 comments on commit 764259c

Please sign in to comment.