Omniscia rain protocol Audit
ERC20BalanceTierFactory Static Analysis Findings
ERC20BalanceTierFactory Static Analysis Findings
ERF-01S: Data Location Optimization
Type | Severity | Location |
---|---|---|
Gas Optimization | ERC20BalanceTierFactory.sol:L44 |
Description:
The linked function argument is set as memory
in an external
function.
Example:
contracts/tier/ERC20BalanceTierFactory.sol
44function createChildTyped(ERC20BalanceTierConfig memory config_)45 external
Recommendation:
We advise it to be set as calldata
optimizing its gas cost and enforcing immutability on the input argument.
Alleviation:
The data location was properly set as calldata
optimizing the codebase.