0xKitsune / sstan

Solidity static analyzer
82 stars 7 forks source link

L: Loss of precision on division #181

Open 0xOsiris opened 1 year ago

0xOsiris commented 1 year ago

Solidity doesn't support fractions, so divisions by large numbers could result in the quotient being zero.

To avoid this, it's recommended to require a minimum numerator amount to ensure that it is always greater than the denominator.