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
opuint320x250ad226
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
opuint320x73403c43
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_all

Burn all lp tokens.

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

send

PathMnemonicTypeDescription
opuint320x81611b8a
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
opuint320x6580cef9
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.