There is a for loop in the DifferenceMomentumUpdateRule
that loops over newShortMovingAverages
but does nothing as seen here line 90
This is unnecessary and can be removed as it leads to unnecessary gas consumption
Low - unnecessary gas consumption
Manual Review
Remove the for loop
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.