Order Book User Guide

Test Version:

  1. Users can stake tokens by interacting with the provided front-end user interface (UI) or by directly using the associated smart contract functions (deposit/deposit_arc20).

  2. Users can place (buy/sell) or cancel orders via the front-end UI or by interacting with the relevant smart contract functions.

  3. The backend server continuously listens for and matches orders off-chain, subsequently submitting the appropriate transactions for execution (knockdown).

  4. On-chain transaction execution occurs, and orders are completed accordingly.

Beta Version:

  1. Users can stake tokens by interacting with the provided front-end user interface (UI) or by directly using the associated smart contract functions (deposit/deposit_arc20).

  2. Users can place (buy/sell) orders via the front-end UI or by interacting with the relevant smart contract functions.

  3. Upon order submission, the smart contract logic immediately examines the order book. If the conditions are met, the order is executed. Otherwise, the order enters a pending state.

  4. Users can cancel orders that are in the pending state by interacting with the appropriate functions in the UI or the smart contract.

The following is the on-chain contract logic for the test version:

Last updated