Omniscia rain protocol Audit

EmissionsERC20 Static Analysis Findings

EmissionsERC20 Static Analysis Findings

EER-01S: Data Location Optimization

Description:

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

Example:

contracts/claim/EmissionsERC20.sol
227function claim(address claimant_, bytes memory data_) 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.