Functions should use minimally required visibility, so if a function is not called internally be the contract, it should be declared as external
(only visible externally) rather than public
(visible externally and internally).
There are 7 instances of this issue.
File Link | Instance Count | Instance Link |
---|---|---|
Fees.sol | 1 | 26 |
File Link | Instance Count | Instance Links |
---|---|---|
Lender.sol | 5 | 232,292,437,548,591 |
File Link | Instance Count | Instance Link |
---|---|---|
Ownable.sol | 1 | 19 |
Decreased readability and maintainability.
baudit: a custom static code analysis tool; manual review
Reduce function visibility from public
to external
when unused from within the contract and not required to be public
by a parent contract.
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.