kadenzipfel / smart-contract-vulnerabilities

A collection of smart contract vulnerabilities along with prevention methods
https://kadenzipfel.github.io/smart-contract-vulnerabilities/
1.63k stars 218 forks source link

Lack of precision vuln updated to precision loss. #86

Open 0xSandyy opened 3 weeks ago

0xSandyy commented 3 weeks ago

Related Issue

Describe the changes you've made:

I added precision loss due to solidity decimal truncation vulnerability including various ways this can occur.

Type of change

Select the appropriate checkbox:

Additional Information

I thought the title needed some change so I changed it to Precision Loss . You suggested Integer Rounding and Integer truncation which are good for root cause but precision loss and rounding errors represent the actual vulnerability. Let me know if I should revert back to the root cause titles.