MyCut

First Flight #23
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

Lack of input validations inside `Pot.sol` contract.

Description: The constructor does not validate the lengths of the players and rewards arrays to ensure they match.

Impact: If the arrays have mismatched lengths, it could lead to incorrect mappings in playersToRewards, potentially causing logical errors in reward distribution.

Recommended Mitigation: Add a check in the constructor to ensure that the lengths of players and rewards arrays are equal:

require(players.length == rewards.length, "Players and rewards arrays must have the same length");
Updates

Lead Judging Commences

equious Lead Judge 11 months ago
Submission Judgement Published
Invalidated
Reason: Known issue

Support

FAQs

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