Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 498 Bytes

17.md

File metadata and controls

10 lines (7 loc) · 498 Bytes

Floating Point Arithmetic

Description:

As there is no fixed point type in Solidity, developers are required to implement their own using the standard integer data types. There are a number of pitfalls developers can run into during this process.

Remediations:

Keeping the right precision in your smart contracts is very important, especially when dealing ratios and rates which reflect economic decisions.

References:

https://blog.sigmaprime.io/solidity-security.html#precision