To help clarify the purpose of a mapping
and make maintenance easier, consider using named mappings. Named mappings were introduced in Solidity 0.8.18.
Example:
There are 4 instances of this issue.
File Link | Instance Count | Instance Link |
---|---|---|
Lender.sol | 1 | 70 |
File Link | Instance Count | Instance Links |
---|---|---|
Staking.sol | 3 | 19,22,24 |
Decreased readability and usability.
baudit: a custom static code analysis tool; manual review
Use named mappings were introduced in Solidity 0.8.18.
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.