Near-One / rainbow-token-connector

ERC-20/NEP-141 Token Connector for Rainbow Bridge
62 stars 18 forks source link

ERC20Locker: unnecessary usage of `SafeMath` #161

Open sept-en opened 2 years ago

sept-en commented 2 years ago

ERC20Locker used to be compiled with Solidity 0.6.12, so it needed to use SafeMath dependency. Currently, the contract code base utilizes Solidity 0.8.x, which has built in support of overflow and underflow warnings. Thus SafeMath library can be omitted for gas savings and code simplification.