Description:
The previousKingPayout
variable is declared and initialized to zero but never updated or transferred to the previous king in the claimThrone()
function.
The code comment states that a small portion of the claim fee should be rewarded to the previous king, but no actual payout logic exists.
This results in the previous king not receiving any reward, which is against the intended game mechanics and can cause player dissatisfaction and unfair gameplay.
Likelihood: High
Every time a new player claims the throne (after the first), the previous king should receive a reward, but currently does not. This happens on every claim after the initial one.
Impact: Medium to High
Previous kings do not receive promised rewards, harming game fairness and player incentives.
Could reduce user trust and participation.
The pot and platform fee calculations are also inaccurate since this missing payout is not accounted for, potentially distorting the prize pot size.
In the POC we can see when the player claim the throne the player1 does not receive any claim.
Need to define percentage of fee for 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.