Interfaces
create
This message and it's query_id should be sent as forward_payload and query_id of jetton-transfer.
Message for limit pool contract for new limit order contract deployment via jetton transfer.
| Path | Mnemonic | Type | Description |
|---|
| op | uint32 | 0xb95c92b8 |
| salt | uint64 | arbitrary number for shard optimization (legacy). |
| price_factor | uint128 | |
| price_base | uint128 | |
| expiration | uint64 | timestamp for expiration time. |
| final_payload | maybe_cell | |
execute
This message and it's query_id should be sent as forward_payload and query_id of jetton-transfer.
Message for limit order contract execution via jetton transfer.
| Path | Mnemonic | Type | Description |
|---|
| op | uint32 | 0x10808a86 |
| index | uint64 | index of limit order contract. |
| salt | uint64 | arbitrary number for shard optimization (legacy). |
| reject_payload | maybe_cell | reject payload for execution of limit order. Sender recieves it if execution was not successful. |
| forward_payload | maybe_cell | forward payload for execution of limit order. Sender recieves it if execution was successful. |
create
Message for limit pool contract for new limit order contract deployment.
| Path | Mnemonic | Type | Description |
|---|
| op | uint32 | 0xb95c92b8 |
| query_id | uint64 | query id |
| salt | uint64 | arbitrary number for shard optimization (legacy). |
| price_factor | uint128 | |
| price_base | uint128 | |
| expiration | uint64 | timestamp for expiration time. |
| final_payload | maybe_cell | |
execute
Message for limit order contract execution.
| Path | Mnemonic | Type | Description |
|---|
| op | uint32 | 0x10808a86 |
| query_id | uint64 | query id |
| index | uint64 | index of limit order contract. |
| salt | uint64 | arbitrary number for shard optimization (legacy). |
| reject_payload | maybe_cell | reject payload for execution of limit order. Sender recieves it if execution was not successful. |
| forward_payload | maybe_cell | forward payload for execution of limit order. Sender recieves it if execution was successful. |
pay
Message for pay out from limit order contract.
| Path | Mnemonic | Type | Description |
|---|
| op | uint32 | 0x6ef384f9 |
| query_id | uint64 | query id |
| salt | uint64 | arbitrary number for shard optimization (legacy). |
| index | uint64 | index of limit order contract. |
| owner_address | address | creator's address. |
| x_to_y? | bool | if order for swapping token_x to token_y? |
| from_amount | coins | amount of token to swap. |
| to_amount | coins | amount of token to receive from swap. |
| pay_to_owner? | int | flag of further parsing (see below) |
|pay_to_owner?=1|owner|address|limit order creator address|
|pay_to_owner?=1|owner_from_amount|coins||
|pay_to_owner?=1|owner_to_amount|coins||
|pay_to_owner?=1|final_payload|maybe_cell||
||reject_payload|maybe_cell|reject payload for execution of limit order. Sender recieves it if execution was not successful.|
||forward_payload|maybe_cell|forward payload for execution of limit order. Sender recieves it if execution was successful.|
Get-methods
get_jetton_wallets
Return
| Path | Mnemonic | Type | Description |
|---|
| token_x | slice | token y jetton wallet address of limpool contract. |
get_TVL
Return
| Path | Mnemonic | Type | Description |
|---|
| token_x_amount | number | token x balance of limpool contract. |
| token_y_amount | number | token y balance of limpool contract. |
get_next_order_index
Return
| Path | Mnemonic | Type | Description |
|---|
| next_order_index | number | number of next limit order contract index. |
get_limit_order_address
| Path | Mnemonic | Type | Description |
|---|
| index | number | index of limit order contract. |
| salt | salt | arbitrary number for shard optimization (legacy). |
| x_to_y | bool? | if order for swapping token_x to token_y? |
Return
| Path | Mnemonic | Type | Description |
|---|
| limit_order_address | address | |