Omniscia Kanpeki Finance Audit
Token Static Analysis Findings
Token Static Analysis Findings
TOK-01S: Function Mutability Specifier
Type | Severity | Location |
---|---|---|
Gas Optimization | Informational | Token.sol:L41 |
Description:
The decimals
function can be set as pure
as it does not rely on the blockchain state.
Example:
contracts/Token.sol
41function decimals() public view virtual returns (uint8)42{43 return 18;44}
Recommendation:
We advise it to be set so to reduce the gas cost external callers will incur.
Alleviation:
The Kanpeki Finance team opted not to apply this exhibit.