Normally, when a new player calls Game::claimThrone
, the ETH they send should be distributed between three parties:
A portion to the previous king
A portion to the platform owner as fees
The remainder to the prize pot
However, this behavior is not implemented in the contract. The documentation clearly states that "a small portion of the new claim fee is sent to [the previous King]," but in reality, no such payout occurs. The entire claim fee is split only between the pot and the platform.
Likelihood:
This will happen every time a new player claims the throne and there is an existing king.
Since the previous king receives nothing, the expected game dynamics are broken.
Impact:
The contract behaves in a way that contradicts its own documentation.
This test demonstrates how the first king is dethroned by another player and recieves no portion of the claimFee
Modify the claimThrone
function to pay a configurable portion of the new claim fee to the previous king.
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.