Suppose that there was very tiny funding received of only 1, then the function will not be reverted and will still lead to distribution of winnings of 0 amount.
Suppose one winner got 50% winning reward, let's do the calculation
Manual Testing
To have a check on the totalAmount that there should be some minimum amount then only we can distribute.
Or we can modify the way we receive the fundings from sponsor, so instead of deploying the proxy contract after the contest is over, we should deploy it at the starting of contest and define a function to manage the fundings received to only allow user to fund for some minimum amount.
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.