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

Fees contract will work only on main net

Summary

Fees contract will work only on main net, because swapRouter is hardcoded.

Vulnerability Details

This protocol is going to be deployed on different chains as i understood from discord. And first goal is to be deployed on optimism.
But Fees has swapRouter variable that is hardcoded to main net address. Because of that such contract will not work on optimism and other chains.

Impact

Contract will not work on other chains.

Tools Used

VsCode

Recommendations

Make swapper be provided in constructor.

Support

FAQs

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

Give us feedback!