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

Missing Slippage Protection When Selling Profit

Summary

There is no slippage protection in function sellProfits which may cause unexpected loss due to sandwich attack

Vulnerability Details

To ensure a smooth swap on UniswapV3 and avoid undesirable outcomes, particularly from potential sandwich attack, the caller must employ the slippage parameter (amountOutMinimum) and the deadline parameter when making the swap. These measures help protect against unexpected results during the transaction.

Impact

Funds loss or unexpected swap result

Tools Used

Manual

Recommendations

Adding valid slippage parameters into the swaps.

Support

FAQs

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