Whoever pays the claimFee should be able to claim the throne, but here only the person who is the king currently can claim the throne, which is wrong. Anyone who can pay the claimFee should be able to become the king.
Likelihood:
The require condition is wrong, so whenver this function is called to claim the throne this issue will occur.
Impact:
The first person to claim the throne will be the king through the game, which is not an expected behaviour of the game. Anyone who can pay the claimFee should be able to become the king.
Adding this line in the code will help other players to claim the throne by paying the claimFee.
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.