Normally, any player except the current king should be able to claim the throne by paying the current claim fee. The claim logic is the fundamental gatekeeper for game progression.
Instead, the code only allows the current king to reclaim the throne. This mistake effectively locks the game, preventing new players from participating. The business logic is inverted, and the game cannot progress past the initial claim.
Likelihood:
This bug is always present (every claim attempt by a non-king will fail).
No player except the current king can ever claim the throne after deployment.
Impact:
The game is rendered non-functional after the first claim.
No new rounds, no competition, and no pot growth occurs.
Explanation:
Anyone except the current king will hit this require and revert, blocking all new claimants. This directly contradicts the business logic and makes the game unplayable beyond the first claim.
Mitigation Explanation:
By changing the comparison to !=
, only non-kings can claim, aligning with the intended game flow and restoring functionality.
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.