0

It says that: Transaction Action: ApprovedDAIFor Trade OnUniswap V2: Router 2

Here is the transaction on etherscan: 0x181630a7d1ffaa58588eb6c5500d7f8529ca477621559eaf4a7587729e7ad45a

Why It didnt swap the coins but take the gas fee? I didnt understand what is approved then?

1 Answer 1

1

I didnt understand what is approved then?

You must first run the approve() transaction to allow the Uniswap contracts to withdraw from your token balance on your behalf. (See the approve() part of the ERC-20 standard.)

Once the approval has happened successfully, then the swap can occur in a different transaction. The approve and swap are two different transactions.

3
  • One more question why the gas fee increasing ever I try? The first try was like a hundred but now when I try to see how much the gas fee its almost 300 Commented May 12, 2021 at 11:12
  • Good question. Gas prices are a market, and that market can go up or down. When the network has a lot of traffic, there is competition to get transactions into the next block. People are willing to pay more to get their transaction into a block quickly, so the gas prices increase. When there is less traffic - fewer people submitting transactions - then the gas prices go down. Commented May 12, 2021 at 11:29
  • You are such a wise man. Thanks a lot for illuminating me. Now I can see :) Commented May 12, 2021 at 12:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.