LpWallet

This section contains api reference of the lp wallet contract

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

NameTypeDescription

op

uint32

Operation code is equal to burn

query_id

uint64

Query id

amount

coins

Amount of coins to burn (in basic token units)

response_destination

address

Address of a user

custom_payloads

maybe_ref

Payloads for token0 and token1

custom_payloads

NameTypeDescription

payload_0

maybe_ref

Payload used for amount0; can be either cross_swap or cross_provide_lp

payload_1

maybe_ref

Payload used for amount1; can be either cross_swap or cross_provide_lp

Outgoing messages

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

Last updated