generated from Consensys/doctools.template-site
-
Notifications
You must be signed in to change notification settings - Fork 425
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Add PancakeSwap user guide (#186)
- Loading branch information
1 parent
63df4fc
commit 90c9468
Showing
9 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
90c9468
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
doc-zk-evm – ./
doc-zk-evm-git-main-infura-web.vercel.app
doc-zk-evm-infura-web.vercel.app
docs.linea.build
docs.zkevm.consensys.net