Skip to content

Latest commit

 

History

History
22 lines (20 loc) · 739 Bytes

Arithemtic Check.md

File metadata and controls

22 lines (20 loc) · 739 Bytes

Overflow/Underflow Check: Until Solidity version 0.8.0 which introduced checked arithmetic by default, arithmetic was unchecked and therefore susceptible to overflows and underflows which could lead to critical vulnerabilities.

The recommended best-practice for such contracts is to use OpenZeppelin’s SafeMath library for arithmetic.


Slide Screenshot

146.jpg


Slide Text

  • Arithmetic Overflow/Underflow -> Wrapping
  • Balance & Accounting
  • Critical Vulnerabilities
  • solc < 0.8.0
    • SafeMath Library
  • solc >= 0.8.0
    • Default Checks

References


Tags