Missing Payout to Previous King in claimThrone
In the game, when a new player claims the throne, the previous king should receive a portion of the new claim fee as an incentive for holding the throne
However, in the current implementation, although the previousKingPayout
variable exists, it is never assigned a value or transferred. As a result, the entire claim fee only funds the platform and the pot — the previous king never gets paid
Likelihood:
This happens every time any new player claims the throne while a previous king exists
It is guaranteed to happen because the logic to assign and transfer the payout is entirely missing
Impact:
Previous kings are never rewarded, breaking the core game incentive
This undermines user trust and the economic loop, since players pay to claim the throne but get no payout for being dethroned.
The entire ETH intended for payouts accumulates unfairly in the pot or platform fee.
A player claims the throne and becomes king
A new player becomes king but the previous king isn't paid for being the previous king
Add a proper payout percentage for the dethroned king, ensure it is subtracted from the total amount, and securely transfer it
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.