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
(0x595f07bc)Burn an amount of liquidity tokens.
TL-B
Message body
Name | Type | Description |
---|---|---|
|
| Operation code is equal to |
|
| Query id |
|
| Amount of coins to burn (in basic token units) |
|
| Address of a user |
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.
params
structure
params
structureKey | Type | Description |
---|---|---|
|
| Amount of lp tokens to burn (in basic token units) |
|
| Address of a user |
|
| Optional; query id |
MessageData
structure
MessageData
structureName | Type | Description |
---|---|---|
|
| Address of the lp wallet of a user, returned by |
|
| Payload created by |
|
| Recommended amount of $TON (in nanoTons) sent as gas |
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.
Last updated