Alexander Salnikov
@insider0x
Ok, $100m question. How to remove toxic approve flow to send some ERC20 tokens? Can I just attach a finite amount of ERC20 tokens to a transaction the same way I'm doing with ETH?
1 reply
0 recast
0 reaction
Boboch D. Brew
@boboch
ERC20 no, but ERC777 yes https://eips.ethereum.org/EIPS/eip-777
1 reply
0 recast
1 reaction
Boboch D. Brew
@boboch
btww you can send a ERC20 in a single transaction, the issue you're pointing is when this transaction need to do something else. ex: swap USDC for ETH you need to send the USDC and initiate the swap those two can't be done in a single transaction.
1 reply
0 recast
1 reaction
Boboch D. Brew
@boboch
because there's 2 smart contracts involved, the token contract and the interaction contract, the token contract need you to author the transaction. by approving the interaction contract to use your ERC20 you're allowing him to author the transfer so after that you just have a single contract call.
0 reply
0 recast
1 reaction