20,000 USDC
View results
Submission Details
Severity: low

Unnecessary assignment of `amount` variable

Summary

Vulnerability Details

The function sellProfits() in Fees.sol contains an assignment of a new external contract call to the swap router. Which is unnecessary as it has not been used anywhere.

Impact

Unnecessary change in the state variable. Incorrect state handling.

Tools Used

Manual Review.

Recommendations

Remove the line of code from the function.

amount = swapRouter.exactInputSingle(params);

Support

FAQs

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