claimThrone
method, reduces clarityThe contract checks if the platform fee exceeds the available amount after previous king payout, but platformFeePercentage
is already validated to be ≤ 100 and previousKingPayout
is always zero.
This check is unnecessary and adds confusion.
Likelihood:
This occurs every time claimThrone()
is called.
The check never triggers due to input validation.
Impact:
No functional impact, but reduces code clarity and maintainability.
Remove the redundant check.
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.