If the percentage of rewards is too low, it may truncate to zero, and the winner will not gain anything
In the distribution function, the winner will receive a reward that is proportionate to the total amount
If the totalAmount is exceptionally low and the percentage is low, then the amount will truncate to zero. Currently, this is highly unlikely because the totalAmount for a contest will not be $0.01. However, the risk of truncation still remains, especially if the protocol adds in more token that has low decimals with high value, like wbtc. Setting as low.
Truncation to zero may be possible
ReMix
Make sure the totalAmount has at least a 1e4 minimum cap, and make sure the protocol does not send 0 values.
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.