Common Vulnerability Classes·Lesson 6 of 20·30 min
Integer Overflow, Precision Loss and Unsafe Math
This lesson is for enrolled learners
The concept Solidity 0.8 added automatic overflow/underflow checks, so the classic "balance wraps to a huge number" bug from older contracts is largely gone — but math bugs still cause real losses in three other forms: Division-before-multiplication precision loss — integer division truncates, so a / b c can lose significant value compared to a c / b, which the……
Enroll to continue Already enrolled? Sign in