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.
Related Issue
Closes: https://github.com/kadenzipfel/smart-contract-vulnerabilities/issues/74, https://github.com/kadenzipfel/smart-contract-vulnerabilities/issues/70#issuecomment-2155686754
Checklist
[x] I have read and followed the style guide
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 suggestedInteger Rounding
andInteger 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.