The claimThrone()
function is designed to allow any player to claim the throne by paying the required claimFee
, becoming the new "King" and replacing the current one, as long as they are not already the current king.
However, due to an incorrect condition in the require
statement, only the current king can successfully call claimThrone()
, while all other players are blocked, preventing the intended game progression where multiple players compete to overthrow the king.
Likelihood:
This issue triggers every time a player who is not the current king attempts to claim the throne, which is the primary interaction in the game.
Players will attempt to claim the throne frequently as part of normal gameplay, making this a constant barrier.
Impact:
The game becomes locked to the first player who claims the throne, as no other player can replace them, halting the competitive mechanic entirely.
Players lose trust in the game, and the accumulated pot
cannot be fairly contested, undermining the contract's purpose.
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.