Omniscia rain protocol Audit

ERC20TransferTierFactory Static Analysis Findings

ERC20TransferTierFactory Static Analysis Findings

ECT-01S: Data Location Optimization

Description:

The linked function argument is set as memory in an external function.

Example:

contracts/tier/ERC20TransferTierFactory.sol
44function createChildTyped(ERC20TransferTierConfig 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.