By setting SqrtPriceLimitX96 to 0, the swap router is vulnerable to potential high price impact if the pool lacks the liquidity to adequately support the trade.
No price limit checks opens swaps up to high price impact, potentially causing unnecessary losses for users.
No price limit checks opens swaps up to high price impact, potentially causing unnecessary losses for users.
Manual Review
Price Impact should be considered before swapping. Hardcoding a maximum allowable price impact (ie 2%) will prevent swaps from occuring which incur high price impact, losing user funds. alternatively allow users to specify their price impact and pass this value in as an argument.
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.