medium10 pts · first answer countssmart-contract-securitytokenserc20
approve reverts for USDT
A router calls token.approve(spender, amount) before each swap. It works for most tokens but reverts for USDT on Ethereum when an allowance is already set. Why?
Discussion 0
Join free to post in the discussion.
Related questions
- Letting a contract spend tokensBlockchain Developer
- Standard for unique tokensBlockchain Developer
- Private variables are public dataBlockchain Developer
- Verifying a contract on EtherscanBlockchain Developer
- Sharing a seed phraseBlockchain Developer
- Why use OpenZeppelinBlockchain Developer
- Why WETH existsBlockchain Developer
- Tokens sent to the token's own addressBlockchain Developer