LP Migration
Migrate your liquidity from one protocol to another in a single transaction.
Screenshots

Problem Statement
Migrate DEX liquidity in Single ClickIn a general DeFi setup, if a user has to migrate their liquidity from one protocol (say:Uniswap) to another protocol (say:Pancakeswap) because pancakeswap is giving a higher APR to the specific liquidity pool, a user has to go through upto5 steps on the same chainandupto 10 steps in a cross-chainsetup. This is a time consuming and lengthy process. The users can use LP swap to do the same migration in asingle transaction.ExplanationDifferent protocols provide different APRs on LP pairs. So if a DEX is providing more APR than users current DEX then user would like to migrate the LP to the DEX providing higher APR. This migration process usually takes6-10 steps(unstaking, removing liq, swaps, approvals, bridging, approval, swaps, approval, adding liq, approval, staking, etc). Using LP migration user can migrate the liquidity from one protocol to another in just asingle click(transaction). We internally do all these transactions on users behalf. So user just have to approve the LP token and thencall the migrate function of the contract. User can provide different price points(ticks) if its uniswap v3 based concentrated liquidity DEX.It saves up to 95% of users time and effort.Future developmentMigrate liquidity from non uniswap based protocolsUsing dex aggregator to provide best swap output for LP tokensUsing LiFi/Socket for cross chain transfer for funds for adding liq on different chainMigrate multiple LP tokens to multiple LP tokens or single LP tokenSwap LP tokens directly into a single tokenSwap multiple LP tokens in a single tokenLinkshttps://lpmigration.vercel.com/
Solution
1.) As we are working with different DEXes so it was difficult to handle different SDK's in the same project as most of the SDKs are clones of Uniswap v2 and v3 so there were conflicts. 2.) Calculating the ticks and prices from ticks was the most complex thing in this contract as the maths is complex for uniswap v3 ticks. 3.) Completion of frontend to handle all DEXes and usecases. 4.) Adding support for multiple chains and DEXes.
Hackathon
ETHIndia 2023
2023
Prizes
- 🏆
Pool Prize
Arbitrum
Contributors
- priyeshkadbe
16 contributions
- dante055
7 contributions
- shivam0x
2 contributions