If check <> 0 is not done in totalWinnerShares function will revert as below is diving by zero
Likelihood:
Medium. It will happen when there is no winners.
Impact:
Low. Error will be raised. Maybe should be thought the case when there is no winners to avoid the assests remain blocked in the contract.
The owner sets a winner.
There is no winner.
If withdraw is attempted, error is raised.
When no one bet on the winning team, making totalWinnerShares = 0, causing division by zero in withdraw and preventing any withdrawals.
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.