> For the complete documentation index, see [llms.txt](https://docs.jediswap.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.jediswap.xyz/withdraw-lp-from-jediswap-v1.md).

# Withdraw LP from Jediswap V1

Follow these step-by-step process to withdraw your liquidity from Jediswap V1.

{% stepper %}
{% step %}

### Get all Jediswap v1 LP tokens

* Open [https://starkscan.co](https://starkscan.co/)&#x20;
* Search your wallet address in the search bar&#x20;
* Go to Portfolio&#x20;
* Look for Tokens with symbol "JEDI-P"
* Click on Token contract address for each individual LP token

<figure><img src="https://3647710270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTtqAy9sEg9xS0BQqt6LI%2Fuploads%2Fm2G7IUDravizqBIA6W3A%2F1.jpg?alt=media&amp;token=2715b50a-4268-4574-8236-7372ced4138e" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Get your LP balance

* Go to the LP token page on Starkscan as described above
* Go to Read/Write contract
* Click on function "balanceOf(account)"
* Input your wallet address and click query
* Copy the value of the balance on a note, it will be used in step 4 and 5

<figure><img src="https://3647710270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTtqAy9sEg9xS0BQqt6LI%2Fuploads%2FBH3OP4qbpGHZ1rC4LfPC%2F2.jpg?alt=media&amp;token=af05e38c-44bb-4e68-8925-c9b5585674e0" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Get address for token0 and token1

* Scroll down on the same page as above and click on function "token0()"
* Click query and copy the address on a note, it will be used to call withdraw function at end&#x20;
* Similarly scroll down again and click on function "token1()"
* Click query and copy the address on a note, it will be used to call withdraw function at end

<figure><img src="https://3647710270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTtqAy9sEg9xS0BQqt6LI%2Fuploads%2FCbRAy2rJLNwZb1r2qQQv%2F3.jpg?alt=media&amp;token=58976133-8780-493b-8b82-98276dc474f9" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Give "Jediswap Router contract" approval to spend your Jedi-P LP token

* Go to "Write" from top left options on the same Jedi-P LP contract
* Connect your Starknet wallet
* Click on "increaseAllowance" function&#x20;
* In the "spender" field, paste "0x041fd22b238fa21cfcf5dd45a8548974d8263b3a531a60388411c5e230f97023"
* In the "added\_value" field, paste the LP balance value you copied from step 2
* Click "write" and confirm tx on your Starknet wallet

<figure><img src="https://3647710270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTtqAy9sEg9xS0BQqt6LI%2Fuploads%2F4GWfNrKGJu4TLoiSA33g%2Fimage.png?alt=media&amp;token=d0be2213-b4e5-4a38-bda7-398cc682b1f6" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3647710270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTtqAy9sEg9xS0BQqt6LI%2Fuploads%2FyEmQghZWj7hTBD1V2WzS%2F5.jpg?alt=media&amp;token=a5d0bc05-845c-450b-aae0-12435d213d0a" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Remove your liquidity

* Go to "Write Contract" on [Jediswap Router Contract](https://starkscan.co/contract/0x041fd22b238fa21cfcf5dd45a8548974d8263b3a531a60388411c5e230f97023#read-write-contract-sub-write)
* Connect your Starknet wallet
* Click on "remove\_liquidity" function
* Input these values in the fields
  * tokenA = token0 value you received from step 3
  * tokenB = token1 value you received from step 3
  * liquidity = LP balance value from step 2
  * amountAMin = 0
  * amountBMin = 0
  * to = \[your wallet address in which you want your funds]
  * deadline = 10000000000
* Click write and confirm the tx on your wallet

<figure><img src="https://3647710270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTtqAy9sEg9xS0BQqt6LI%2Fuploads%2FiCkgt7NfnjnI7UGpPbUr%2F6.jpg?alt=media&amp;token=56fbfd98-0ecb-4f6e-b0c8-39f708e79c78" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Done! Your funds should be in your wallet. Repeat these steps for each of your Jediswap V1 LP position.

{% endstep %}
{% endstepper %}
