Open code423n4 opened 3 years ago
mail@gpersoon.com
gpersoon
gpersoon.eth
This is a minor suggestion.
Most internal function names start with an underscore (_) However quite a lot of internal function names don't follow this convention.
One example is: updateHourlyBondAmount in HourlyBondSubscriptionLending.sol Also all the functions in RoleAware.sol don't comply to the standard.
The code is more difficult to read if a naming convention is not used consistently.
Add an underscore (_) prefix to all internal functions.
This submission has been judged as non-critical since this has no impact on the security or functionality of the contract.
non-critical
Email address
mail@gpersoon.com
Handle
gpersoon
Eth address
gpersoon.eth
Vulnerability details
This is a minor suggestion.
Most internal function names start with an underscore (_) However quite a lot of internal function names don't follow this convention.
Proof of concept
One example is: updateHourlyBondAmount in HourlyBondSubscriptionLending.sol Also all the functions in RoleAware.sol don't comply to the standard.
Impact
The code is more difficult to read if a naming convention is not used consistently.
Recommended mitigation steps
Add an underscore (_) prefix to all internal functions.