The Pot contract does not include checks to prevent duplicate entries in the claimants array. This oversight can lead to incorrect reward distribution calculations, as the length of the claimants array is used in the claimantCut calculation.
The claimCut function adds players to the claimants array without checking for duplicates.
Duplicate entries in the claimants array can inflate its length, leading to incorrect calculations of claimantCut in the closePot function.
The presence of duplicate claimants can result in an inaccurate claimantCut calculation, leading to unfair distribution of rewards.
Manual Review
Before adding a player to the claimants array, check if they are already present to prevent duplicates. Use a mapping to track whether a player has already been added to the claimants array.
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.