the code references _oracles.length in each iteration. Although reading an array’s .length in memory is not as expensive as reading from storage, repeatedly accessing it still incurs unnecessary overhead compared to caching the value in a local variable.
Gas Overhead: Minor additional gas cost per iteration.
Severity: Low, because this does not affect security or correctness—only efficiency.
Manual audit
Store _oracles.length in a local variable, for example:
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelyhood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.