Withdraw LP from Jediswap V2
Follow these step-by-step process to withdraw your liquidity from Jediswap V1.
Decrease liquidity
Go to write contract 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

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"

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

Last updated

