Some ERC20 tokens may revert on zero value transfers. When distributing tokens to winners and STADIUM_ADDRESS, if the transfer value is zero, then the whole transaction will be reverted.
In Distributor.sol, the organizer will distribute tokens according to the percentages the winners earned.
In the case where the winner actually earns a zero amount and the ERC20 reverts on zero-value transfer, then the whole distribute function will be DoSed. Also, if the commission fee is set to zero in the future, then the STADIUM_ADDRESS may receive 0 tokens.
Distribution of tokens may be DoSed when interacting with ERC20 tokens that revert on zero-value transfer
Manual Review
It is best to account for any potential revert on zero-value transfer tokens even if the current protocol doesn't use those tokens because the whitelisted tokens may change if they are upgraded or if the owner decides to revamp the protocol to allow more whitelisted tokens.
Check for zero value transfer:
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.