At line 46 of ModuleRegistry.sol there is the following for loop:
for (uint256 i = 0; i < _moduleAddresses.length; i++) {
registerSwapModule(_moduleAddresses[i]);
}
Here you could use unchecked{++i} to save gas since it is more efficient then i++.
Same should be done at line 61.
Handle
pants
Vulnerability details
At line 46 of ModuleRegistry.sol there is the following for loop: for (uint256 i = 0; i < _moduleAddresses.length; i++) { registerSwapModule(_moduleAddresses[i]); }
Here you could use unchecked{++i} to save gas since it is more efficient then i++. Same should be done at line 61.