Each time claimThrone()
is called, claim fee increases:
But there is no max cap on claimFee.
If feeIncreasePercentage
is 100, then:
First claim: 1 ETH → next fee = 2 ETH
Next: 2 ETH → 4 ETH
Then: 4 ETH → 8 ETH
Very quickly: 32 ETH, 64 ETH, 128 ETH...
Eventually, no one will be able to afford it → game freezes
Likelihood:
Impact:
Game freezes after few rounds
Owner sets feeIncreasePercentage = 100
, then lets the game run for 5–6 claims. Observe claimFee becomes unaffordable.
Then try calling claimThrone()
with large values — eventually, no player can afford it.
Add a maximum cap to claimFee
, like the below code
Or set a maximum feeIncreasePercentage
during config (e.g., 25%).
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.