DeFiHardhatOracleProxyUpdates
100,000 USDC
View results
Submission Details
Severity: low
Invalid

Execution failure of mowMultiple can cause exceeding of block gas limit

Summary

Execution failure of mowMultiple can cause exceeding of block gas limit

Vulnerability Details

In the mowMultiple function, there is a loop that iterates through the tokens array. The loop condition is i < tokens.length, which thereby causes gas consumption with each iteration. If the token array is large enough, the block gas limit can be exceeded

Impact

This can result to wastage of gas fees for users. Attackers can also provide a large array of tokens enough to cause DOS

Tools Used

VS Code Manual Review

Recommendations

Limit the number of iterations in loops, especially when dealing with arrays. And also, large transaction can be broken into multiple transactions

Updates

Lead Judging Commences

giovannidisiena Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Lack of quality
Assigned finding tags:

Informational/Invalid

alchmy0 Submitter
about 1 year ago
giovannidisiena Lead Judge
about 1 year ago
giovannidisiena Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement
Assigned finding tags:

Informational/Invalid

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.