Public functions that are not used internally should be marked as external. For instance we see in file path: 2024-08-fjord/src/FjordStaking.sol Line: 339
Visibility of functions affects how and where they can be accessed.
e.g.
Public functions can be called both internally (from within the same contract) and externally (from outside the contract).
External functions can only be called from outside the contract. They cannot be accessed internally unless called using the this keyword.
Gas Efficiency: Public functions are more gas-expensive when called from outside the contract.
Clarity and Intent: Using external clearly indicates that the function is intended to be called from outside the contract.
Security: By marking functions as public, there is a risk of unintended internal calls.
Aderyn
Consider marking a function as external instead of public if it is not used internally.
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.