Open code423n4 opened 2 years ago
Risk: Gas optimization
Findings:
getVotingStage(uint256) should be declared external:
getFee(bool) should be declared external:
setGovernor(address) should be declared external:
setEmergencyCouncil(address) should be declared external:
whitelist(address) should be declared external:
getPastVotes(address,uint256) should be declared external:
delegateBySig(address,uint256,uint256,uint8,bytes32,bytes32) should be declared external:
Recommendation: Change visibility to external Reference: https://github.com/crytic/slither/wiki/Detector-Documentation#public-function-that-could-be-declared-external
The finding will not save gas since 0.6.12
Visibility declared as public an not used inside the contract can be declared external
Risk: Gas optimization
Findings:
getVotingStage(uint256) should be declared external:
getFee(bool) should be declared external:
setGovernor(address) should be declared external:
setEmergencyCouncil(address) should be declared external:
whitelist(address) should be declared external:
getPastVotes(address,uint256) should be declared external:
delegateBySig(address,uint256,uint256,uint8,bytes32,bytes32) should be declared external:
Recommendation: Change visibility to external Reference: https://github.com/crytic/slither/wiki/Detector-Documentation#public-function-that-could-be-declared-external