Stores the user's LP tokens in the Range contract.
Interfaces
mint
Add lp tokens to lp dict.
Path | Mnemonic | Type | Description |
---|
| op | uint32 | 0x250ad226 |
| query_id | uint64 | query id |
| code | cell | code of current lp_multitoken contract. |
| lp_tokens | dict | dictionary with lp tokens to mint. |
| bins_num | uint32 | amount of bins where lp tokens were minted. |
| forward_payload | maybe_cell | forward payload which is sent to the user address after mint. |
burn
Send burn lp tokens operation to range contract.
Path | Mnemonic | Type | Description |
---|
| op | uint32 | 0x73403c43 |
| query_id | uint64 | query id |
| lp_tokens_to_burn | dict | dictionary with lp tokens to burn. |
| forward_payload | maybe_cell | forward payload which is sent to the user address with withdrawn tokens. |
burn_all
Burn all lp tokens.
Path | Mnemonic | Type | Description |
---|
| op | uint32 | 0xebd6ec83 |
| query_id | uint64 | query id |
| forward_payload | maybe_cell | forward payload which is sent to the user address with withdrawn tokens. |
send
Path | Mnemonic | Type | Description |
---|
| op | uint32 | 0x81611b8a |
| query_id | uint64 | query id |
| receiver_address | address | address of another lp multitoken contract owner for the same range contract. |
| lp_tokens_to_send | dict | dictionary with lp tokens to send. |
| forward_payload | maybe_cell | forward payload which is sent to the user address with received tokens. |
receive
Path | Mnemonic | Type | Description |
---|
| op | uint32 | 0x6580cef9 |
| query_id | uint64 | query id |
| from_user | address | address of another lp multitoken contract owner for the same range contract. |
| lp_tokens_to_receive | dict | dictionary with lp tokens to receive. |
| forward_payload | maybe_cell | forward payload which is sent to the owner of the current lp multitoken contract. |
Get-methods
get_tokens
Return
Path | Mnemonic | Type | Description |
---|
| lp_tokens | cell | lp tokens dict. |
get_authority_address
Return
Path | Mnemonic | Type | Description |
---|
| authority_address | address | null addr |
get_nft_data
Return
Path | Mnemonic | Type | Description |
---|
| first | number | |
| addr | address | current nft item address. |
| nft_collection_addr | address | range contract address. |
| user_address | address | nft owner's address. |
| content_lp | cell | nft content. |
get_revoked_time
Return
Path | Mnemonic | Type | Description |
---|
| revoked_time | number | always zero. |
get_bin
Path | Mnemonic | Type | Description |
---|
| bin | number | number of bin to get lp tokens for. |
Return
Path | Mnemonic | Type | Description |
---|
| lp_tokens | number | amount of lp tokens in current bin. |
get_bins_number
Return
Path | Mnemonic | Type | Description |
---|
| bins_num | number | amount of inited bins with lp tokens. |
get_storage
Return
Path | Mnemonic | Type | Description |
---|
| storage | cell | full current storage of the contract. |