I am trying to buy a token at the listing time, but my transactions get rejected with the error "TRANSFER_FAILED" while other transactions at the same time are successful. I have tried high gas limit and high gas price already.

I was looking many people use swapExactETHForTokensSupportingFeeOnTransferTokens() while I use swapExactTokensForTokens(). Is there any difference between the two functions? Also, could this be the cause of the rejection of my transactions?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.