Skip to content

Commit

Permalink
addOwnOrder iteration call fix (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
moshababo authored Oct 29, 2018
1 parent d4b8785 commit 1c8b09b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/orderbook/OrderBook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1c8b09b

Please sign in to comment.