From 1cfdc490218f597215290d2f6e8fbf96b4a530b8 Mon Sep 17 00:00:00 2001 From: "F. Eugene Aumson" Date: Tue, 20 Oct 2020 12:15:44 -0400 Subject: [PATCH] Ran prettier --- .../src/utils/market_operation_utils/index.ts | 7 +------ .../asset-swapper/src/utils/quote_requestor.ts | 18 ++++++++++-------- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/packages/asset-swapper/src/utils/market_operation_utils/index.ts b/packages/asset-swapper/src/utils/market_operation_utils/index.ts index 29576fc678..fb2987335f 100644 --- a/packages/asset-swapper/src/utils/market_operation_utils/index.ts +++ b/packages/asset-swapper/src/utils/market_operation_utils/index.ts @@ -233,12 +233,7 @@ export class MarketOperationUtils { offChainBalancerQuotes, offChainCreamQuotes, offChainBancorQuotes, - ] = await Promise.all([ - samplerPromise, - offChainBalancerPromise, - offChainCreamPromise, - offChainBancorPromise, - ]); + ] = await Promise.all([samplerPromise, offChainBalancerPromise, offChainCreamPromise, offChainBancorPromise]); const [makerTokenDecimals, takerTokenDecimals] = tokenDecimals; return { diff --git a/packages/asset-swapper/src/utils/quote_requestor.ts b/packages/asset-swapper/src/utils/quote_requestor.ts index 8916e7f5f3..c2e5ea99a8 100644 --- a/packages/asset-swapper/src/utils/quote_requestor.ts +++ b/packages/asset-swapper/src/utils/quote_requestor.ts @@ -98,14 +98,16 @@ export class QuoteRequestor { ): TakerRequestQueryParams { const buyTokenAddress = getTokenAddressOrThrow(makerAssetData); const sellTokenAddress = getTokenAddressOrThrow(takerAssetData); - const { buyAmountBaseUnits, sellAmountBaseUnits } = marketOperation === MarketOperation.Buy - ? { - buyAmountBaseUnits: assetFillAmount, - sellAmountBaseUnits: undefined, - } : { - sellAmountBaseUnits: assetFillAmount, - buyAmountBaseUnits: undefined, - }; + const { buyAmountBaseUnits, sellAmountBaseUnits } = + marketOperation === MarketOperation.Buy + ? { + buyAmountBaseUnits: assetFillAmount, + sellAmountBaseUnits: undefined, + } + : { + sellAmountBaseUnits: assetFillAmount, + buyAmountBaseUnits: undefined, + }; const requestParamsWithBigNumbers: Pick< TakerRequestQueryParams,