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,