# \#pancake

**URL:** https://forum.openzeppelin.com/tag/pancake/69.md

[Latest](https://forum.openzeppelin.com/latest.md) · [Categories](https://forum.openzeppelin.com/categories.md) · [Tags](https://forum.openzeppelin.com/tags.md)

---

## [Need help in locking a PCS LP](https://forum.openzeppelin.com/t/need-help-in-locking-a-pcs-lp/45232)

<div class="topic-metadata">

**Author:** [@jose\_antonio](https://forum.openzeppelin.com/u/jose_antonio)\
**Replies:** 0\
**Last updated:** [February 22, 2026, 4:32am UTC](https://forum.openzeppelin.com/t/need-help-in-locking-a-pcs-lp/45232 "2026-02-22T04:32:08Z")

</div>

Hi all, i am trying to lock a PanCakeSwap LP to reference a pricing oracle to fix spot prices against my token. tried via code, no go. Here’s the link for the LP need help befoore adding more LP :1234: Code to re…

---

## [This transaction would fail error](https://forum.openzeppelin.com/t/this-transaction-would-fail-error/43909)

<div class="topic-metadata">

**Author:** [@Cryptomaster](https://forum.openzeppelin.com/u/Cryptomaster)\
**Replies:** 0\
**Last updated:** [April 23, 2025, 5:08am UTC](https://forum.openzeppelin.com/t/this-transaction-would-fail-error/43909 "2025-04-23T05:08:16Z")

</div>

Hello guys, I have seen a lot people getting This transaction would fail error when they trying to remove liquidity. This transaction would fail error can cause from different smart contract . This transaction would fai…

---

## [Can you help to sell a token?](https://forum.openzeppelin.com/t/can-you-help-to-sell-a-token/43659)

<div class="topic-metadata">

**Author:** [@Maryna\_Maksimovic](https://forum.openzeppelin.com/u/Maryna_Maksimovic)\
**Replies:** 3\
**Last updated:** [March 25, 2025, 1:02pm UTC](https://forum.openzeppelin.com/t/can-you-help-to-sell-a-token/43659 "2025-03-25T13:02:46Z")

</div>

Greeting. Is there any way you could help me to sell token (address 0x7c770e29006c3d2ad6f0ebda818aaa10beb48b4d ) or tell me how to do it? transaction hash 0x6a026ba22df464820b0e176c7a7fa31e817710105259a5047e603a25b1918…

---

## [Liquidity pool is causing high market cap](https://forum.openzeppelin.com/t/liquidity-pool-is-causing-high-market-cap/29195)

<div class="topic-metadata">

**Author:** [@mrlupr](https://forum.openzeppelin.com/u/mrlupr)\
**Replies:** 6\
**Last updated:** [February 14, 2025, 7:57pm UTC](https://forum.openzeppelin.com/t/liquidity-pool-is-causing-high-market-cap/29195 "2025-02-14T19:57:46Z")

</div>

Hello everyone, I'm in the process of deploying my first contract. The issue I'm running into now is when I go to make a liquidity pool at pancake swap. I add 1% of total supply and one BNB. However when I go to dextool…

---

## [How to lock liquidity on pancakeswap?](https://forum.openzeppelin.com/t/how-to-lock-liquidity-on-pancakeswap/10187)

<div class="topic-metadata">

**Author:** [@Jidnyesh\_AJ](https://forum.openzeppelin.com/u/Jidnyesh_AJ)\
**Replies:** 7\
**Last updated:** [September 1, 2023, 6:17am UTC](https://forum.openzeppelin.com/t/how-to-lock-liquidity-on-pancakeswap/10187 "2023-09-01T06:17:51Z")

</div>

I need to lock my liquidity on pancakeswap so as to step forward towards trust. Also, I need to lock my DEV wallet so as to prevent extreme selling volume from the devs. But whichever service I am visiting, they are cos…

---

## [Create an ERC20 token like safemoon](https://forum.openzeppelin.com/t/create-an-erc20-token-like-safemoon/33585)

<div class="topic-metadata">

**Author:** [@DevSumit](https://forum.openzeppelin.com/u/DevSumit)\
**Replies:** 4\
**Last updated:** [December 13, 2022, 5:59am UTC](https://forum.openzeppelin.com/t/create-an-erc20-token-like-safemoon/33585 "2022-12-13T05:59:32Z")

</div>

I want to create an ERC20 token like safemoon in which I want to add my custom tax 10% on each trade in pancake swap and this tax auto added in liquidity and liquidity also locked for 3 year. Is there any way to achieve …

---

## [How to remove pancakeswap lp in through BSCScan](https://forum.openzeppelin.com/t/how-to-remove-pancakeswap-lp-in-through-bscscan/32507)

<div class="topic-metadata">

**Author:** [@John\_William](https://forum.openzeppelin.com/u/John_William)\
**Replies:** 1\
**Last updated:** [October 17, 2022, 2:07am UTC](https://forum.openzeppelin.com/t/how-to-remove-pancakeswap-lp-in-through-bscscan/32507 "2022-10-17T02:07:34Z")

</div>

I am unable to remove 100% LP because of 2% max transaction and ownership renounced. How can I remove at once using BscScan and pancakeswap router.

---

## [Cannot interact with contract to remove liquidity](https://forum.openzeppelin.com/t/cannot-interact-with-contract-to-remove-liquidity/31973)

<div class="topic-metadata">

**Author:** [@Pitquidity](https://forum.openzeppelin.com/u/Pitquidity)\
**Replies:** 2\
**Last updated:** [September 21, 2022, 9:45am UTC](https://forum.openzeppelin.com/t/cannot-interact-with-contract-to-remove-liquidity/31973 "2022-09-21T09:45:20Z")

</div>

I can't seem to interact with the contract to remove liquidity in our V1 token to bring it to the V2. I used the proper wallet with Pancake, but my pool won't even show up on the your pools list. Is there a way to get …

---

## [I need a masterchef that gives out the contract balance instead of minting tokens](https://forum.openzeppelin.com/t/i-need-a-masterchef-that-gives-out-the-contract-balance-instead-of-minting-tokens/31489)

<div class="topic-metadata">

**Author:** [@xnoval](https://forum.openzeppelin.com/u/xnoval)\
**Replies:** 1\
**Last updated:** [August 27, 2022, 4:31pm UTC](https://forum.openzeppelin.com/t/i-need-a-masterchef-that-gives-out-the-contract-balance-instead-of-minting-tokens/31489 "2022-08-27T16:31:18Z")

</div>

I need a masterchef that gives out the contract balance instead of minting tokens Like i deposit x Token and it gets distributed with x tokens of it per block to the stakers

---

## [Removing liquidity on broken SafeMoon fork](https://forum.openzeppelin.com/t/removing-liquidity-on-broken-safemoon-fork/14109)

<div class="topic-metadata">

**Author:** [@NoOverflow](https://forum.openzeppelin.com/u/NoOverflow)\
**Replies:** 5\
**Last updated:** [July 27, 2022, 5:06am UTC](https://forum.openzeppelin.com/t/removing-liquidity-on-broken-safemoon-fork/14109 "2022-07-27T05:06:13Z")

</div>

Hi, I'm opening this support ticket as I need help from someone better than me concerning BEP20 smart contracts and LP tokens. A friend of mine deployed a BEP20 token right before the PCS migration, it was a safemoon fo…

---

## [Having problem to lock Liquidity after add it to liquidity poll](https://forum.openzeppelin.com/t/having-problem-to-lock-liquidity-after-add-it-to-liquidity-poll/10885)

<div class="topic-metadata">

**Author:** [@bitcoinjscom](https://forum.openzeppelin.com/u/bitcoinjscom)\
**Replies:** 4\
**Last updated:** [July 25, 2022, 5:07pm UTC](https://forum.openzeppelin.com/t/having-problem-to-lock-liquidity-after-add-it-to-liquidity-poll/10885 "2022-07-25T17:07:02Z")

</div>

So I added liquidity on pancakeswap pairing bnb/mytoken and now I would like to Lock it in there Its possible doing it without remove and go thru a website or inside the contract? Basically what i want to do is lock my …

---

## [Can’t remove liquidity on pancakeswap](https://forum.openzeppelin.com/t/can-t-remove-liquidity-on-pancakeswap/29791)

<div class="topic-metadata">

**Author:** [@izzyswap](https://forum.openzeppelin.com/u/izzyswap)\
**Replies:** 0\
**Last updated:** [June 20, 2022, 3:43pm UTC](https://forum.openzeppelin.com/t/can-t-remove-liquidity-on-pancakeswap/29791 "2022-06-20T15:43:35Z")

</div>

Pancakeswap remove liquidity if it stuck. This transaction would fail | Confirm not working Hi everyone, if this article says that pancakeswap gives you a “This will fail” error, I’ll tell you how to remove the stuck li…

---

## [Purpose of Uniswap/Pancake Factory and Router, and integration in OpenZeppelin](https://forum.openzeppelin.com/t/purpose-of-uniswap-pancake-factory-and-router-and-integration-in-openzeppelin/13369)

<div class="topic-metadata">

**Author:** [@Johnny\_Jon](https://forum.openzeppelin.com/u/Johnny_Jon)\
**Replies:** 7\
**Last updated:** [June 7, 2022, 4:04pm UTC](https://forum.openzeppelin.com/t/purpose-of-uniswap-pancake-factory-and-router-and-integration-in-openzeppelin/13369 "2022-06-07T16:04:10Z")

</div>

Hi there, I'm developer but new to solidity, I've done the tutorials available in the OpenZeppelin doc, absolutely awsome! I'd like to create my own token for my project and, to this end, I've reviewed some contracts of…

---

## [How to differentiate between AddLiquidity and SwapEthForExactTokens on contract function execution?](https://forum.openzeppelin.com/t/how-to-differentiate-between-addliquidity-and-swapethforexacttokens-on-contract-function-execution/27185)

<div class="topic-metadata">

**Author:** [@Harish\_Manthurthi1](https://forum.openzeppelin.com/u/Harish_Manthurthi1)\
**Replies:** 0\
**Last updated:** [April 4, 2022, 5:55am UTC](https://forum.openzeppelin.com/t/how-to-differentiate-between-addliquidity-and-swapethforexacttokens-on-contract-function-execution/27185 "2022-04-04T05:55:36Z")

</div>

We are trying to process a fee when tokens are "Sold" on PancakeSwap. For now "Sold" is when the user swaps their tokens for BNB. Initially our current logic would also charge a fee when adding to the LP. (Which is not c…

---

## [Why do we have pancakeswap interface/code inside a ERC20 smart contract](https://forum.openzeppelin.com/t/why-do-we-have-pancakeswap-interface-code-inside-a-erc20-smart-contract/27127)

<div class="topic-metadata">

**Author:** [@Boluwatife\_Adegbola](https://forum.openzeppelin.com/u/Boluwatife_Adegbola)\
**Replies:** 4\
**Last updated:** [April 2, 2022, 5:10pm UTC](https://forum.openzeppelin.com/t/why-do-we-have-pancakeswap-interface-code-inside-a-erc20-smart-contract/27127 "2022-04-02T17:10:46Z")

</div>

Without Pancakeswap code/interface, every erc20, bep20 token can still be listed(provisioning of liquidity) on pancakeswap via it website interface. My question now is; why do we have to put some pancakeswap/uniswap int…

---

## [Localhost PancakeSwap Fork - Issues With Liquidity Pool](https://forum.openzeppelin.com/t/localhost-pancakeswap-fork-issues-with-liquidity-pool/26043)

<div class="topic-metadata">

**Author:** [@noclip](https://forum.openzeppelin.com/u/noclip)\
**Replies:** 1\
**Last updated:** [March 23, 2022, 12:41pm UTC](https://forum.openzeppelin.com/t/localhost-pancakeswap-fork-issues-with-liquidity-pool/26043 "2022-03-23T12:41:55Z")

</div>

Hi, I'd like to open up with my intention that lead me to need a localhost pancakeswap: I am cloning Safemoon contract to tinker with it to learn how it works. Functions inside of 'Safemoon' require the use of a DEX lik…

---

## [Pancake Fork \<contract changes\> testnet working?](https://forum.openzeppelin.com/t/pancake-fork-contract-changes-testnet-working/11085)

<div class="topic-metadata">

**Author:** [@gambit.coin](https://forum.openzeppelin.com/u/gambit.coin)\
**Replies:** 19\
**Last updated:** [March 15, 2022, 12:02am UTC](https://forum.openzeppelin.com/t/pancake-fork-contract-changes-testnet-working/11085 "2022-03-15T00:02:25Z")

</div>

Hi guys , im forking pancake swap frontend after fork contracts and deploy on testnet. I have managed to identify contracts on contracts.ts, change addresses and change abi on each json. Whats the best method to run on…

---

## [How can I just let pancakeswap to transfer paused tokens?](https://forum.openzeppelin.com/t/how-can-i-just-let-pancakeswap-to-transfer-paused-tokens/25924)

<div class="topic-metadata">

**Author:** [@ma193313](https://forum.openzeppelin.com/u/ma193313)\
**Replies:** 2\
**Last updated:** [March 9, 2022, 6:18pm UTC](https://forum.openzeppelin.com/t/how-can-i-just-let-pancakeswap-to-transfer-paused-tokens/25924 "2022-03-09T18:18:36Z")

</div>

I want to pause transfer and transfer from and only pancakeswap can do the operation. Can anyone help?

---

## [swapExactTokensForETHSupportingFeeOnTransferTokens fails when from == uniswapPair address](https://forum.openzeppelin.com/t/swapexacttokensforethsupportingfeeontransfertokens-fails-when-from-uniswappair-address/25546)

<div class="topic-metadata">

**Author:** [@xyz](https://forum.openzeppelin.com/u/xyz)\
**Replies:** 0\
**Last updated:** [March 2, 2022, 12:28pm UTC](https://forum.openzeppelin.com/t/swapexacttokensforethsupportingfeeontransfertokens-fails-when-from-uniswappair-address/25546 "2022-03-02T12:28:00Z")

</div>

I want to apply a fee of the 10% every time my token is transferred (except the case the from is the owner). When i use PancakeSwap I'm able to create a pool, however, when I try to swap the token from the just created …

---

## [I can't remove the liquidity of pancakeswap](https://forum.openzeppelin.com/t/i-cant-remove-the-liquidity-of-pancakeswap/24660)

<div class="topic-metadata">

**Author:** [@Susan\_Lopez](https://forum.openzeppelin.com/u/Susan_Lopez)\
**Replies:** 1\
**Last updated:** [February 19, 2022, 12:01am UTC](https://forum.openzeppelin.com/t/i-cant-remove-the-liquidity-of-pancakeswap/24660 "2022-02-19T00:01:02Z")

</div>

Hello, as in the topic I can't remove the liquidity of pancakeswap ;/ my contract address 0xe7a3fcc8577cc9a57787590f740b795694441ffd someone will help?

---

## [How to set the inital token price on DEX before anyone else?](https://forum.openzeppelin.com/t/how-to-set-the-inital-token-price-on-dex-before-anyone-else/24866)

<div class="topic-metadata">

**Author:** [@kamaraj6990](https://forum.openzeppelin.com/u/kamaraj6990)\
**Replies:** 0\
**Last updated:** [February 17, 2022, 6:52pm UTC](https://forum.openzeppelin.com/t/how-to-set-the-inital-token-price-on-dex-before-anyone-else/24866 "2022-02-17T18:52:22Z")

</div>

Assume I have a launched BEP20 token with Supply 1000. I use 100 tokens for airdrop and promotion. I have distributed these 100 tokens to 100 people (1 per person). I had a plan to use 500 tokens for liquidity pool and…

---

## [Forking masterchef and syrup, i need help with stake pools](https://forum.openzeppelin.com/t/forking-masterchef-and-syrup-i-need-help-with-stake-pools/24644)

<div class="topic-metadata">

**Author:** [@Jodlerx0](https://forum.openzeppelin.com/u/Jodlerx0)\
**Replies:** 0\
**Last updated:** [February 14, 2022, 10:48am UTC](https://forum.openzeppelin.com/t/forking-masterchef-and-syrup-i-need-help-with-stake-pools/24644 "2022-02-14T10:48:40Z")

</div>

Hi Guys, I forked pancakeswap, Dex is 100% working and Farms working well too, but I'm getting some issues with the Stake Pool (syrup pool) when i do stake I receive the same amount of tokens regardless of the amount of …

---

## [Estoy creando un clon de pancakeswap pero tengo un error al remover la liquidez](https://forum.openzeppelin.com/t/estoy-creando-un-clon-de-pancakeswap-pero-tengo-un-error-al-remover-la-liquidez/24234)

<div class="topic-metadata">

**Author:** [@KingLB44](https://forum.openzeppelin.com/u/KingLB44)\
**Replies:** 4\
**Last updated:** [February 8, 2022, 1:17pm UTC](https://forum.openzeppelin.com/t/estoy-creando-un-clon-de-pancakeswap-pero-tengo-un-error-al-remover-la-liquidez/24234 "2022-02-08T13:17:35Z")

</div>

:1234: Code to reproduce :laptop: Environment Estoy aprendiendo sobre desarrollo blockchain y eh decidido practicar la creacion de un swap clonando pancakeswap eh configurado bien los tokens de Factory, Router y el t…

---

## [Forking masterchef and syrup bar](https://forum.openzeppelin.com/t/forking-masterchef-and-syrup-bar/23885)

<div class="topic-metadata">

**Author:** [@Jodlerx0](https://forum.openzeppelin.com/u/Jodlerx0)\
**Replies:** 0\
**Last updated:** [February 2, 2022, 11:39am UTC](https://forum.openzeppelin.com/t/forking-masterchef-and-syrup-bar/23885 "2022-02-02T11:39:35Z")

</div>

Hi Guys, I'm doing a fork of pancakeswap, I Forked factory, Router, Masterchef, and Syrup Bar, (i didn't deployed a new cake token because our token is already launched) Dex is 100% working but we are getting some iss…

---

## [I getting some issues to do harvest \[Pancake fork\]\[HELP\]\[FARMS\]](https://forum.openzeppelin.com/t/i-getting-some-issues-to-do-harvest-pancake-fork-help-farms/23655)

<div class="topic-metadata">

**Author:** [@Jodlerx0](https://forum.openzeppelin.com/u/Jodlerx0)\
**Replies:** 1\
**Last updated:** [January 30, 2022, 10:56pm UTC](https://forum.openzeppelin.com/t/i-getting-some-issues-to-do-harvest-pancake-fork-help-farms/23655 "2022-01-30T22:56:14Z")

</div>

Hi Guys, i got almost ready my pancake fork, Dex is 100% working but with the farms I'm having some trouble to do harvest, the transaction fail.. can anyone help with this? I got some questions.. I transferred the syr…

---

## [Swap for tokens with Bot Protection Enabled (BpEnabled)](https://forum.openzeppelin.com/t/swap-for-tokens-with-bot-protection-enabled-bpenabled/22247)

<div class="topic-metadata">

**Author:** [@blockchainexplorer](https://forum.openzeppelin.com/u/blockchainexplorer)\
**Replies:** 2\
**Last updated:** [January 9, 2022, 4:08am UTC](https://forum.openzeppelin.com/t/swap-for-tokens-with-bot-protection-enabled-bpenabled/22247 "2022-01-09T04:08:45Z")

</div>

!!Apology in advance for such verbosity!! Background I came across this BEP20 token (0xcc7a91413769891de2e9ebbfc96d2eb1874b5760) which had sufficient Liquidity added at TGE but bot protection was enabled. The rules we…

---

## [Why i cant sell all the tokens in 1 transaction](https://forum.openzeppelin.com/t/why-i-cant-sell-all-the-tokens-in-1-transaction/22165)

<div class="topic-metadata">

**Author:** [@Meem\_Mateen](https://forum.openzeppelin.com/u/Meem_Mateen)\
**Replies:** 3\
**Last updated:** [January 5, 2022, 7:12am UTC](https://forum.openzeppelin.com/t/why-i-cant-sell-all-the-tokens-in-1-transaction/22165 "2022-01-05T07:12:18Z")

</div>

Hello, I have added 1000 tokens with 1 bnb liquidity in pancakeswap pool, and i have 1000 tokens in another wallet, now i am trying to sell my 1000 tokens in 1 transaction but it shows price impact too high and i cant sw…

---

## [Transfer Ownership - MasterChef i want to transfer my token ownership back to my wallet](https://forum.openzeppelin.com/t/transfer-ownership-masterchef-i-want-to-transfer-my-token-ownership-back-to-my-wallet/21881)

<div class="topic-metadata">

**Author:** [@Mohsin\_Laeeque](https://forum.openzeppelin.com/u/Mohsin_Laeeque)\
**Replies:** 1\
**Last updated:** [December 30, 2021, 8:12am UTC](https://forum.openzeppelin.com/t/transfer-ownership-masterchef-i-want-to-transfer-my-token-ownership-back-to-my-wallet/21881 "2021-12-30T08:12:43Z")

</div>

I forked pancakeswap and for masterChef i transferred the token ownership to masterChef contract so that contract can mint the tokens as a owner , which is working fine i am looking to transfer the onwership of my token…

---

## [liquidity and issues swap token to bnb](https://forum.openzeppelin.com/t/liquidity-and-issues-swap-token-to-bnb/20560)

<div class="topic-metadata">

**Author:** [@msimo](https://forum.openzeppelin.com/u/msimo)\
**Replies:** 4\
**Last updated:** [December 9, 2021, 8:24am UTC](https://forum.openzeppelin.com/t/liquidity-and-issues-swap-token-to-bnb/20560 "2021-12-09T08:24:50Z")

</div>

Hello world, Hope you are well! I am doing some tests with a clone of the earlybird contract, but i got stuck when swapping from bnb to ebird4 and from ebird4 to bnb. after the deploy I add a liquity of 1bnb and then I …

---

## [How can I change the amountof liquidity i added on pancake](https://forum.openzeppelin.com/t/how-can-i-change-the-amountof-liquidity-i-added-on-pancake/19904)

<div class="topic-metadata">

**Author:** [@orbion](https://forum.openzeppelin.com/u/orbion)\
**Replies:** 0\
**Last updated:** [November 28, 2021, 11:20pm UTC](https://forum.openzeppelin.com/t/how-can-i-change-the-amountof-liquidity-i-added-on-pancake/19904 "2021-11-28T23:20:50Z")

</div>

Hi all. I created my token and added on pancakeswap and locked it for 1 month (to check how it was working ) on dxsale. Instead of adding 400 billion, i added 400 million coins. Can anybody please help me out to solve th…

[Next page](https://forum.openzeppelin.com/tag/pancake/69.md?match_all_tags=true&page=1&tags%5B%5D=pancake)
