I am trying to decide if to use safeERC20 library with my contracts.
was curious for which known public tokens its required.
I know about OMG
are there any others?
Environment
Code to reproduce
not relevant
I am trying to decide if to use safeERC20 library with my contracts.
was curious for which known public tokens its required.
I know about OMG
are there any others?
Environment
Code to reproduce
not relevant
Hi @ilanD,
Sorry, I donβt know which public tokens require SafeERC20.
You might need to check all the tokens that you wanted to support or use SafeERC20 to be on the safe side.
You could try Online ERC20 contract verifier to check.
Looking at https://etherscan.io/tokens I found a couple.
https://etherscan.io/token/0xdac17f958d2ee523a2206206994597c13d831ec7
== ERC20 functions definition ==
[x] transfer (address, uint256) -> (bool)
[x] approve (address, uint256) -> (bool)
[x] transferFrom (address, address, uint256) -> (bool)
[β] allowance (address, address) -> (uint256)
[β] balanceOf (address) -> (uint256)
https://etherscan.io/token/0xB8c77482e45F1F44dE1745F52C74426C631bDD52
== ERC20 functions definition ==
[x] transfer (address, uint256) -> (bool)
[β] approve (address, uint256) -> (bool)
[β] transferFrom (address, address, uint256) -> (bool)
[x] allowance (address, address) -> (uint256)
[x] balanceOf (address) -> (uint256)
Thank u very much for the detailed reply.
will check out your recommendations.