Sparkn

CodeFox Inc.
DeFiFoundryProxy
15,000 USDC
View results
Submission Details
Severity: low

Possible division by 0 is not prevented

Summary

[L-02] Possible division by 0 is not prevented

These functions can be called with 0 value in the input and this value is not checked for being bigger than 0, that means in some scenarios this can potentially trigger a division by zero.

file: /src/Distributor.sol
///@audit BASIS_POINTS
146 uint256 amount = totalAmount * percentages[i] / BASIS_POINTS;

https://github.com/Cyfrin/2023-08-sparkn/blob/main/src/Distributor.sol#L146

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.