Flex
Flex exchange system
Public Member Functions | Static Public Member Functions | List of all members
PriceXchg Class Referencefinal
Inheritance diagram for PriceXchg:
Inheritance graph
[legend]
Collaboration diagram for PriceXchg:
Collaboration graph
[legend]

Public Member Functions

OrderRet onTip3LendOwnership (uint128 balance, uint32 lend_finish_time, Tip3Creds creds, cell payload, address answer_addr)
 Deploy is only allowed with [[deploy]] function call.
 
void processQueue ()
 
void cancelOrder (bool sell, opt< uint256 > user_id, opt< uint256 > order_id)
 
void cancelWalletOrder (bool sell, address owner, uint256 user_id, opt< uint256 > order_id)
 
EversConfig ev_cfg ()
 
dict_array< OrderInfoXchggetSells ()
 
dict_array< OrderInfoXchggetBuys ()
 
PriceXchgSalt getConfig ()
 
PriceXchgDetails getDetails ()
 

Static Public Member Functions

static int _fallback ([[maybe_unused]] cell msg, [[maybe_unused]] slice msg_body)
 

Additional Inherited Members

- Public Attributes inherited from DPriceXchg
uint128 price_num_
 Price numerator in minor tokens for one minor token - rational number, denominator kept in config.
 
uint128 sells_amount_
 
uint128 buys_amount_
 
big_queue< OrderInfoXchgsells_
 Queue of sell orders. More...
 
big_queue< OrderInfoXchgbuys_
 Queue of buy orders.
 

Detailed Description

Implements IPriceXchg May be in 3 states:

  1. Only sell orders
  2. Only buy orders
  3. Have both sides. Temporary state, may occur when process_queue hit deals limit. In the next processQueue() call (calls) to itself will be converted into state #1 or state #2.

The documentation for this class was generated from the following file: