Interfaces
provide
Message from pool contract for liquidity provision.
| Path | Mnemonic | Type | Description |
|---|
| op | uint32 | 0xbeb8a902 |
| query_id | uint64 | query id |
| new_amount_x | coins | total amount of token_x in provision |
| new_amount_y | coins | total amount of token_y in provision |
| deposit_type | uint3 | one of deploy |
| liquidity_dict | dict | dictionary of tokens for each bin of provision. |
| reject_payload | maybe_cell | reject payload for liquidity provision. Sender recieves it with tokens refund. |
| forward_payload | maybe_cell | forward payload for liquidity provision. Sender recieves it with notify from lp multitoken contract. |
add_referral_value
Message from pool contract for adding ref fee.
| Path | Mnemonic | Type | Description |
|---|
| op | uint32 | 0x7bac5221 |
| query_id | uint64 | query id |
| new_amount_x | coins | total amount of token_x from ref fee. |
| new_amount_y | coins | total amount of token_y from ref fee. |
refund
Message from user for refunding stored tokens.
| Path | Mnemonic | Type | Description |
|---|
| op | uint32 | 0x13d4efbc |
| query_id | uint64 | query id |
reset_gas
Message from user for refunding accumulated tons on the contract.
| Path | Mnemonic | Type | Description |
|---|
| op | uint32 | 0xa865c12f |
| query_id | uint64 | query id |
get_data
Message from any contract for getting stored info in the contract.
| Path | Mnemonic | Type | Description |
|---|
| op | uint32 | 0xd0b87bbf |
| query_id | uint64 | query id |
Get-methods
get_liquidity_data
Return
| Path | Mnemonic | Type | Description |
|---|
| user_address | slice | owner's address. |
| pool_address | slice | address of corresponding pool contract. |
| amount_x | coins | amount of first asset stored for future provision. |
| amount_y | coins | amount of second asset stored for future provision. |
get_storage
Return
| Path | Mnemonic | Type | Description |
|---|
| storage | cell | full current storage of the contract. |