The platform fee should be a reasonable percentage that allows the game pot to grow and provide meaningful prizes to winners.
The constructor and update functions allow platformFeePercentage
to be set to 100%, which results in all claim fees going to the platform owner with nothing remaining for the game pot.
Likelihood:
Owner can explicitly set 100% platform fee during deployment
Owner can update to 100% platform fee after deployment via updatePlatformFeePercentage(100)
Impact:
Game pot never increases (always remains 0)
Winners receive no prize from their participation
Game becomes economically non-functional with no incentives
Players lose funds with no possibility of winning
Deploy contract with _platformFeePercentage = 100
Players claim throne but all fees go to platformFeesBalance
pot remains 0 as amountToPot = sentAmount - currentPlatformFee = sentAmount - sentAmount = 0
Winner gets nothing when they withdraw
Cap the platform fee to be reasonable amount e.g 20.
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.