Skip to content

Commit

Permalink
docs(use-izumi) add use iziswap tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
LpcAries committed Jun 16, 2023
1 parent 41a264a commit 828a429
Show file tree
Hide file tree
Showing 17 changed files with 88 additions and 0 deletions.
Binary file added docs/assets/izumi/1.jpg
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/izumi/10.jpg
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/izumi/11.jpg
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/izumi/12.jpg
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/izumi/13.jpg
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/izumi/14.jpg
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/izumi/15.jpg
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/izumi/16.jpg
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/izumi/2.jpg
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/izumi/3.jpg
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/izumi/4.jpg
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/izumi/5.jpg
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/izumi/6.jpg
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/izumi/7.jpg
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/izumi/8.jpg
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/izumi/9.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
88 changes: 88 additions & 0 deletions docs/use-linea/explore/use-izumi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
---
title: Use the iZiSwap
sidebar_position: 1
---

# iZiSwap Linea Testnet tutorial

## Prepare your wallet on Linea Goerli test network

Click “show/hide test networks“ on Metamasks, choose Linea Goerli test network.

![img1](../../assets/izumi/1.jpg)

The Linea faucet link is below:

[https://www.infura.io/faucet/linea](https://www.infura.io/faucet/linea)

## Swap

Go to the [iZiSwap on Linea](https://linea.izumi.finance/home) and click the "Connect Wallet" button to link your Metamask wallet.

![img2](../../assets/izumi/2.jpg)

Select tokens to swap. Here we input 0.1 ETH to swap iZi tokens.

![img3](../../assets/izumi/3.jpg)

Wait for a bit. If the transaction is successful, a message will appear in the bottom right corner of the page.

![img4](../../assets/izumi/4.jpg)

## Limit Order

Click “Limit Order” on the right of “Swap” tab and select the token you'd like to trade.

![img5](../../assets/izumi/5.jpg)

Place a limit order to exchange 0.05 ETH for iZi and set the desired price.Select the “Fee Tiers” and click “ADD” and confirm the transaction on MetaMask.

(NO EXECUTED REQUIRED)

![img6](../../assets/izumi/6.jpg)

You can learn more details in “My Orders”.

![img7](../../assets/izumi/7.jpg)

When your order is partially or fully completed, you can collect rewards on "My Order" page by clicking "Claim".

If you want to cancel an order, you could click “Cancel” and you need to confirm on MetaMask.

![img8](../../assets/izumi/8.jpg)

## Add Liquidity

Select "Liquidity" => "Add Liquidity".

![img9](../../assets/izumi/9.jpg)

Click “Custom”.

![img10](../../assets/izumi/10.jpg)

Select a pair you want to create a pool with, here we take ETH and iZi as an example. Furthermore, choose the swap fee rate that you are willing to charge.

![img11](../../assets/izumi/11.jpg)

Input the sum you want to provide and set the price range. Here, we input 0.05 ETH as an example. Additionally, approve your tokens if it's the first time providing liquidity for you.

![img12](../../assets/izumi/12.jpg)

Click the “Create” button and confirm the transaction on Metamask.

![img13](../../assets/izumi/13.jpg)

after a moment, you will be able to see a pop-up window "add liquidity successfully".

![img14](../../assets/izumi/14.jpg)

Go back to the liquidity page to validate the provided position with the specific range, fee rate, TVL information, and NFT id.

![img15](../../assets/izumi/15.jpg)

Click “Collect” to claim swap fee,and click “Add” to add more liquidity to the existed position. Be informed, that you can not change the fee rate or price range of the existed position and require to create a new pool, for that matter.

Click “Remove” and confirm the transaction on Metamask.

![img16](../../assets/izumi/16.jpg)

0 comments on commit 828a429

Please sign in to comment.