> 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

{% 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="/files/fCuBBOYLMir4mpFgIoFJ" 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="/files/GwgJYO2zym2h79x6RS1m" 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="/files/pvNmVNiSCg8YBLwBfxFe" 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="/files/gsm2vKYIGUvgSfE9jQwp" 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="/files/FDQvrBHCjdyACCh3Wfes" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

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

{% endstep %}
{% endstepper %}
