Omniscia Alliance Block Audit

LiquidityMiningCampaign Static Analysis Findings

LiquidityMiningCampaign Static Analysis Findings

LMC-01S: Data Location Optimization

TypeSeverityLocation
Gas OptimizationInformationalLiquidityMiningCampaign.sol:L195

Description:

The _lockSchemes variable is a memory variable in an external function.

Example:

contracts/LiquidityMiningCampaign.sol
195function setLockSchemes(address[] memory _lockSchemes) external {

Recommendation:

We advise it to be set as calldata greatly optimizing the function's gas cost.

Alleviation:

The _lockSchemes argument was properly set to calldata greatly optimizing the function's gas cost.