Closed code423n4 closed 2 years ago
Czar102
Usage of memory arrays in, expecially as external functions' arguments, increases gas costs.
There are possible optimizations in XDEFIDistribution.sol in #77, #165, #186, #205, #320.
Consider changing external functions' memory arguments to calldata variables.
Agreed. We should have done this. Will change.
Duplicate #29
Handle
Czar102
Vulnerability details
Impact
Usage of memory arrays in, expecially as external functions' arguments, increases gas costs.
Proof of Concept
There are possible optimizations in XDEFIDistribution.sol in #77, #165, #186, #205, #320.
Recommended Mitigation Steps
Consider changing external functions' memory arguments to calldata variables.