InitBip7 Static Analysis Findings
InitBip7 Static Analysis Findings
IB7-01S: Illegible Value Literals
Type | Severity | Location |
---|---|---|
Code Style | InitBip7.sol:L18 |
Description:
The linked value literals represent a very large number but do so illegibly.
Example:
protocol/contracts/farm/init/InitBip7.sol
18uint256 private constant payment = 6000000000;
Recommendation:
We advise the special underscore (_
) character to be utilised as a separator per thousand units to better represent the linked values (i.e. 10000
becomes 10_000
).
Alleviation:
The value representation style was adjusted to contain the underscore separator character and comments were additionally introduced indicating what the exact values are meant to be alleviating this exhibit.
View Fix on GitHub