TL;DRย
Another food-themed DeFi protocol? You know it. PancakeSwap is a BNB Chain-based DEX launched by anonymous devs with a penchant for breakfast foods and rabbits.
It looks a bit like Ethereumโs SushiSwap (community governance, the ability to farm liquidity provider tokens), but also incorporates many other features that let you earn rewards.
Introduction
The food-based farming craze has captivated participants in the crypto space for months. In the latest wave of DeFi protocols, weโve seen numerous platforms emerge that allow users to stake their funds in return for the protocolโs tokens.
The bulk of this activity has been concentrated on the Ethereum blockchain. As one of the earliest blockchains supporting smart contracts, it has a sprawling community of users, developers, and tools for building powerful decentralized applications.
In this article, weโll take a look at PancakeSwap โ a decentralized exchange built on BNB Chain.
What Is PancakeSwap?
PancakeSwap is a decentralized exchange for swapping BEP-20 tokens.
The PancakeSwap exchange UI.
Familiar with Uniswap or SushiSwap? Then youโll have no issue grasping PancakeSwap โ they are quite similar in their core design.
The PancakeSwap Exchange
PancakeSwap uses an automated market maker (AMM) model. That means that while you can trade digital assets on the platform, there isnโt an order book where youโre matched with someone else. Instead, you trade against a liquidity pool.
Those pools are filled with other usersโ funds. They deposit them into the pool, receiving liquidity provider (or LP) tokens in return. They can use those tokens to reclaim their share, plus a portion of the trading fees.ย
So, in short, you can trade BEP-20 tokens, or add liquidity and earn rewards. There are also other features weโll cover later.
Youโll find these LP tokens in several flavors โ if you added, say, BUSD and BNB to the pool, youโll receive BUSD-BNB LP tokens in return. BETH and ETH? Youโll get BETH-ETH LP tokens.
Farming and Staking on PancakeSwap
But wait, thereโs more! PancakeSwap also allows you to farm its governance token โ CAKE.
Yum.
On the farm, you can deposit your LP tokens, locking them up in a process that rewards you with CAKE. Which LP tokens can you deposit? Well, the list is quite long, but hereโs a taster of some of the most popular ones:
CAKE โ BNB LP
BUSD โ BNB LP
BETH โ ETH LP
USDT โ BUSD LP
USDC โ BUSD LP
DAI โ BUSD LP
LINK โ BUSD LP
TWT โ BNB LP
The rewards donโt end here, however! You can earn even more by staking your CAKE in SYRUP pools.
So youโve deposited some funds to receive LP tokens, and youโve used them to farm CAKE. From there, you can stake your CAKE and earn other tokens through special staking pools.
The biggest SYRUP pool is simply for CAKE, where you can stake your CAKE to earn even more CAKE! But there are many more tokens you can earn by staking CAKE, so be sure to keep an eye on the SYRUP pool page.
Using PancakeSwap
Youโll notice if you visit https://pancakeswap.finance that many features are inaccessible until you click on Unlock Wallet. Click on it, and youโll be met with a few options: MetaMask, Trust Wallet, WalletConnect, Binance Chain Wallet, and other options.ย
But wait, we hear you say, isnโt MetaMask an Ethereum wallet?
Yes, it is, but the architecture of BNB Chain is such that you can use MetaMask to interact with BNB-based DApps. If you choose to use MetaMask, we suggest you check out our Connecting MetaMask with BNB Chain guide.
You can also connect your Trust Wallet to PancakeSwap through the Trust Wallet mobile browser or on a desktop. If you are connecting with the Trust Wallet browser, you can follow these steps:
1. If youโre using the Trust Wallet DApp browser, head to the PancakeSwap website and tap the [Connect] button in the top right corner.
2. Select [Trust Wallet] to connect your wallet to PancakeSwap.
3. If you have connected successfully, you should see your wallet ID in the top right corner.
Once youโve got that set up, you can unlock your wallet to reveal additional information. Youโll see that different LP tokens promise different returns. So how can you add liquidity?
If you are connecting with a desktop browser, you can follow these steps:
1. Head to the PancakeSwap desktop website and click [Connect] in the top right corner.
2. Click [WalletConnect] to start the connection process. Currently, the [Trust Wallet] button only works when using the Trust Wallet browser.
3. A QR code will appear, which is scannable with the Trust Wallet app. Head to the [Settings] of the app tab and click [WalletConnect]. Scan the QR code displayed on PancakeSwap and click [Connect] in Trust Wallet.
4. If you have successfully connected, PancakeSwap should show you the beginning of your wallet ID in the top right corner.
Adding Liquidity
Again, if youโve used any AMM previously, then you know the drill. To farm CAKE, you need to first add liquidity to the exchange.
Navigate to Trade on the sidebar on the left, then click on Liquidity, hit Add Liquidity, and select the token pair that you want to deposit. Also, make sure you know about impermanent loss before adding liquidity to a pool.
Adding liquidity to PancakeSwap.
Farming
Okay, so youโve got your LP tokens, now itโs time to stake them to earn CAKE. Navigate to the Farms tab, and select the option that matches your LP tokens.
As with ERC-20 tokens, youโll need to approve the movement of BEP-20 tokens โ this is what allows the contract to withdraw them on your behalf. When you click Approve Contract, a popup will ask you to confirm the transaction and display a fee.
Once that transaction confirms, simply select the amount you want to stake and confirm it. You can navigate away from the page and come back at any time to check how much CAKE youโve earned โ if you want to harvest your rewards at any point, click on Harvest and confirm the transaction.
Staking
Once youโve got CAKE, you can stake it in SYRUP pools. Go to the Pools tab, and youโll be presented with the pools where you can stake your CAKE.
SYRUP pools โ stake CAKE, earn new tokens.
Once again, you need to approve the withdrawal of your tokens. Hit Approve CAKE to do so. When that has been approved, youโll need to select the amount of CAKE you want to stake.
Now that the CAKE has been staked, youโll be earning the reward token of the pool passively. If youโd like to cash out your rewards, click on Harvest.
Lottery
Thatโs great, but what else can you do with your CAKE? Well, you can enter a lottery on PancakeSwap.
Try your luck in the PancakeSwap lottery.
Each lottery session takes 6 hours. One ticket costs 10 CAKE, which will give you a random four-digit combination of numbers between 1 and 14, for example, 12-8-4-3. To win the jackpot (50% of the entire lottery pool), the numbers in your ticket need to match all four numbers in the same position as the winning ticket.
What if you donโt match all four? No worries. You also win rewards if two or more of your numbers are in the same position as the numbers in the winning ticket.
NFTs
Wait, so you can do even more with PancakeSwap? Yes, you can win special NFTs.
Win some of the cutest NFTs on BNB.
If youโre chosen as a winner of an NFT, you can trade it for the CAKE value it represents or keep the cutie in your wallet as a collectorโs item.
How can you get involved? You need to register for a chance to win, and the winners get chosen at random. Make sure to keep an eye on the NFT page for upcoming opportunities.
Teams & profiles
Looking for more gamification? Teams and profiles are your chance. You can show off your stats by creating a public profile, and join one of the teams to compete for team achievements!
IFOs
Initial Farm Offerings (IFO) are a way to get a newly launched token in the hands of users using the power of yield farming. On PancakeSwap, you can do that by committing LP tokens from a supported pool to get access to the sale of a newly launched token.
You can check the currently active IFOs on PancakeSwap on the IFO page.
Is PancakeSwap safe?
PancakeSwap has been audited by CertiK. Does that mean itโs completely safe to use? No. Depositing funds into a smart contract always carries the risk of bugs, even for audited and highly reputable projects. Never deposit more than you can afford to lose.
Closing Thoughts
PancakeSwap is the biggest AMM project on BNB Chain with some innovative features. You can also track a lot of its metrics on https://pancakeswap.info/.
Ethereum may have kickstarted the DeFi trend, but initiatives like PancakeSwap suggest that the wave of innovation is destined to spread to other chains.
Disclaimer and Risk Warning: This content is presented to you on an โas isโ basis for general information and educational purposes only, without representation or warranty of any kind. It should not be construed as financial, legal or other professional advice, nor is it intended to recommend the purchase of any specific product or service. You should seek your own advice from appropriate professional advisors. Where the article is contributed by a third party contributor, please note that those views expressed belong to the third party contributor, and do not necessarily reflect those of Binance Academy. Please read our full disclaimer here for further details. Digital asset prices can be volatile. The value of your investment may go down or up and you may not get back the amount invested. You are solely responsible for your investment decisions and Binance Academy is not liable for any losses you may incur. This material should not be construed as financial, legal or other professional advice. For more information, see our Terms of Use and Risk Warning.