3 votes
Accepted

Approve USDT on Ethereum

The USDT contract on ethereum doesn't implement the IERC20 interface correctly. Namely, functions that are supposed to return a bool (like approve does) don't. Since you're using the standard IERC20 ...
Foxxxey's user avatar
  • 4,307
1 vote
Accepted

UniswapV2's equivalent of getPair and other functions

Uniswap V3 factory has getPool function which takes two token addresses and the pool's fee (100, 500, 3000 or 10000) and returns address of the pool. Knowing the pool address you can get balances of ...
Vas Treck's user avatar
  • 412
1 vote

Approve USDT on Ethereum

ethereum usdt: function approve(address spender, uint value) public; ethereum IERC20: function approve(address spender, uint256 amount) external returns (bool); So,using IERC20's approve will return ...
EthanOK's user avatar
  • 451

Only top scored, non community-wiki answers of a minimum length are eligible