Players become the King by sending ETH equal to or greater than the current claimFee
. However, the contract does not handle excess ETH. Any amount sent above the claimFee
is silently absorbed and added to the pot or platform fee. This contradicts reasonable user expectations and opens a vector for malicious frontends to induce overpayment.
Likelihood:
Occurs whenever a user sends more than claimFee
(e.g., by UI mistake, manual tx input, or malicious frontend).
Impact:
User funds are silently absorbed without transparency.
Malicious UIs could exploit this to inflate pot
or platform fees.
Reduces trust and introduces unfair game mechanics.
This test demonstrates that if a user overpays when calling claimThrone()
, the extra ETH is not refunded.
This proves that the user is charged the full 0.5 ETH, rather than just the 0.1 ETH claimFee
.
Enforce exact payment or explicitly refund the difference between msg.value
and claimFee
:
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.