Burn LP
Burns specified amount of LP tokens.
Last updated
Burns specified amount of LP tokens.
Last updated
60 burns/min or 10 burns every 10 seconds per wallet. (weight = 10)
tx
object
Yes
tx.sender
string
Yes
Hex string representing the subaccount's 32 bytes (address + subaccount name) of the tx sender.
tx.productId
number
Yes
A product ID to mint LP for.
tx.amount
string
Yes
Combined amount of base
+ quote
to burn multiplied by 1e18, sent as a string.
tx.nonce
string
Yes
signature
string
Yes
The solidity typed data struct that needs to be signed is:
sender
: a bytes32
sent as a hex string; includes the address and the subaccount identifier.
productId
: a uint32
that specifies the product you’d like to burn LPs for; can be either a spot or a perp product.
amount
: combined amount of base
+ quote
to burn, sent as a string. This must be positive and must be specified with 18 decimals.
Note: for signing you should always use the data type specified in the solidity struct which might be different from the type sent in the request e.g: nonce
should be an uint64
for Signing but should be sent as a string
in the final payload.
Burn LP transaction object. See section for details on the transaction fields.
This is an incrementing nonce, can be obtained using the query.
Signed transaction. See section for more details.
See more details and examples in our page.
nonce
: the tx_nonce
. This is an incrementing nonce, can be obtained using the query.