In line 359 in the TimeswapPair contract, you can prefix increment the loop index instead of postfix incrementing it. This change will save gas (it will prevent a useless operation in every iteration of the loop).
code before:
for (uint256 i; i < ids.length; i++) { ... }
code after:
for (uint256 i; i < ids.length; ++i) { ... }
Handle
OriDabush
Vulnerability details
TimeswapPair.sol gas optimization
In line 359 in the TimeswapPair contract, you can prefix increment the loop index instead of postfix incrementing it. This change will save gas (it will prevent a useless operation in every iteration of the loop).
code before: for (uint256 i; i < ids.length; i++) { ... }
code after: for (uint256 i; i < ids.length; ++i) { ... }