MyCut

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

Insufficient Storage Use in the `Pot.sol` contract.

Description: The contract uses separate arrays i_players, i_rewards, and claimants, which can lead to inefficient storage and gas usage.

Impact: While this does not pose a security risk, it can lead to increased gas costs for operations involving these arrays, especially as the number of players increases.

Recommended Mitigation: Consider using a struct to store player information, including their address and reward, in a single array. This can reduce storage complexity and improve gas efficiency.

Updates

Lead Judging Commences

equious Lead Judge 12 months ago
Submission Judgement Published
Validated
Assigned finding tags:

Unbound for loop in Contest Creation

Unbound loop in closePot

Support

FAQs

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