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

Constants don't follow Solidity style guide

Summary

Per the Solidity style guide, constants should be named with all capital letters with underscores separating words.

Vulnerability Details

There is 1 instance of this issue.

File: src/Fees.sol
16: ISwapRouter public constant swapRouter =
17: ISwapRouter(0xE592427A0AEce92De3Edee1F18E0157C05861564);
File Link Instance Count Instance Link
Fees.sol 1 16

Impact

Decreased readability and maintainability.

Tools Used

baudit: a custom static code analysis tool; manual review

Recommendations

Follow the Solidity style guide for the naming of constants.

Support

FAQs

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