This report emphasizes the importance of defining and using constant
variables instead of using literals repeatedly within smart contract code to increase the readability, maintainability, and potentially save gas costs.
The vulnerability lies in the inefficiency and lack of code maintainability caused by using literals repeatedly instead of defining constant variables.
Repeated use of literals can lead to code redundancy, decreased readability, and higher gas costs due to gas inefficiency.
Manual code review
To address this issue, define constant variables for common literal values, and use them throughout the contract code. Ensure clear naming conventions for constant variables to indicate their purpose and usage.
https://docs.codehawks.com/hawks-auditors/how-to-determine-a-finding-validity
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.