Redeem vest
redeemVestPayload
creates a transaction builder for redeeming vested tokens. Here's an example of how to use it:
// Get burn position details
const burn_position_id = '0x4e745334f8899a2b8854c791865e9...'
const burnPosition = await sdk.Burn.getBurnPosition(burn_position_id)
// Create redeem vest payload
const tx = sdk.Burn.redeemVestPayload([
{
clmm_versioned_id: '0x8d1b965923331fa3f782.....', // Sourced from clmm sdk sdkOptions
clmm_vester_id: '0xbe3a49c92cc31f063418aa24....', // Sourced from clmm sdk sdkOptions
clmm_pool_id: burnPosition!.pool_id,
burn_position_id: burn_position_id,
period: 0,
coin_type_a: burnPosition!.coin_type_a,
coin_type_b: burnPosition!.coin_type_b,
},
])
// Execute the transaction
const transferTxn = await sdk.FullClient.executeTx(send_key_pair, tx, false)
redeemVestPayload
allows users to redeem their vested tokens from a burn position. The process involves:
Retrieving the burn position details
Creating a redeem vest payload with the necessary parameters
Executing the transaction to claim the vested tokens
Last updated