diff --git a/dex/src/matching.rs b/dex/src/matching.rs
index 7f222255..9d2a7e3e 100644
--- a/dex/src/matching.rs
+++ b/dex/src/matching.rs
@@ -74,6 +74,7 @@ impl<'ob> OrderBookState<'ob> {
pub(crate) fn process_orderbook_request(
&mut self,
request: &RequestView,
+ open_orders: &mut OpenOrders,
event_q: &mut EventQueue,
proceeds: &mut RequestProceeds,
limit: &mut u16,
@@ -104,6 +105,7 @@ impl<'ob> OrderBookState<'ob> {
client_order_id: client_order_id.map_or(0, NonZeroU64::get),
self_trade_behavior,
},
+ open_orders,
event_q,
proceeds,
limit,
@@ -205,6 +207,7 @@ impl<'ob> OrderBookState<'ob> {
&mut self,
params: NewOrderParams,
+ open_orders: &mut OpenOrders,
event_q: &mut EventQueue,
proceeds: &mut RequestProceeds,
@@ -251,6 +254,7 @@ impl<'ob> OrderBookState<'ob> {
client_order_id,
self_trade_behavior,
},
+ open_orders,
event_q,
proceeds,
),
@@ -269,6 +273,7 @@ impl<'ob> OrderBookState<'ob> {
client_order_id,
self_trade_behavior,
},
+ open_orders,
event_q,
proceeds,
)
@@ -306,6 +311,7 @@ impl<'ob> OrderBookState<'ob> {
fn new_ask(
&mut self,
params: NewAskParams,
+ open_orders: &mut OpenOrders,
event_q: &mut EventQueue,
to_release: &mut RequestProceeds,
) -> DexResult