aboutsummaryrefslogtreecommitdiffstats
path: root/packages/asset-buyer
diff options
context:
space:
mode:
Diffstat (limited to 'packages/asset-buyer')
-rw-r--r--packages/asset-buyer/src/asset_buyer.ts4
-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
2 files changed, 7 insertions, 7 deletions
diff --git a/packages/asset-buyer/src/asset_buyer.ts b/packages/asset-buyer/src/asset_buyer.ts
index e74b8eac1..74ced0e51 100644
--- a/packages/asset-buyer/src/asset_buyer.ts
+++ b/packages/asset-buyer/src/asset_buyer.ts
@@ -21,7 +21,7 @@ import {
import { assert } from './utils/assert';
import { assetDataUtils } from './utils/asset_data_utils';
import { buyQuoteCalculator } from './utils/buy_quote_calculator';
-import { orderFetcherResponseProcessor } from './utils/order_fetcher_response_processor';
+import { orderProviderResponseProcessor } from './utils/order_provider_response_processor';
export class AssetBuyer {
public readonly provider: Provider;
@@ -270,7 +270,7 @@ export class AssetBuyer {
_.map(requests, async request => this.orderFetcher.getOrdersAsync(request)),
);
// process the responses into one object
- const ordersAndFillableAmounts = await orderFetcherResponseProcessor.processAsync(
+ const ordersAndFillableAmounts = await orderProviderResponseProcessor.processAsync(
targetOrderFetcherResponse,
feeOrderFetcherResponse,
zrxTokenAssetData,
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;