aboutsummaryrefslogtreecommitdiffstats
path: root/packages/asset-buyer
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-09-18 22:07:47 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-09-18 22:07:47 +0800
commit38afd108f8e1dbb56655260a415050f44754c630 (patch)
tree2e6e45eeb62ab8558f017a190a15bc5241f5d066 /packages/asset-buyer
parent65f709d50ae559ec1b17f3c44f3d87e5d3cc4da7 (diff)
downloaddexon-sol-tools-38afd108f8e1dbb56655260a415050f44754c630.tar
dexon-sol-tools-38afd108f8e1dbb56655260a415050f44754c630.tar.gz
dexon-sol-tools-38afd108f8e1dbb56655260a415050f44754c630.tar.bz2
dexon-sol-tools-38afd108f8e1dbb56655260a415050f44754c630.tar.lz
dexon-sol-tools-38afd108f8e1dbb56655260a415050f44754c630.tar.xz
dexon-sol-tools-38afd108f8e1dbb56655260a415050f44754c630.tar.zst
dexon-sol-tools-38afd108f8e1dbb56655260a415050f44754c630.zip
Fix order expired bug
Diffstat (limited to 'packages/asset-buyer')
-rw-r--r--packages/asset-buyer/src/utils/order_fetcher_response_processor.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/asset-buyer/src/utils/order_fetcher_response_processor.ts b/packages/asset-buyer/src/utils/order_fetcher_response_processor.ts
index f1116a80f..f700cadf9 100644
--- a/packages/asset-buyer/src/utils/order_fetcher_response_processor.ts
+++ b/packages/asset-buyer/src/utils/order_fetcher_response_processor.ts
@@ -90,7 +90,7 @@ function filterOutExpiredAndNonOpenOrders(
orders: SignedOrderWithRemainingFillableMakerAssetAmount[],
): SignedOrderWithRemainingFillableMakerAssetAmount[] {
const result = _.filter(orders, order => {
- return orderUtils.isOpenOrder(order) && orderUtils.isOrderExpired(order);
+ return orderUtils.isOpenOrder(order) && !orderUtils.isOrderExpired(order);
});
return result;
}