LpWallet

This section contains op codes of the lp wallet contract as well as corresponding SDK methods

This is a standard Jetton token wallet for holding liquidity tokens. Only specific modifications for this implementation will be described.

User message handlers

burn (0x595f07bc)

Burn an amount of liquidity tokens.

TL-B

burn#595f07bc query_id:uint64 amount:Grams response_destination:MsgAddress custom_payload:Maybe ^Cell = InternalMsgBody;

Message body

Outgoing messages

Sends a message with burn_notification op code to the router contract with the amount of token burnt.

Build transaction

Build burn transaction.

async buildBurnTxParams(params: {
    amount: AmountType;
    responseAddress: AddressType;
    queryId?: QueryIdType;
}): Promise<MessageData>

params structure

MessageData structure

Notes:

  • the default value for gasAmount is equal to 1.1 $TON

Create payload

Create a payload to initiate a burn transaction; params structure is the same a the tx builder.

async createBurnBody(params: {
    amount: AmountType;
    responseAddress: AddressType;
    queryId?: QueryIdType;
}): Promise<Cell>

Last updated