Skip to main content

Limit_order

Interfaces

create

Message for limit order contract deployment from limit pool contract.

PathMnemonicTypeDescription
opuint320x26f4c35f
query_iduint64query id

execute

Message for limit order execution from limit pool contract.

PathMnemonicTypeDescription
opuint320x2e71550c
query_iduint64query id
executoraddressaddress of executor.
amountcoinsamount of asset for execution of an order.
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.

cancel

Message for limit order contract cancel from owner.

PathMnemonicTypeDescription
opuint320xff34e6d6
query_iduint64query id

Get-methods

get_sale_data

Return

PathMnemonicTypeDescription
x_to_ynumberif order for swapping token_x to token_y?
from_amountnumberamount of token to swap.
to_amountnumberamount of token to receive from swap.
price_basenumber
price_factornumber

get_limit_order_data

Return

PathMnemonicTypeDescription
limpool_addressslice
owner_addressslicecreator's address.
indexnumberindex of limit order contract.
saltnumberarbitrary number for shard optimization (legacy).