Skip to content
The Chat Archive
gemini-2.5-flash-preview-04-17· Google LMArena Human Preference 140K

how to use pancakeswap v2?

  1. User

    how to use pancakeswap v2?

  2. Assistant

    Okay, let's break down how to use PancakeSwap V2.

    Important Note: PancakeSwap V3 is now the primary version, offering capital efficiency improvements. However, many pools and farms still exist and operate on V2. You'll often see both options ("V2" and "V3") when interacting with liquidity or farms. This guide focuses on the V2 aspects, but be aware you might need to choose based on the specific pair/farm you're interested in.

    PancakeSwap is a Decentralized Exchange (DEX) and a suite of DeFi tools built on the BNB Smart Chain (BSC). Using it primarily involves swapping tokens, providing liquidity, and staking to earn rewards.

    Here's a step-by-step guide covering the main functionalities:

    Prerequisites:

    1. A Compatible Crypto Wallet: You need a non-custodial wallet that supports the BNB Smart Chain. Popular options include:
      • MetaMask (desktop browser extension and mobile app)
      • Trust Wallet (mobile app)
      • Coinbase Wallet (mobile app)
      • WalletConnect compatible wallets
    2. Wallet Connected to BNB Smart Chain: Ensure your wallet is set up and connected to the BNB Smart Chain network. MetaMask requires adding the network details manually or via sites like Chainlist. Trust Wallet and others often have it built-in.
    3. BNB in Your Wallet: You need a small amount of BNB to pay for transaction fees (gas fees) on the BSC network.

    Step 1: Go to the Official PancakeSwap Website

    • Open your web browser or your wallet's dApp browser.
    • Go to the official PancakeSwap website: pancakeswap.finance
    • Double-check the URL to avoid phishing sites!

    Step 2: Connect Your Wallet

    • Look for a button, usually in the top right corner, that says "Connect Wallet".
    • Click it and choose your wallet from the list (MetaMask, Trust Wallet, WalletConnect, etc.).
    • Your wallet will prompt you to confirm the connection request. Approve it.
    • Once connected, you should see a portion of your wallet address where the "Connect Wallet" button was.

    Step 3: Swapping Tokens (Trading)

    This is the most common function.

    1. Go to the "Trade" menu and select "Swap".
    2. You'll see a swap interface.
    3. Select the "From" Token: This is the token you want to sell or swap from. Click the token symbol (usually CAKE initially) and search for the token you have in your wallet or paste its contract address.
    4. Select the "To" Token: This is the token you want to buy or swap to. Click the token symbol and search or paste the contract address.
    5. Enter Amount: Enter the amount of the "From" token you want to swap. PancakeSwap will automatically calculate the equivalent amount of the "To" token based on the current market price. You can also click the balance of your "From" token (e.g., "Max" or a specific amount) or enter the desired amount of the "To" token.
    6. Review Details: Look at the "Minimum received" (due to potential price changes during the transaction) and the "Price Impact" (how much your trade affects the price, especially for large trades or low liquidity pairs).
    7. Adjust Slippage (Optional but Important): Click the gear icon (⚙️) in the top right of the swap box. Slippage Tolerance is the maximum percentage difference you're willing to accept between the quoted price and the executed price. Default is usually 0.5% or 1%. If your transaction fails repeatedly due to "transaction too old" or "Pancake: K", you might need to increase slippage slightly (e.g., 1% or 2%), but higher slippage exposes you to worse prices. Be cautious with very high slippage settings.
    8. Approve Token (First Time Only for Each Token): If this is the first time you are swapping a specific "From" token on PancakeSwap, you need to "Approve" the PancakeSwap contract to spend that token from your wallet. Click the "Approve [Token Symbol]" button. Your wallet will pop up asking you to confirm this approval transaction (requires a small BNB gas fee).
    9. Confirm Swap: Once approved (or if you've approved before), the button will change to "Swap" or "Confirm Swap". Click it.
    10. Confirm in Wallet: Your wallet will pop up one more time, showing the details of the actual swap transaction and the BNB gas fee. Review it and Confirm the transaction in your wallet.
    11. Transaction Confirmed: Wait a few seconds for the transaction to be processed on the BSC network. You'll usually see a notification on PancakeSwap and in your wallet when it's successful. Your token balances will update.

    Step 4: Providing Liquidity (Becoming an LP)

    Providing liquidity allows you to earn a share of the trading fees generated by swaps in that pair. You receive LP tokens representing your share.

    1. Go to the "Trade" menu and select "Liquidity".
    2. Click the "Add Liquidity" button.
    3. Select the Token Pair: Choose the two tokens you want to provide liquidity for (e.g., BNB and CAKE). Remember that providing liquidity exposes you to Impermanent Loss.
    4. Enter Amounts: Enter the amount of one token you want to deposit. PancakeSwap will automatically calculate the required amount of the other token based on the current pool ratio. You must deposit both tokens in the correct proportion.
    5. Review Details: Look at your "Share of Pool" – this is the percentage of the total liquidity you are providing.
    6. Approve Tokens (First Time Only): You need to "Approve" both tokens individually for PancakeSwap to interact with them. Click the "Approve [Token Symbol]" buttons for each token and confirm the approval transactions in your wallet (requires BNB gas fees).
    7. Supply Liquidity: Once both tokens are approved, the button will change to "Supply" or "Confirm Supplying". Click it.
    8. Confirm in Wallet: Review the transaction details and BNB gas fee in your wallet popup. Confirm the transaction.
    9. Receive LP Tokens: After the transaction is confirmed, you will receive LP tokens (e.g., CAKE-BNB LP tokens) in your wallet. These tokens represent your position in the liquidity pool. You can see your current LP positions on the "Liquidity" page.

    Step 5: Farming (Staking LP Tokens)

    Farms allow you to stake the LP tokens you received in Step 4 to earn CAKE rewards (and sometimes other tokens) on top of the trading fees you earn from providing liquidity.

    1. Go to the "Earn" menu and select "Farms".
    2. Find Your Farm: Browse or search for the farm that matches the specific LP token you hold (e.g., the CAKE-BNB LP farm if you provided CAKE-BNB liquidity).
    3. Enable Farm (First Time): If it's your first time using this specific farm, you'll need to "Enable" or "Approve Contract" for the farm. Click the button and confirm the approval transaction in your wallet (requires a small BNB gas fee).
    4. Stake LP Tokens: Once enabled, click the "Stake" button (often represented by a + symbol within the farm details).
    5. Enter the amount of LP tokens you want to stake (you can click "Max").
    6. Confirm Stake: Click "Confirm" and then confirm the transaction in your wallet (requires a BNB gas fee).
    7. Earn Rewards: Your LP tokens are now staked. You will start accumulating CAKE rewards, which you can see growing in the "Earned" column for that farm.
    8. Harvest Rewards: To claim your earned CAKE, click the "Harvest" button for that farm. Confirm the transaction in your wallet (requires a BNB gas fee). Your CAKE rewards will be sent to your wallet.
    9. Unstake LP Tokens: When you want to withdraw your LP tokens from the farm, click the "Unstake" button (often represented by a - symbol). Enter the amount you want to unstake, click "Confirm", and confirm the transaction in your wallet. Your LP tokens will return to your wallet. (To get your underlying tokens back, you then need to go back to the "Liquidity" section and "Remove" liquidity using your LP tokens).

    Step 6: Staking CAKE / Other Tokens (Syrup Pools)

    Syrup Pools allow you to stake a single token (usually CAKE, but sometimes others) to earn CAKE or other tokens as rewards.

    1. Go to the "Earn" menu and select "Pools" (sometimes called Syrup Pools).
    2. Find Your Pool: Browse or search for the pool you want to join. The most popular are often the CAKE pools (Auto CAKE for auto-compounding, Manual CAKE for manual harvesting).
    3. Enable Pool (First Time): Similar to farms, you might need to "Enable" or "Approve Contract" for the pool if it's your first time. Click the button and confirm in your wallet (small BNB gas fee).
    4. Stake Tokens: Once enabled, click the "Stake" button (often a + symbol).
    5. Enter the amount of tokens (e.g., CAKE) you want to stake (you can click "Max").
    6. Confirm Stake: Click "Confirm" and confirm the transaction in your wallet (requires a BNB gas fee).
    7. Earn Rewards: Your tokens are now staked. You'll see your staked balance and earned rewards.
      • Auto CAKE Pool: Rewards are automatically harvested and restaked for you periodically (auto-compounding).
      • Manual CAKE Pool / Other Pools: You need to click "Harvest" manually to claim your earned tokens to your wallet (requires a BNB gas fee).
    8. Unstake Tokens: When you want to withdraw your staked tokens, click the "Unstake" button (often a - symbol). Enter the amount you want to withdraw, click "Confirm", and confirm the transaction in your wallet.

    Other PancakeSwap Features (Briefly):

    • IFO (Initial Farm Offering): Participate in token launches (less common on V2, more on V3).
    • Lottery: Buy tickets to win a large CAKE prize.
    • Prediction: Predict BNB or CAKE price movements to win rewards.
    • NFTs: Browse the PancakeSwap NFT market.

    Important Considerations & Risks:

    • Gas Fees (BNB): Every action (swapping, approving, adding/removing liquidity, staking/unstaking, harvesting) requires a small amount of BNB for the network fee.
    • Slippage: Understand and manage slippage during swaps, especially for volatile or illiquid assets.
    • Impermanent Loss: This is a risk when providing liquidity. If the price ratio of the tokens in your LP changes significantly from when you deposited them, you could end up with a lower dollar value than if you had just held the tokens separately.
    • Smart Contract Risk: While audited, DeFi protocols can have bugs or vulnerabilities.
    • Rug Pulls: Be extremely cautious swapping or providing liquidity for unknown or unaudited tokens. Project teams could potentially drain liquidity pools (though this is less of a risk for major, established pairs).
    • Connecting to the RIGHT Site: Always double-check that you are on pancakeswap.finance. Phishing sites are a major risk.

    This covers the primary ways to interact with PancakeSwap V2. Always start with small amounts if you're new and make sure you understand the risks involved in each action. Good luck!

  3. User

    official Pancake swap url?

  4. Assistant

    The official website URL for PancakeSwap is:

    pancakeswap.finance

    Always double-check this URL every time you visit the site to avoid phishing scams! Phishing sites often use similar-looking domain names.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.