The closePot()
function in the Pot
contract has flawed logic for calculating the manager's 10% cut and distributing rewards among claimants.
The manager is supposed to receive 10% of the pot, but the calculation is incorrect.
Claimants receive less than they are entitled to, as rewards are divided based on the total number of players instead of just the claimants.
Financial Loss for the Manager: The manager might receive less than the intended 10%, resulting in financial loss for the person managing the contract.
Underpayment to Claimants: Since claimants may be fewer than all players, eligible claimants receive less than they should.
Unit test
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.