diff --git a/contracts/PanopticPool.sol b/contracts/PanopticPool.sol index e2b0e7f..c337121 100644 --- a/contracts/PanopticPool.sol +++ b/contracts/PanopticPool.sol @@ -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), @@ -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), diff --git a/test/foundry/core/CollateralTracker.t.sol b/test/foundry/core/CollateralTracker.t.sol index 13edcb9..c9ad0ea 100644 --- a/test/foundry/core/CollateralTracker.t.sol +++ b/test/foundry/core/CollateralTracker.t.sol @@ -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); } }