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

0 stars 0 forks source link

Gas Optimizations #299

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

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

Contract: DataStorage.sol

line 307

will save around 5 gas per iteration.

Recommendation:

for (uint256 i = 0; i < secondsAgos.length; ++i) {
0xean commented 2 years ago

closing, LQ