sqrtPriceLimitX96
hardcoded to zero results in swap having volatile price impact.
sqrtPriceLimitX96
specifies the maximum price that the swap can push the pool to. This is because every swap has some impact on the price of the pool. The sqrtPriceLimitX96
parameter helps to mitigate this impact by preventing users from submitting swaps that would push the price too high.
For more details regarding the implementation refer https://uniswapv3book.com/docs/milestone_3/slippage-protection/#slippage-protection-in-swaps
Manual
Set the sqrtPriceLimitX96
to a value to protect users from price impact
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.