The Game
contract enables players to claim the throne by paying an increasing claimFee
, becoming the currentKing, with the last king winning the pot after the gracePeriod expires. The claimThrone
function require (msg.sender == currentKing, ...)
check incorrectly reverts for all callers, as players cannot be the currentKing when claiming, causing a Denial of Service (DoS) that prevents throne claims.
Likelihood:
Every claimThrone
call triggers the check, which fails since msg.sender cannot equal currentKing for new claimants.
Initial currentKing is address(0), ensuring the check fails for the first claimant and all subsequent attempts.
Players cannot claim the throne, rendering the game unplayable and violating the player/king actor roles.
Funds sent with failed transactions are reverted, halting game progression and preventing pot accumulation.
Tool Used
Manual Review
Code Snippet
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.