Owner sets a winner that no participants bet on.
Winners cannot withdraw funds, contract becomes unusable for withdrawals.
src/briVault.sol
Normally, if a winner is set, there should be participants who bet on that team to allow proportional withdrawals based on their shares.
The issue occurs when no one bet on the winning team, making totalWinnerShares = 0, causing division by zero in withdraw and preventing any withdrawals.
Owner sets a winner with no bets, causing revert on withdraw.
Add a check in setWinner to ensure there are winners.
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.