# Unable to sell tokens

**URL:** <https://forum.openzeppelin.com/t/unable-to-sell-tokens/10041>\
**Category:** Review Wanted\
**Created:** [June 7, 2021, 2:58am UTC](https://forum.openzeppelin.com/t/unable-to-sell-tokens/10041 "2021-06-07T02:58:18Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![r0b3rt](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@r0b3rt](https://forum.openzeppelin.com/u/r0b3rt)\
**Post date:** [June 7, 2021, 2:58am UTC](https://forum.openzeppelin.com/t/unable-to-sell-tokens/10041/1 "2021-06-07T02:58:18Z")

</div>

BSC Contract - 0xa148e9589d3e9eb3754510d71708b078f205fec3

This is just one example. There is liquidity in the pool, yet PancakeSwap will not allow you to sell.  
I’m new to solidity and I’m wondering which function in the contract is making it unable to sell, so I know for future reference. Any help is much appreciated!!!

---

<div class="post-metadata">

**Author:** ![r0b3rt](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@r0b3rt](https://forum.openzeppelin.com/u/r0b3rt)\
**Post date:** [June 7, 2021, 5:23am UTC](https://forum.openzeppelin.com/t/unable-to-sell-tokens/10041/2 "2021-06-07T05:23:59Z")

</div>

Btw, I know that it has nothing to do with pancakeswap. It is definitely a function of the contract.

---

<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:** [June 7, 2021, 11:10pm UTC](https://forum.openzeppelin.com/t/unable-to-sell-tokens/10041/3 "2021-06-07T23:10:38Z")

</div>

Is this your own contract? If you want a review of the code I would recommend sharing the code here as well. If you have a problem you need to solve you should post in one of the #support categories.

---

<div class="post-metadata">

**Author:** ![r0b3rt](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@r0b3rt](https://forum.openzeppelin.com/u/r0b3rt)\
**Post date:** [June 10, 2021, 1:28am UTC](https://forum.openzeppelin.com/t/unable-to-sell-tokens/10041/4 "2021-06-10T01:28:59Z")

</div>

This is not my contract. I bought a little bit, but I’m unable to sell. This isn’t the first time I’ve come across a token like this. I know 100% sure it has nothing to do with pancakeswap and is definitely a function of the contract. Would just like to know if anything sticks out so I can avoid similar tokens in the future. I posted the contract above, but here is the source code for the contract: [https://bscscan.com/address/0xa148e9589d3e9eb3754510d71708b078f205fec3#code](https://bscscan.com/address/0xa148e9589d3e9eb3754510d71708b078f205fec3#code)

---

<div class="post-metadata">

**Author:** ![Skyge](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/skyge/32/343_2.png) [@Skyge](https://forum.openzeppelin.com/u/Skyge)\
**Post date:** [June 11, 2021, 1:53am UTC](https://forum.openzeppelin.com/t/unable-to-sell-tokens/10041/5 "2021-06-11T01:53:51Z")

</div>

I am not sure, but maybe you can set a larger slippage.

---

<div class="post-metadata">

**Author:** ![r0b3rt](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@r0b3rt](https://forum.openzeppelin.com/u/r0b3rt)\
**Post date:** [June 14, 2021, 8:27am UTC](https://forum.openzeppelin.com/t/unable-to-sell-tokens/10041/6 "2021-06-14T08:27:34Z")

</div>

It has to be something in the contract. Pancakeswap is working fine with other tokens and even with slippage set at MAX it still fails due to undefined error. I’ve also used estimated amount on both sides and that’s a no go also.

---

<div class="post-metadata">

**Author:** ![Skyge](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/skyge/32/343_2.png) [@Skyge](https://forum.openzeppelin.com/u/Skyge)\
**Post date:** [June 23, 2021, 7:03am UTC](https://forum.openzeppelin.com/t/unable-to-sell-tokens/10041/7 "2021-06-23T07:03:52Z")

</div>

Yeah, you are right, maybe there is something in the contract, I have a check from the pancake info, most of transactions are selling BNB to get this token, so maybe this is an irreversible process.

- [NIIFI - PancakeSwap Info & Analytics](https://pancakeswap.info/token/0xa148e9589d3e9eb3754510d71708b078f205fec3)
- [NIIFI && BNB Pair | BscScan](https://bscscan.com/address/0x11a1485d93426b4ff1c5f104c73c32a8e67d44e5#tokentxns)

---

<div class="post-metadata">

**Author:** ![JustMe13](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@JustMe13](https://forum.openzeppelin.com/u/JustMe13)\
**Post date:** [July 6, 2021, 6:41pm UTC](https://forum.openzeppelin.com/t/unable-to-sell-tokens/10041/8 "2021-07-06T18:41:13Z")

</div>

That’s actually a common strategy, where someone releases a token but breaks the sell function to artificially propup the price, while the owner can rugpull the whole community.

---

<div class="post-metadata">

**Author:** ![Karla\_Lujan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/karla_lujan/32/9539_2.png) [@Karla\_Lujan](https://forum.openzeppelin.com/u/Karla_Lujan)\
**Post date:** [October 13, 2021, 1:22pm UTC](https://forum.openzeppelin.com/t/unable-to-sell-tokens/10041/9 "2021-10-13T13:22:34Z")

</div>

this calls honeypot.. you can chek honeypot using this tool [https://honeypotchecker.org/](https://honeypotchecker.org/). but it should have liqidty on the pool.... otherwise you cant find honeypots by using this tool.some scam devs using high tax fees. as a example buy tax is 10%... sell tax is 99%... so people can't sell.... they commonly disable sell function.that's why we can't sell

---

<div class="post-metadata">

**Author:** ![grivas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/grivas/32/4089_2.png) [@grivas](https://forum.openzeppelin.com/u/grivas)\
**Post date:** [October 30, 2021, 6:48am UTC](https://forum.openzeppelin.com/t/unable-to-sell-tokens/10041/10 "2021-10-30T06:48:02Z")

</div>

hey was wondering if you have an example of this 99% tax or more info on this?

---

<div class="post-metadata">

**Author:** ![Maxtorgr](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/maxtorgr/32/6524_2.png) [@Maxtorgr](https://forum.openzeppelin.com/u/Maxtorgr)\
**Post date:** [October 31, 2021, 10:26pm UTC](https://forum.openzeppelin.com/t/unable-to-sell-tokens/10041/11 "2021-10-31T22:26:31Z")

</div>

[https://honeypotchecker.org/?address=0x87230146E138d3F296a9a77e497A2A83012e9Bc5](https://honeypotchecker.org/?address=0x87230146E138d3F296a9a77e497A2A83012e9Bc5)

---

<div class="post-metadata">

**Author:** ![superminesweeper](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/superminesweeper/32/11106_2.png) [@superminesweeper](https://forum.openzeppelin.com/u/superminesweeper)\
**Post date:** [December 7, 2021, 2:10am UTC](https://forum.openzeppelin.com/t/unable-to-sell-tokens/10041/12 "2021-12-07T02:10:31Z")

</div>

Smart contracts lock you in and you can't sell
