Burn LP position

When the position is burned, a CetusLPBurnProof will be returned. Compared to the burn_lp function, this V2 version does not require the pool object as a parameter, making it more convenient to use. The function will automatically verify the position's validity through the position object itself. This design also enables users to create a pool, add liquidity, and burn the position all within a single transaction.

const pos_id = '0x4e1970683fc49de834478339724509...' // is burn success
const txb = await sdk.Burn.createBurnLPV2Payload(pos_id)

const simulate_res = await sdk.FullClient.devInspectTransactionBlock({
  transactionBlock: txb,
  sender: account,
})

Last updated