Ran prettier

This commit is contained in:
F. Eugene Aumson 2020-10-20 12:15:44 -04:00
parent 4b508d255d
commit 1cfdc49021
No known key found for this signature in database
GPG Key ID: 23E6737B1374A24A
2 changed files with 11 additions and 14 deletions

View File

@ -233,12 +233,7 @@ export class MarketOperationUtils {
offChainBalancerQuotes, offChainBalancerQuotes,
offChainCreamQuotes, offChainCreamQuotes,
offChainBancorQuotes, offChainBancorQuotes,
] = await Promise.all([ ] = await Promise.all([samplerPromise, offChainBalancerPromise, offChainCreamPromise, offChainBancorPromise]);
samplerPromise,
offChainBalancerPromise,
offChainCreamPromise,
offChainBancorPromise,
]);
const [makerTokenDecimals, takerTokenDecimals] = tokenDecimals; const [makerTokenDecimals, takerTokenDecimals] = tokenDecimals;
return { return {

View File

@ -98,14 +98,16 @@ export class QuoteRequestor {
): TakerRequestQueryParams { ): TakerRequestQueryParams {
const buyTokenAddress = getTokenAddressOrThrow(makerAssetData); const buyTokenAddress = getTokenAddressOrThrow(makerAssetData);
const sellTokenAddress = getTokenAddressOrThrow(takerAssetData); const sellTokenAddress = getTokenAddressOrThrow(takerAssetData);
const { buyAmountBaseUnits, sellAmountBaseUnits } = marketOperation === MarketOperation.Buy const { buyAmountBaseUnits, sellAmountBaseUnits } =
? { marketOperation === MarketOperation.Buy
buyAmountBaseUnits: assetFillAmount, ? {
sellAmountBaseUnits: undefined, buyAmountBaseUnits: assetFillAmount,
} : { sellAmountBaseUnits: undefined,
sellAmountBaseUnits: assetFillAmount, }
buyAmountBaseUnits: undefined, : {
}; sellAmountBaseUnits: assetFillAmount,
buyAmountBaseUnits: undefined,
};
const requestParamsWithBigNumbers: Pick< const requestParamsWithBigNumbers: Pick<
TakerRequestQueryParams, TakerRequestQueryParams,