> 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-v2.md).

# Withdraw LP from Jediswap V2

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

{% stepper %}
{% step %}

### Get all LP positions

* Go to [Jediswap V2 NFT router contract](https://voyager.online/contract/0x0469b656239972a2501f2f1cd71bf4e844d64b7cae6773aa84c702327c476e5b#readContract)
* Click on function "get\_all\_tokens\_for\_owner"
* In the "owner" field, paste your Starknet wallet address
* Select "Decimal" in the response format
* Click "Query"
* Note down all the "token ids" from the response, you can withdraw each LP position one by one.

<figure><img src="https://3647710270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTtqAy9sEg9xS0BQqt6LI%2Fuploads%2FVSLSspYEq7Hbe5bpXRfm%2F1.jpg?alt=media&amp;token=d7c49f60-4e36-4004-a2c1-0595ddbd4f75" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Get LP balance

* Scroll down on the above contract
* Click on function "get\_position"
* In the "token\_id" field paste one of the "token id" received from step 1
* Click query and copy the value for "liquidity" field from the response

<figure><img src="https://3647710270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTtqAy9sEg9xS0BQqt6LI%2Fuploads%2Fir0iV9Bq3s9TquQFIBCJ%2F2.jpg?alt=media&amp;token=ed5b2e8d-e167-4d91-861b-ec328fd9d5fb" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Decrease liquidity

* Go to [write contract](https://voyager.online/contract/0x0469b656239972a2501f2f1cd71bf4e844d64b7cae6773aa84c702327c476e5b#writeContract) from top-right in the above contract
* Connect your Starknet wallet
* Click on function "decrease\_liquidity"
* In the fields input below values
  * token\_id = Same token id you used step 2
  * liquidity = liquidity value you received from step 2
  * amount0\_min = 0
  * amount1\_min = 0
  * deadline = 10000000000
* Click on "Transact" and approve tx on your wallet

<figure><img src="https://3647710270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTtqAy9sEg9xS0BQqt6LI%2Fuploads%2FhqB2RVb1J9cz3vFgz2zz%2F3.jpg?alt=media&amp;token=5d005399-8dfb-45e5-bde7-4d5fe0f3c011" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Withdraw funds

* In the same contract as above, click on function "collect"
* In the fields input below values
  * token\_id = Same token id you used step 2 and 3
  * recipient = your Starknet wallet address where you want to receive funds
  * amount0\_max = "0xffffffffffffffffffffffffffffffff"
  * amount1\_max = "0xffffffffffffffffffffffffffffffff"

<figure><img src="https://3647710270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTtqAy9sEg9xS0BQqt6LI%2Fuploads%2F3zhVyxKfIMqxdsI1SIBU%2F4.jpg?alt=media&amp;token=d580f98c-7c2f-408a-9359-47f4424a3fb5" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Burn your LP NFT

* Your funds should already be in your wallet from step 4
* To keep your wallet positions clear, you can optionally burn the LP NFT
* In the same contract as step 3, go to function "burn"
* In the "token\_id" field paste the same token id you used in step 4
* Click transact 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%2FcVmouSD2AU4AsChBUEFe%2F5.jpg?alt=media&amp;token=ebdf33f5-ae51-40f2-9410-25880ae58f0b" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Repeat these steps for each of your position from step 1

{% endstep %}
{% endstepper %}
