Omniscia Myso Finance Audit

AddressRegistry Static Analysis Findings

AddressRegistry Static Analysis Findings

ARY-01S: Data Location Optimization

TypeSeverityLocation
Gas OptimizationAddressRegistry.sol:L61

Description:

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

Example:

contracts/peer-to-peer/AddressRegistry.sol
60function setWhitelistState(
61 address[] memory addrs,
62 DataTypesPeerToPeer.WhitelistState _whitelistState
63) external {

Recommendation:

We advise it to be set as calldata optimizing its read-access gas cost.

Alleviation (c740f7c6b5ebd365618fd2d7ea77370599e1ca11):

The referenced data location of the addrs array input has been set to calldata optimally, addressing this exhibit.