Each time a player claims the throne to be king, a portion of the claim fee(the platform fee percentage) is updated to the platform fees balance. The rest of the claim fee is sent to the pot for the king to claim when the game ends.
The contract allows the owner to set the platform fee percentage to 100%. As a result of this, the full claim fee is routed to the owner with nothing to claim in the pot for the king when the game ends.
Likelihood:
The issue will occur whenever the contract owner decides to set or update the platform fees percentage to 100%, which in turn would cause all future throne claims to be routed to the owner, leaving the pot empty.
As more players participate under this setting, the prize pot remains empty, leaving the king with no reward at the end of the game.
Impact:
Players who become kings are misled to think there will be a prize at the end of the game, but end up winning nothing.
This breaks trust in the game, and breaks the core incentives of the game and allows the owner to extract all value from participants.
My recommeded mitigation would be to edit the isValidPercentage modifier so that they cannot put in 100%, or make the upper percentage limit to be a reasonable one. Another
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.