Which public use tokens require safe ERC20

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?

:computer: Environment

:1234: Code to reproduce

not relevant

1 Like

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.

Contract TetherToken

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)

Contract BNB

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.

1 Like