Function mango_v4::state::rank_orders
source · pub fn rank_orders<'a>(
side: Side,
fixed: Option<(NodeHandle, &'a LeafNode)>,
oracle_pegged: Option<(NodeHandle, &'a LeafNode)>,
return_worse: bool,
now_ts: u64,
oracle_price_lots: i64
) -> Option<BookSideIterItem<'a>>
Expand description
Compares the fixed
and oracle_pegged
order and returns the one that would match first.
(or the worse one, if return_worse
is set)