This commit is contained in:
Alex Kroeger 2020-10-14 11:38:05 -07:00
parent ef65aa5bf6
commit 7161bbe836
2 changed files with 9 additions and 11 deletions

View File

@ -240,7 +240,13 @@ export class MarketOperationUtils {
offChainBalancerQuotes, offChainBalancerQuotes,
offChainCreamQuotes, offChainCreamQuotes,
offChainBancorQuotes, offChainBancorQuotes,
] = await Promise.all([samplerPromise, rfqtPromise, offChainBalancerPromise, offChainCreamPromise, offChainBancorPromise]); ] = await Promise.all([
samplerPromise,
rfqtPromise,
offChainBalancerPromise,
offChainCreamPromise,
offChainBancorPromise,
]);
return { return {
side: MarketOperation.Sell, side: MarketOperation.Sell,

View File

@ -373,11 +373,7 @@ describe('MarketOperationUtils tests', () => {
DEFAULT_FILL_DATA[ERC20BridgeSource.Balancer], DEFAULT_FILL_DATA[ERC20BridgeSource.Balancer],
), ),
], ],
getCreamSellQuotesOffChainAsync: ( getCreamSellQuotesOffChainAsync: (_makerToken: string, _takerToken: string, takerFillAmounts: BigNumber[]) => [
_makerToken: string,
_takerToken: string,
takerFillAmounts: BigNumber[],
) => [
createSamplesFromRates( createSamplesFromRates(
ERC20BridgeSource.Cream, ERC20BridgeSource.Cream,
takerFillAmounts, takerFillAmounts,
@ -385,11 +381,7 @@ describe('MarketOperationUtils tests', () => {
DEFAULT_FILL_DATA[ERC20BridgeSource.Cream], DEFAULT_FILL_DATA[ERC20BridgeSource.Cream],
), ),
], ],
getCreamBuyQuotesOffChainAsync: ( getCreamBuyQuotesOffChainAsync: (_makerToken: string, _takerToken: string, makerFillAmounts: BigNumber[]) => [
_makerToken: string,
_takerToken: string,
makerFillAmounts: BigNumber[],
) => [
createSamplesFromRates( createSamplesFromRates(
ERC20BridgeSource.Cream, ERC20BridgeSource.Cream,
makerFillAmounts, makerFillAmounts,