Platform: Code4rena
Start Date: 20/01/2022
Pot Size: $80,000 USDC
Total HM: 5
Participants: 37
Period: 7 days
Judge: Jack the Pug
Total Solo HM: 1
Id: 76
League: ETH
Rank: 34/37
Findings: 2
Award: $5.19
🌟 Selected for report: 0
🚀 Solo Findings: 0
saian
Array length read in each iteration of the for loop consumes more gas, a local variable can be used to store the length and can be used in the comparison operation.
Manual Analysis
Array length can be stored in a temporary variable and used in the comparison operations in the loop.
#0 - jack-the-pug
2022-03-26T06:55:36Z
Dup #231