Skip to content

Commit

Permalink
test: stage
Browse files Browse the repository at this point in the history
  • Loading branch information
dyedm1 committed Nov 27, 2023
1 parent 7ea479e commit c32ab67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
env:
FOUNDRY_PROFILE: ci_test
run: |
forge test --fork-url http://localhost:8545 -vvv --fuzz-runs 1000
forge test --fork-url http://localhost:8545 -vvv --fuzz-runs 1000 --match-test test_Success_liquidate_ITM_bigLoss_noCross_delegation
id: forge-test

contract_sizes:
Expand Down
9 changes: 1 addition & 8 deletions test/foundry/core/CollateralTracker.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2166,13 +2166,6 @@ contract CollateralTrackerTest is Test, PositionUtils {
0,
0
);
(uint256 collateralBalance, uint256 requiredBalance) = panopticHelper.checkCollateral(
panopticPool,
Alice,
strike,
asset,
positionIdList
);
}
uint160 sqrtPriceX96;

Expand Down Expand Up @@ -2255,9 +2248,9 @@ contract CollateralTrackerTest is Test, PositionUtils {
);

vm.warp(block.timestamp + 1000000);
sqrtPriceX96 = Math.getSqrtRatioAtTick(panopticPool.getTWAP());

panopticPool.liquidate(Alice, positionIdList, 1e11, 1e20);
(sqrtPriceX96, currentTick, , , , , ) = pool.slot0();

uint256 balance0AfterA = collateralToken0.previewRedeem(
collateralToken0.balanceOf(Alice)
Expand Down

0 comments on commit c32ab67

Please sign in to comment.