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.