20,000 USDC
View results
Submission Details
Severity: high
Valid

`sqrtPriceLimitX96` set to zero exposes users to price impact

Summary

sqrtPriceLimitX96 hardcoded to zero results in swap having volatile price impact.

Vulnerability Details

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

Impact

Tools Used

Manual

Recommendations

Set the sqrtPriceLimitX96 to a value to protect users from price impact

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.