ixWithdrawLiquidityToBase method on the MarketThree class withdraws liquidity from the CLMM pool and converts it back to base assets. It removes liquidity (collecting accrued fees), merges PT and YT back into SY, and redeems SY for the base asset in a single atomic operation.
Usage
The
lpPosition parameter is the public key of your LP position account. Use market.getUserLpPositions() to retrieve your positions.Required Parameters
Optional Parameters
Returns
Returns aPromise<PreparedInstruction> with the following structure: