Description:
The code declares a previousKingPayout variable intended to reward the outgoing king, but never assigns or transfers it. As a result, no portion of a new claim fee is ever paid out to the dethroned king, violating the intended game economics.
Impact:
Economic Incentive Broken: Kings never receive their promised payout, undermining player trust.
Unfair Gameplay: Only the eventual winner gets a reward, making intermediate “king” status unprofitable.
Proof of Concept: Add the following test to the 'Game.t.sol':
Mitigation:
Implement proper calculation and transfer of previous king payout within the claimThrone() function:
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.