Open ChefMist opened 5 months ago
this test also fail when done the below. checkout to an older commit: https://github.com/pancakeswap/pancake-v4-core/commit/2eb67b3e17c681c5a1ee7a31dbd7128c30cd6968
1. git checkout 2eb67b3e17c681c5a1ee7a31dbd7128c30cd6968
2. run testSwap with those param
3. forge test and see the error
Unfortunately, this has not been solved, check detail reason & temp workaround: https://github.com/pancakeswap/pancake-v4-core/blob/756629a62eebc3a80bd029458b2656721bbe24c2/test/pool-cl/libraries/CLPool.t.sol#L102
from this job https://github.com/pancakeswap/pancake-v4-core/actions/runs/8996481967/job/24713051330 which runs after merging https://github.com/pancakeswap/pancake-v4-core/pull/30
Though it seems that the test didn't fail due to the change. this are the params which can trigger the test failure locally even after reverting the changes in
src/pool-cl/libraries/LiquidityMath.sol
from https://github.com/pancakeswap/pancake-v4-core/pull/30test/pool-cl/libraries/CLPool.t.sol