diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-09-15 20:14:19 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-09-15 20:14:55 +0800 |
commit | c692115cdcbc761c0c4074db79f8c127b92da7e0 (patch) | |
tree | 26df225d4eb5fc0c3d76e382aa565e2b41c8998c /packages/asset-buyer/src/asset_buyer.ts | |
parent | dfe58e4975e0ad3edf08fdc6d3441e83171096a9 (diff) | |
download | dexon-sol-tools-c692115cdcbc761c0c4074db79f8c127b92da7e0.tar dexon-sol-tools-c692115cdcbc761c0c4074db79f8c127b92da7e0.tar.gz dexon-sol-tools-c692115cdcbc761c0c4074db79f8c127b92da7e0.tar.bz2 dexon-sol-tools-c692115cdcbc761c0c4074db79f8c127b92da7e0.tar.lz dexon-sol-tools-c692115cdcbc761c0c4074db79f8c127b92da7e0.tar.xz dexon-sol-tools-c692115cdcbc761c0c4074db79f8c127b92da7e0.tar.zst dexon-sol-tools-c692115cdcbc761c0c4074db79f8c127b92da7e0.zip |
Fix lint errors
Diffstat (limited to 'packages/asset-buyer/src/asset_buyer.ts')
-rw-r--r-- | packages/asset-buyer/src/asset_buyer.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/asset-buyer/src/asset_buyer.ts b/packages/asset-buyer/src/asset_buyer.ts index 9cbdd8df6..3b603d929 100644 --- a/packages/asset-buyer/src/asset_buyer.ts +++ b/packages/asset-buyer/src/asset_buyer.ts @@ -1,6 +1,5 @@ import { ContractWrappers } from '@0xproject/contract-wrappers'; -import { assetDataUtils, marketUtils } from '@0xproject/order-utils'; -import { SignedOrder } from '@0xproject/types'; +import { assetDataUtils } from '@0xproject/order-utils'; import { BigNumber } from '@0xproject/utils'; import { Web3Wrapper } from '@0xproject/web3-wrapper'; import { Provider } from 'ethereum-types'; @@ -29,7 +28,7 @@ export class AssetBuyer { public readonly orderFetcher: OrderFetcher; public readonly networkId: number; public readonly orderRefreshIntervalMs: number; - private _contractWrappers: ContractWrappers; + private readonly _contractWrappers: ContractWrappers; private _lastRefreshTimeIfExists?: number; private _currentOrdersAndFillableAmountsIfExists?: AssetBuyerOrdersAndFillableAmounts; /** @@ -188,7 +187,7 @@ export class AssetBuyer { const requests = [targetOrderFetcherRequest, feeOrderFetcherRequest]; // fetch orders and possible fillable amounts const [targetOrderFetcherResponse, feeOrderFetcherResponse] = await Promise.all( - _.map(requests, request => this.orderFetcher.fetchOrdersAsync(request)), + _.map(requests, async request => this.orderFetcher.fetchOrdersAsync(request)), ); // process the responses into one object const ordersAndFillableAmounts = await orderFetcherResponseProcessor.processAsync( |