Flex
Flex exchange system
|
Tip3/tip3 exchange orders iterator. More...
#include <xchg_iterator.hpp>
Public Member Functions | |
xchg_iterator (process_queue_state &state, orders_queue_cached &orders, uint128 deal_costs, bool sell) | |
bool | first_active () |
Move to the first active order in the queue. | |
OrderInfoXchgWithIdx & | cur () |
OrderInfoXchg & | operator* () |
void | on_deal (uint128 deal_amount, uint128 costs, uint128 lend_spent) |
When deal is completed. | |
void | drop_with_ooc () |
When order is out-of-evers. | |
Public Attributes | |
process_queue_state & | state_ |
Processing orders queue state for PriceXchg. | |
orders_queue_cached & | orders_ |
Orders queue. | |
uint128 | deal_costs_ |
Deal processing costs. | |
bool | sell_ |
Is it a sell order. | |
Tip3/tip3 exchange orders iterator.
Skips expired and out-of-evers orders. Notifies process_queue_state about such orders.
|
inline |
state | Common iteration state with calculating message limits |
orders | Orders queue |
deal_costs | Deal costs in evers |
sell | Is it a sell order |