Home / Vulnerability Database / Solidity : Multiplication after division
Solidity

Solidity : Multiplication after division

Overview

Solidity operates only with integers. Thus, if the division is done before the multiplication, the rounding errors can increase dramatically.

Vulnerability type by SmartDec classification: Precision issues.

References

MEDIUM

DerScanner Severity Score

Do you want to fix Solidity : Multiplication after division in your application?

See also

Solidity

Solidity : Return value of transfer, transferFrom, or approve function of ERC-20 standard is always false.

Solidity

Solidity : Using approve function of the ERC-20 token standard

Solidity

Solidity : ERC-20 transfer should throw