aboutsummaryrefslogtreecommitdiffstats
path: root/packages/asset-buyer/src/utils
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-09-21 21:21:44 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-09-21 21:21:44 +0800
commit8dea48ebeff775f7437c45f5a6d39dfc7dbf704e (patch)
treeb80c32461a3639cbd3cb467384c07ba57b80a2e4 /packages/asset-buyer/src/utils
parent97150cf55f472ca5c77b28d064976d84df9f2436 (diff)
downloaddexon-sol-tools-8dea48ebeff775f7437c45f5a6d39dfc7dbf704e.tar
dexon-sol-tools-8dea48ebeff775f7437c45f5a6d39dfc7dbf704e.tar.gz
dexon-sol-tools-8dea48ebeff775f7437c45f5a6d39dfc7dbf704e.tar.bz2
dexon-sol-tools-8dea48ebeff775f7437c45f5a6d39dfc7dbf704e.tar.lz
dexon-sol-tools-8dea48ebeff775f7437c45f5a6d39dfc7dbf704e.tar.xz
dexon-sol-tools-8dea48ebeff775f7437c45f5a6d39dfc7dbf704e.tar.zst
dexon-sol-tools-8dea48ebeff775f7437c45f5a6d39dfc7dbf704e.zip
Renamed orderFetcherResponseProcessor to orderProviderResponseProcessoer
Diffstat (limited to 'packages/asset-buyer/src/utils')
-rw-r--r--packages/asset-buyer/src/utils/order_provider_response_processor.ts (renamed from packages/asset-buyer/src/utils/order_fetcher_response_processor.ts)10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/asset-buyer/src/utils/order_fetcher_response_processor.ts b/packages/asset-buyer/src/utils/order_provider_response_processor.ts
index ec4a6ce7e..79e15c3d8 100644
--- a/packages/asset-buyer/src/utils/order_fetcher_response_processor.ts
+++ b/packages/asset-buyer/src/utils/order_provider_response_processor.ts
@@ -19,7 +19,7 @@ interface OrdersAndRemainingFillableMakerAssetAmounts {
remainingFillableMakerAssetAmounts: BigNumber[];
}
-export const orderFetcherResponseProcessor = {
+export const orderProviderResponseProcessor = {
/**
* Take the responses for the target orders to buy and fee orders and process them.
* Processing includes:
@@ -28,14 +28,14 @@ export const orderFetcherResponseProcessor = {
* - Sort by rate
*/
async processAsync(
- targetOrderFetcherResponse: OrderProviderResponse,
- feeOrderFetcherResponse: OrderProviderResponse,
+ targetOrderProviderResponse: OrderProviderResponse,
+ feeOrderProviderResponse: OrderProviderResponse,
zrxTokenAssetData: string,
orderValidator?: OrderValidatorWrapper,
): Promise<AssetBuyerOrdersAndFillableAmounts> {
// drop orders that are expired or not open
- const filteredTargetOrders = filterOutExpiredAndNonOpenOrders(targetOrderFetcherResponse.orders);
- const filteredFeeOrders = filterOutExpiredAndNonOpenOrders(feeOrderFetcherResponse.orders);
+ const filteredTargetOrders = filterOutExpiredAndNonOpenOrders(targetOrderProviderResponse.orders);
+ const filteredFeeOrders = filterOutExpiredAndNonOpenOrders(feeOrderProviderResponse.orders);
// set the orders to be sorted equal to the filtered orders
let unsortedTargetOrders = filteredTargetOrders;
let unsortedFeeOrders = filteredFeeOrders;