Skip to content

Commit

Permalink
test: try removing LCB
Browse files Browse the repository at this point in the history
  • Loading branch information
dyedm1 committed Nov 27, 2023
1 parent 08164e9 commit f5be504
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions contracts/PanopticPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,7 @@ contract PanopticPool is ERC1155Holder, Multicall {
(Math.min(
balance1 - paid1,
PanopticMath.convert0to1(paid0 - balance0, sqrtPriceX96)
) * LIQ_CONVERSION_BONUS) /
) * DECIMALS) /
DECIMALS;
bonus0 -= Math.min(
PanopticMath.convert1to0(balance1 - paid1, sqrtPriceX96),
Expand All @@ -1030,7 +1030,7 @@ contract PanopticPool is ERC1155Holder, Multicall {
(Math.min(
balance0 - paid0,
PanopticMath.convert1to0(paid1 - balance1, sqrtPriceX96)
) * LIQ_CONVERSION_BONUS) /
) * DECIMALS) /
DECIMALS;
bonus1 -= Math.min(
PanopticMath.convert0to1(balance0 - paid0, sqrtPriceX96),
Expand Down
2 changes: 1 addition & 1 deletion test/foundry/core/CollateralTracker.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2309,7 +2309,7 @@ contract CollateralTrackerTest is Test, PositionUtils {
assertTrue(balance1AfterD < balance1BeforeD);
} else {
assertTrue(balance0AfterD < balance0BeforeD);
console.log("C21");
console.log("C20");
assertTrue(balance1AfterD == balance1BeforeD);
}
}
Expand Down

0 comments on commit f5be504

Please sign in to comment.