Skip to content
This repository was archived by the owner on Jul 9, 2021. It is now read-only.

Commit 7162935

Browse files
committed
asset-s: use RFQT-specific types in MarketOpUtils
1 parent 1512afc commit 7162935

File tree

1 file changed

+4
-4
lines changed
  • packages/asset-swapper/src/utils/market_operation_utils

1 file changed

+4
-4
lines changed

packages/asset-swapper/src/utils/market_operation_utils/index.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ContractAddresses } from '@0x/contract-addresses';
2-
import { IndicativeQuote } from '@0x/quote-server';
2+
import { RFQTIndicativeQuote } from '@0x/quote-server';
33
import { SignedOrder } from '@0x/types';
44
import { BigNumber, NULL_ADDRESS } from '@0x/utils';
55

@@ -31,7 +31,7 @@ async function getRfqtIndicativeQuotesAsync(
3131
marketOperation: MarketOperation,
3232
assetFillAmount: BigNumber,
3333
opts: Partial<GetMarketOrdersOpts>,
34-
): Promise<IndicativeQuote[]> {
34+
): Promise<RFQTIndicativeQuote[]> {
3535
if (opts.rfqt && opts.rfqt.isIndicative === true && opts.rfqt.quoteRequestor) {
3636
return opts.rfqt.quoteRequestor.requestRfqtIndicativeQuotesAsync(
3737
makerAssetData,
@@ -41,7 +41,7 @@ async function getRfqtIndicativeQuotesAsync(
4141
opts.rfqt,
4242
);
4343
} else {
44-
return Promise.resolve<IndicativeQuote[]>([]);
44+
return Promise.resolve<RFQTIndicativeQuote[]>([]);
4545
}
4646
}
4747

@@ -319,7 +319,7 @@ export class MarketOperationUtils {
319319
nativeOrders: SignedOrder[];
320320
orderFillableAmounts: BigNumber[];
321321
dexQuotes: DexSample[][];
322-
rfqtIndicativeQuotes: IndicativeQuote[];
322+
rfqtIndicativeQuotes: RFQTIndicativeQuote[];
323323
runLimit?: number;
324324
ethToOutputRate?: BigNumber;
325325
bridgeSlippage?: number;

0 commit comments

Comments
 (0)