Follow these step-by-step process to withdraw your liquidity from Jediswap V1.
Go to Jediswap V2 NFT router contractarrow-up-right
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.
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
Go to write contractarrow-up-right 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
In the same contract as above, click on function "collect"
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"
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
Last updated 6 months ago