Normal behavior:
Users should only pay the exact claim fee amount, or any overpayment should be refunded to prevent accidental loss of funds.
Specific issue:
The contract only requires msg.value >= claimFee but uses the entire msg.value for calculations. If a user sends more ETH than required, the excess amount is silently added to the pot without any notification or refund, causing unintended financial loss.
Likelihood:
Users may accidentally send wrong amounts due to wallet interface errors, decimal mistakes, or copy-paste errors.
Impact:
Users lose excess funds without notification.
Creates poor user experience and potential trust issues.
Unintended donations to the pot affect game economics.
The following test demonstrates the bug. A player sends 1 ETH instead of the required 0.1 ETH, and the entire overpayment is kept by the contract.
Either require exact payment or refund overpayments:
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.