Skip to content

Commit 1c8b09b

Browse files
authored
addOwnOrder iteration call fix (#614)
1 parent d4b8785 commit 1c8b09b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/orderbook/OrderBook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ class OrderBook extends EventEmitter {
300300
swapFailures.forEach(order => remainingOrder.quantity += order.quantity);
301301

302302
// invoke addOwnOrder recursively, append matches/swaps and set the consecutive remaining order
303-
const remainingOrderResult = await this.addOwnOrder(remainingOrder, false, onUpdate, maxTime);
303+
const remainingOrderResult = await this.addOwnOrder(remainingOrder, true, onUpdate, maxTime);
304304
result.internalMatches.push(...remainingOrderResult.internalMatches);
305305
result.swapResults.push(...remainingOrderResult.swapResults);
306306
result.remainingOrder = remainingOrderResult.remainingOrder;

0 commit comments

Comments
 (0)