The claimThrone()
function in the contract is expected to follow the game rule:
"Receives a small payout from the next player's
claimFee
(if applicable)."
This implies that the dethroned (previous) king should be rewarded with a portion of the ETH sent by the next claimant.
However, in the current implementation, this rule is entirely unimplemented:
The previousKingPayout
variable is declared but never assigned a value and no ETH is sent to the previous currentKing
before a new king is declared.
Likelihood:
It occurs anytime the throne is claimed
Impact:
The Game's policy is violated, which breach users trust.
lack of incentives for dethroned players might discourage them from interacting with the protocol.
Allocate a percentage of the Game::claimFee
to the Game::currentKing
before a new Game::currentKing
is declared.
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.