From 1c8b09bbdc7796116a8dc6730ec22bf6fd59e45c Mon Sep 17 00:00:00 2001 From: Moshe Shababo Date: Mon, 29 Oct 2018 23:20:37 +0200 Subject: [PATCH] addOwnOrder iteration call fix (#614) --- lib/orderbook/OrderBook.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/orderbook/OrderBook.ts b/lib/orderbook/OrderBook.ts index 827b798bf..01c095ab0 100644 --- a/lib/orderbook/OrderBook.ts +++ b/lib/orderbook/OrderBook.ts @@ -300,7 +300,7 @@ class OrderBook extends EventEmitter { swapFailures.forEach(order => remainingOrder.quantity += order.quantity); // invoke addOwnOrder recursively, append matches/swaps and set the consecutive remaining order - const remainingOrderResult = await this.addOwnOrder(remainingOrder, false, onUpdate, maxTime); + const remainingOrderResult = await this.addOwnOrder(remainingOrder, true, onUpdate, maxTime); result.internalMatches.push(...remainingOrderResult.internalMatches); result.swapResults.push(...remainingOrderResult.swapResults); result.remainingOrder = remainingOrderResult.remainingOrder;