add info on safemath

This commit is contained in:
steinkirch.eth, phd 2023-06-19 09:19:01 -07:00 committed by GitHub
parent fb9b7c3bb7
commit d85f813a9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,5 +2,7 @@
<br>
* 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](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/SafeMath.sol)** to prevent arithmetic overflow and underflow.