User can send more ETH than the claimFee
This will all be added to the pot
As per documentation:
It is not specified in the requirements what to do with leftover ETH.Any extra ETH could be considered a tip, this can either be for:
The owner/contract
The winner (current behaviour of the game)
Likelihood: Low
This will adjust the winning pot-size, either the extra value is for the winner (currently), or for the deployer/contract
Impact: Low
No big impact, although it should be clarified / intended behaviour
Consider the claimThrone function:
As you see Both
platformFeesBalance
pot
Gets updated based on msg.value, not based on claimFee, meaning that all the ETH is being sent to the pot and platform fees.
To fix this, it should be specified in the requirements what to do with leftover ETH.
Either:
The owner/contract
The winner (current behaviour of the game)
Alternatively the requirement check could be stricter, to disallow sending more ETH than the claimFee
option 1
option 2
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.