Use Pancakeswap
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 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.
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​
- Open a new tab and type in pancakeswap.finance (or click this link), and select the Linea network in your MetaMask wallet.
- Connect your wallet to PancakeSwap, by clicking Connect wallet and selecting MetaMask. Your wallet address will appear in the top-right corner.
- Hover over "Trade" and select "Liquidity"
- 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"
- 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.
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.
First, hover over “Trade” again and click "Swap"
- 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.
- 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.