code-423n4 / 2022-09-frax-findings

2 stars 1 forks source link

Gas Optimizations #394

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Contract: ERC20PermitPermissionedMint.sol

Changing i++ to ++i in the for loop of:

line 84

will save around 5 gas per iteration.

Recommendation:

for (uint i = 0; i < minters_array.length; ++i){

This will also bring it in line with other for loops in contracts frxETHMinter.sol in line 129 and OperatorRegistry.sol in lines 63, 84, and 114.