Each player should be able to claim the throne by paying the correct claimFee
, as long as they are not already the current king.
When a player who is not the current king tries to claim the throne, the transaction reverts unexpectedly due to broken logic. This halts all future gameplay after just one claim.
Likelihood:
This occurs every time a player other than the current king tries to claim the throne after one successful claim.
It is triggered immediately after the first claim and halts gameplay entirely.
Impact:
The game becomes unplayable for all new participants after the first claim.
Rewards, platform fees, and winner declaration logic become inaccessible, breaking core game functionality.
This test demonstrates the broken behavior:
After player1
claims the throne, player2
is unable to claim it despite paying the correct amount. This shouldn't happen and indicates a logic flaw in access control.
The current claimThrone()
logic contains contradictory checks that always result in a revert. Remove the redundant second if
statement to allow valid players to claim the throne.
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.