Skip to main content

Lp_multitoken

Stores the user's LP tokens in the Range contract.

Interfaces​

mint​

Add lp tokens to lp dict.

PathMnemonicTypeDescription
opuint320xbaf8aaf6
query_iduint64query id
codecellcode of current lp_multitoken contract.
lp_tokensdictdictionary with lp tokens to mint.
bins_numuint32amount of bins where lp tokens were minted.
forward_payloadmaybe_cellforward payload which is sent to the user address after mint.

burn​

Send burn lp tokens operation to range contract.

PathMnemonicTypeDescription
opuint320xecb24493
query_iduint64query id
lp_tokens_to_burndictdictionary with lp tokens to burn.
forward_payloadmaybe_cellforward payload which is sent to the user address with withdrawn tokens.

burn_move​

Send burn_move lp tokens operation to range contract.

PathMnemonicTypeDescription
opuint320x4da4357
query_iduint64query id
lp_tokens_to_burndictdictionary with lp tokens to provide.
first_bin_to_provideint32first bin of new provision.
forward_payloadmaybe_cellforward payload which is sent to the user address with withdrawn tokens.

burn_all​

Burn all lp tokens.

PathMnemonicTypeDescription
opuint320xd15a6118
query_iduint64query id
forward_payloadmaybe_cellforward payload which is sent to the user address with withdrawn tokens.

send​

PathMnemonicTypeDescription
opuint320x1e93635a
query_iduint64query id
receiver_addressaddressaddress of another lp multitoken contract owner for the same range contract.
lp_tokens_to_senddictdictionary with lp tokens to send.
forward_payloadmaybe_cellforward payload which is sent to the user address with received tokens.

receive​

PathMnemonicTypeDescription
opuint320x5c5c9b98
query_iduint64query id
from_useraddressaddress of another lp multitoken contract owner for the same range contract.
lp_tokens_to_receivedictdictionary with lp tokens to receive.
forward_payloadmaybe_cellforward payload which is sent to the owner of the current lp multitoken contract.

Get-methods​

get_tokens​

Return​

PathMnemonicTypeDescription
lp_tokenscelllp tokens dict.

get_authority_address​

Return​

PathMnemonicTypeDescription
authority_addressaddressnull addr

get_nft_data​

Return​

PathMnemonicTypeDescription
firstnumber
addraddresscurrent nft item address.
nft_collection_addraddressrange contract address.
user_addressaddressnft owner's address.
content_lpcellnft content.

get_revoked_time​

Return​

PathMnemonicTypeDescription
revoked_timenumberalways zero.

get_bin​

Input​

PathMnemonicTypeDescription
binnumbernumber of bin to get lp tokens for.

Return​

PathMnemonicTypeDescription
lp_tokensnumberamount of lp tokens in current bin.

get_bins_number​

Return​

PathMnemonicTypeDescription
bins_numnumberamount of inited bins with lp tokens.

get_storage​

Return​

PathMnemonicTypeDescription
storagecellfull current storage of the contract.