aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/util/asset_buyer_factory.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/instant/src/util/asset_buyer_factory.ts')
-rw-r--r--packages/instant/src/util/asset_buyer_factory.ts17
1 files changed, 0 insertions, 17 deletions
diff --git a/packages/instant/src/util/asset_buyer_factory.ts b/packages/instant/src/util/asset_buyer_factory.ts
deleted file mode 100644
index 5ba46223c..000000000
--- a/packages/instant/src/util/asset_buyer_factory.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-import { AssetBuyer, AssetBuyerOpts } from '@0x/asset-buyer';
-import { Provider } from 'ethereum-types';
-import * as _ from 'lodash';
-
-import { Network, OrderSource } from '../types';
-
-export const assetBuyerFactory = {
- getAssetBuyer: (provider: Provider, orderSource: OrderSource, network: Network): AssetBuyer => {
- const assetBuyerOptions: Partial<AssetBuyerOpts> = {
- networkId: network,
- };
- const assetBuyer = _.isString(orderSource)
- ? AssetBuyer.getAssetBuyerForStandardRelayerAPIUrl(provider, orderSource, assetBuyerOptions)
- : AssetBuyer.getAssetBuyerForProvidedOrders(provider, orderSource, assetBuyerOptions);
- return assetBuyer;
- },
-};