The function does not check if the contract has a non-zero balance before attempting withdrawals.
If the contract has a zero balance, the function will still attempt to distribute funds, wasting gas.
Users may pay gas fees for transactions that do nothing.
Manual rEview
Add a check to ensure the contract has a non-zero balance:
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.