Closed code423n4 closed 2 years ago
pants
At both lines 75 and 76 of Slingshot.sol trades.length is read. At line 76 it is inside a for loop that make it even worst. Caching len = trades.length and using the len instead will save gas.
Duplicate of #63
Handle
pants
Vulnerability details
At both lines 75 and 76 of Slingshot.sol trades.length is read. At line 76 it is inside a for loop that make it even worst. Caching len = trades.length and using the len instead will save gas.