diff options
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; |