In the Pot.sol
contract, the i_
prefix is incorrectly used for variables that are not immutable. This misuse can lead to confusion during code review and maintenance, as it contradicts established naming conventions.
The following variables in the Pot.sol
contract have been identified with the inappropriate use of the i_
prefix:
The i_
prefix is conventionally used to denote immutable variables — those that are set during deployment and cannot be changed afterward.
The use of the i_
prefix on mutable variables can mislead developers into thinking these variables are immutable. This misunderstanding can lead to potential errors in logic or improper assumptions during code integration, audits, or future development, thereby increasing the risk of introducing bugs.
Manual code review
Solidity development best practices
Rename the Variables: Update the variable names to remove the i_
prefix from any non-immutable variables. For example:
Follow Naming Conventions: Ensure that the i_
prefix is only used for immutable variables to maintain clarity and consistency in the codebase.
Code Review: Perform a thorough code review to identify any other instances where naming conventions may have been incorrectly applied.
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.