Omniscia Alliance Block Audit
AbstractPoolsFactory Static Analysis Findings
AbstractPoolsFactory Static Analysis Findings
APF-01S: State Mutability Optimization
Type | Severity | Location |
---|---|---|
Gas Optimization | Informational | AbstractPoolsFactory.sol:L27 |
Description:
The linked function can have its state mutability restricted to view
.
Example:
contracts/AbstractPoolsFactory.sol
27function onlyOwner(address messageSender) public { 28 require(messageSender == owner, "onlyOwner:: The caller is not the owner");29}
Recommendation:
We advise it to be done so to optimize the gas cost involved in its execution.
Alleviation:
The state mutability of the function was properly set to view
.