In the game's expected behavior, the previous king (i.e., the player dethroned by the latest claimer) should receive a small incentive from the next player's claim fee.
However, in the current implementation of claimThrone()
, no incentive is given to the previous king, despite this being clearly documented in the game’s rules.
This creates a mismatch between documentation and smart contract logic, and may break trust or cause disputes among users.
And also Dead logic due to previousKingPayout =0 because currentPlatformFee is certain percentage of sentAmount and
it never greater and also also even previousKingPayout =1 then also sentAmount - previousKingPayout means also definitly
if (currentPlatformFee > (sentAmount - previousKingPayout)) is false
Likelihood:
This issue will always occur when a new player claims the throne, because the code never assigns a non-zero value to previousKingPayout
.
Game participants expecting a reward based on documentation will never receive it, which can discourage participation or lead to loss of user trust.
Since the game is expected to pay out rewards to dethroned players (as stated in the rules), the discrepancy is guaranteed to be noticed in real deployments.
Impact:
The previous king receives no payout, contradicting the advertised rules.
This may lead to:
Players feeling cheated or misled.
Reduced participation or complaints from users.
Centralization of benefit to the platform owner, who still receives fees as intended.
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.