Skip to content

Commit

Permalink
docs: Add PancakeSwap user guide (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
chefjackson authored Jun 26, 2023
1 parent 63df4fc commit 90c9468
Show file tree
Hide file tree
Showing 9 changed files with 58 additions and 0 deletions.
Binary file added docs/assets/pancakeswap/add_liquidity.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/pancakeswap/add_liquidity_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/pancakeswap/connect_wallet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/pancakeswap/go_to_swap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/pancakeswap/remove_liquidity.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/pancakeswap/select_network.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/pancakeswap/swap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/pancakeswap/visit_liquidity.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 58 additions & 0 deletions docs/use-linea/explore/use-pancakeswap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
title: Use Pancakeswap
sidebar_position: 1
---

Task 1:

- Add ETH-USDC liquidity to PancakeSwap’s v3 liquidity pool on the 0.25% fee tier

Task 2:

- Use the Swap feature to trade ETH to USDC (or vice versa) on PancakeSwap’s liquidity pool

Task 3:

- Remove ETH-USDC liquidity from PancakeSwap’s v3 liquidity pool

# PancakeSwap

[PancakeSwap](https://pancakeswap.finance/) is a leading all-in-one DeFi platform on BNB Chain, Ethereum, Aptos and now, Linea Testnet. To learn more about the various products we have, please visit [here](https://pancakeswap.finance/).

In this guide, we’ll walk you through how to perform the basic functions of providing liquidity on PancakeSwap and how to trade tokens on PancakeSwap. In the future, we may add more functions than what is in the current phase of testnet. Please keep your eyes peeled for more!

## Add liquidity

1. Open a new tab and type in [pancakeswap.finance](https://pancakeswap.finance/) (or click this link), and select the Linea network in your MetaMask wallet.

![](../../assets/pancakeswap/select_network.png)

2. Connect your wallet to PancakeSwap, by clicking Connect wallet and selecting MetaMask. Your wallet address will appear in the top-right corner.

![](../../assets/pancakeswap/connect_wallet.png)

3. Hover over "Trade" and select "Liquidity"

![](../../assets/pancakeswap/visit_liquidity.png)

4. For the first task, you need to add ETH-USDC liquidity into PancakeSwap v3. As a liquidity provider, you will be able to earn trading fees anytime a trade involving ETH-USDC occurs on PancakeSwap. Click ""Add liquidity"

![](../../assets/pancakeswap/add_liquidity.png)

5. Enter the amount of USDC and ETH you want to use for each token. For the testnet quest, please add the liquidity you provide on v3’s 0.25% fee tier. Once you are happy with your settings, click "Add" to provide the liquidity. You will need to confirm your transaction on Metamask.

![](../../assets/pancakeswap/add_liquidity_2.png)

6. Let’s move on to Task 2. For Task 2, you need to perform a swap to swap from USDC to ETH, or from ETH to USDC.

7. First, hover over “Trade” again and click "Swap"

![](../../assets/pancakeswap/go_to_swap.png)

8. Next, make a swap from ETH to USDC, or USDC to ETH. Type in the amount of tokens you want to swap, and hit "Swap". You will need to confirm your transaction on Metamask.

![](../../assets/pancakeswap/swap.png)

9. You’ve completed the second task! On to the last one. To remove your liquidity, head back to the "Liquidity" section in step 3. Select your v3 LP position and remove it.

![](../../assets/pancakeswap/remove_liquidity.png)

1 comment on commit 90c9468

@vercel
Copy link

@vercel vercel bot commented on 90c9468 Jun 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.