In the intended game design, when a player claims the throne, a portion of their claim fee should be paid to the previous king. This incentivizes participation and rewards dethroned kings.
However, the code does not implement this mechanic. The variable previousKingPayout
is defined but never assigned or used, resulting in no payout for dethroned kings.
Likelihood:
This will occur every time a new player claims the throne after the initial round.
No dethroned king will ever receive their intended payout.
Impact:
Dethroned kings have no financial incentive to participate further.
The absence of this reward undermines engagement, game fairness, and retention.
Explanation:
The payout logic is missing. Even though the variable exists, it is never set to a meaningful value nor used to update balances for the previous king. The code thus breaks a fundamental incentive of the game.
Mitigation Explanation:
Add a configurable percentage (previousKingPercentage
) and update the previous king's pending winnings. This restores the intended payout mechanic and aligns incentives with the game’s design.
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.