In the _distribute function, the calculation of amount for token distribution involves a division operation (totalAmount * percentages[i] / BASIS_POINTS). If the value of BASIS_POINTS is set to 0, it will result in a division by zero error during execution.
If the BASIS_POINTS constant is inadvertently set to 0, it will trigger a division by zero error during the token distribution calculation. This will lead to a transaction failure and halt the contract's execution.
Manual
Ensure that the BASIS_POINTS constant is never set to 0 and validate its value before performing division operations. This will prevent division by zero errors and maintain the correct execution of the contract.
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.