MyCut

First Flight #23
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: high
Valid

Potential Gas Limit Issues with Large Arrays

Description: Functions like Pot::closePot iterate over the claimants array, which could grow large.

Impact: If the array becomes too large, the transaction could exceed the block gas limit, making it impossible to execute.

Recommended Mitigation: Consider implementing a mechanism to process claims in batches or limit the number of claimants to ensure the function remains executable within gas limits.

Updates

Lead Judging Commences

equious Lead Judge about 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

Unbound loop in closePot

Support

FAQs

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