Omniscia Gravita Protocol Audit
GravitaBase Code Style Findings
GravitaBase Code Style Findings
GBE-01C: Unused Function Declaration
Type | Severity | Location |
---|---|---|
Gas Optimization | ![]() | GravitaBase.sol:L89-L91 |
Description:
The GravitaBase::_revertWrongFuncCaller
function remains unutilized in the codebase.
Example:
contracts/Dependencies/GravitaBase.sol
89function _revertWrongFuncCaller() internal pure {90 revert("WFC");91}
Recommendation:
We advise it to be safely omitted, reducing the bytecode size of the contract.
Alleviation:
The unutilized GravitaBase::_revertWrongFuncCaller
function has been safely removed from the codebase as advised.