Skip to main content

Limpool

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.

PathMnemonicTypeDescription
opuint320xb95c92b8
saltuint64arbitrary number for shard optimization (legacy).
price_factoruint128
price_baseuint128
expirationuint64timestamp for expiration time.
final_payloadmaybe_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.

PathMnemonicTypeDescription
opuint320x10808a86
indexuint64index of limit order contract.
saltuint64arbitrary number for shard optimization (legacy).
reject_payloadmaybe_cellreject payload for execution of limit order. Sender recieves it if execution was not successful.
forward_payloadmaybe_cellforward 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.

PathMnemonicTypeDescription
opuint320xb95c92b8
query_iduint64query id
saltuint64arbitrary number for shard optimization (legacy).
price_factoruint128
price_baseuint128
expirationuint64timestamp for expiration time.
final_payloadmaybe_cell

execute

Message for limit order contract execution.

PathMnemonicTypeDescription
opuint320x10808a86
query_iduint64query id
indexuint64index of limit order contract.
saltuint64arbitrary number for shard optimization (legacy).
reject_payloadmaybe_cellreject payload for execution of limit order. Sender recieves it if execution was not successful.
forward_payloadmaybe_cellforward payload for execution of limit order. Sender recieves it if execution was successful.

pay

Message for pay out from limit order contract.

PathMnemonicTypeDescription
opuint320x6ef384f9
query_iduint64query id
saltuint64arbitrary number for shard optimization (legacy).
indexuint64index of limit order contract.
owner_addressaddresscreator's address.
x_to_y?boolif order for swapping token_x to token_y?
from_amountcoinsamount of token to swap.
to_amountcoinsamount of token to receive from swap.
pay_to_owner?intflag 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

PathMnemonicTypeDescription
token_xslicetoken y jetton wallet address of limpool contract.

get_TVL

Return

PathMnemonicTypeDescription
token_x_amountnumbertoken x balance of limpool contract.
token_y_amountnumbertoken y balance of limpool contract.

get_next_order_index

Return

PathMnemonicTypeDescription
next_order_indexnumbernumber of next limit order contract index.

get_limit_order_address

Input

PathMnemonicTypeDescription
indexnumberindex of limit order contract.
saltsaltarbitrary number for shard optimization (legacy).
x_to_ybool?if order for swapping token_x to token_y?

Return

PathMnemonicTypeDescription
limit_order_addressaddress