Some tokens (e.g. LEND) revert when transferring a zero value amount. Therefore, if the amount to be transferred is 0, it might cause the transaction to fail.
The _distribute()
function is designed to facilitate the fair and proportional distribution of tokens to a group of winners, based on given percentages.
However,some tokens (e.g. LEND) revert when transferring a zero value amount. Therefore, if the amount to be transferred is 0, it might cause the transaction to fail.
A transaction failure results in the feature being unavailable.
It is recommended to change it to the following code.
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.