15,000 USDC
View results
Submission Details
Severity: gas

Constant Variables Commenting

Summary

Missing comments for constant variables

Vulnerability Details

Constants that dont immediately give insights into what they are for can be confusing and need to be commented in order to explain them. It is always best practise to comment out values, constants, variables in a way that adds clarity.

Impact

Informational: This affects the readability, maintanability and auditability of the code as some variables e.g especially constant variables will not have clear explanations as to where they arise from how and why they are used.

Tools Used

Manual Analysis

Recommendations

It is recommended that constant variables that are not intuitive are commented to explain what, how, why used.
e.g uint256 private constant ADDITIONAL_FEED_PRECISION = 1e10; // detail where this comes from, why and how used

Support

FAQs

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