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

Fees swaps can be MEV'ed

Summary

A MEV bot can steal from swap and return none WETH tokens to Fees contract.

Vulnerability Details

The amountOutMinimum parameter in ExactInputSingleParams is necessary to calculate the expected amount of WETH tokens that the Fees contract will receive. By setting it to zero, any MEV bot can extract value from this transaction, leading to loss of rewards for users.

Impact

Loss of users rewards to MEV bot.

Tools Used

Manual Review

Recommendations

It is recommended to add a variable to use as amountOutMinimum or calculate it.

Support

FAQs

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