# swapExactTokensForETHSupportingFeeOnTransferTokens and transfer\_from\_failed

**URL:** <https://forum.openzeppelin.com/t/swapexacttokensforethsupportingfeeontransfertokens-and-transfer-from-failed/12019>\
**Category:** Contracts\
**Created:** [July 7, 2021, 3:58am UTC](https://forum.openzeppelin.com/t/swapexacttokensforethsupportingfeeontransfertokens-and-transfer-from-failed/12019 "2021-07-07T03:58:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![li\_qimeng](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/li_qimeng/32/7385_2.png) [@li\_qimeng](https://forum.openzeppelin.com/u/li_qimeng)\
**Post date:** [July 7, 2021, 3:58am UTC](https://forum.openzeppelin.com/t/swapexacttokensforethsupportingfeeontransfertokens-and-transfer-from-failed/12019/1 "2021-07-07T03:58:41Z")

</div>

I am integrating liquidity with pancakeswap.  
Btw when i call swapExactTokensForETHSupportingFeeOnTransferTokens, i keep got error: transfer\_from\_failed.  
I am newbie and I can’t understand i get this error.  
I want someone to help me on this error.  
Sincerely.

---

<div class="post-metadata">

**Author:** ![frangio](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/frangio/32/15251_2.png) [@frangio](https://forum.openzeppelin.com/u/frangio)\
**Post date:** [July 7, 2021, 6:48pm UTC](https://forum.openzeppelin.com/t/swapexacttokensforethsupportingfeeontransfertokens-and-transfer-from-failed/12019/2 "2021-07-07T18:48:56Z")

</div>

Hi @li_qimeng. Can you provide more background about what you're trying to do, what you understand about the issue, what you think could be happening, etc.

> [@How do I ask a good question?](https://forum.openzeppelin.com/t/how-do-i-ask-a-good-question/9375):
>
> If you were redirected here, your post did not meet quality standards. Please review this page and edit or create a new topic according to the guidelines. Asking good questions is important in this community. It will improve your chances of getting an answer from the OpenZeppelin team or community members, and of finding out how to solve your problem. Users are expected to put in a minimum level of effort. Topics will be closed unanswered if moderators consider that this was not the case. Re…

---

<div class="post-metadata">

**Author:** ![li\_qimeng](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/li_qimeng/32/7385_2.png) [@li\_qimeng](https://forum.openzeppelin.com/u/li_qimeng)\
**Post date:** [July 8, 2021, 2:42am UTC](https://forum.openzeppelin.com/t/swapexacttokensforethsupportingfeeontransfertokens-and-transfer-from-failed/12019/3 "2021-07-08T02:42:00Z")

</div>

I forked safemoon contract and customized it.  
But when I add liquidity, I get error: Transfer\_from\_failed.  
I don’t use truffle or zeplin and I am working on only Remix.  
I need help on this prolem.  
Thanks

---

<div class="post-metadata">

**Author:** ![defitokens](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/defitokens/32/14539_2.png) [@defitokens](https://forum.openzeppelin.com/u/defitokens)\
**Post date:** [May 2, 2022, 9:28pm UTC](https://forum.openzeppelin.com/t/swapexacttokensforethsupportingfeeontransfertokens-and-transfer-from-failed/12019/4 "2022-05-02T21:28:48Z")

</div>

Below is the solution to this famous error: [https://medium.com/@italo.honorato/how-to-resolve-transferhelper-error-transfer-from-failed-fb4c8bf6488c](https://medium.com/@italo.honorato/how-to-resolve-transferhelper-error-transfer-from-failed-fb4c8bf6488c)

**It concludes that this is a design error of the ERC20 standard itself applied to contracts that make exchanges from other accounts. If I'm wrong, please correct me.**

Does anyone know how to guide me on how to open a discussion on the subject, for possible improvements in this?
