blockchains-security-toolkit/advanced_expert/vulnerabilities/arithmetic_errors/README.md
2023-06-19 09:19:01 -07:00

369 B

arithmetic errors


  • defaults:
    • solidity < 0.8: integers in overflow / underflow without any errors.
    • solidity >= 0.8: default behaviour of for overflow / underflow is to throw an error.
  • use SafeMath to prevent arithmetic overflow and underflow.