Omniscia Mantissa Finance Audit
MasterMantis Static Analysis Findings
MasterMantis Static Analysis Findings
MMS-01S: Data Location Optimization
| Type | Severity | Location |
|---|---|---|
| Gas Optimization | ![]() | MasterMantis.sol:L366 |
Description:
The linked input argument is set as memory in an external function.
Example:
contracts/MasterMantis.sol
366function claim(uint256[] memory pids) external nonReentrant {Recommendation:
We advise it to be set as calldata optimizing its read-access gas cost.
Alleviation (418ee413ad8e26f7eea383764c19953ff31b2bf3):
The data location of the pids member in MasterMantis::claim was properly set to calldata from memory, optimizing its read access gas cost.
