Push RFQ-T opts to own SwapQuoterOpts subnamespace
Addresses review comment https://github.com/0xProject/0x-monorepo/pull/2541#discussion_r405963240
This commit is contained in:
parent
227676c150
commit
93872ad7a3
@ -43,8 +43,10 @@ const DEFAULT_SWAP_QUOTER_OPTS: SwapQuoterOpts = {
|
||||
},
|
||||
...DEFAULT_ORDER_PRUNER_OPTS,
|
||||
samplerGasLimit: 250e6,
|
||||
rfqtTakerApiKeyWhitelist: [],
|
||||
rfqtMakerEndpoints: [],
|
||||
rfqt: {
|
||||
takerApiKeyWhitelist: [],
|
||||
makerEndpoints: [],
|
||||
},
|
||||
};
|
||||
|
||||
const DEFAULT_FORWARDER_EXTENSION_CONTRACT_OPTS: ForwarderExtensionContractOpts = {
|
||||
|
@ -165,8 +165,8 @@ export class SwapQuoter {
|
||||
this.orderbook = orderbook;
|
||||
this.expiryBufferMs = expiryBufferMs;
|
||||
this.permittedOrderFeeTypes = permittedOrderFeeTypes;
|
||||
this.rfqtTakerApiKeyWhitelist = options.rfqtTakerApiKeyWhitelist || [];
|
||||
this.rfqtMakerEndpoints = options.rfqtMakerEndpoints || [];
|
||||
this.rfqtTakerApiKeyWhitelist = options.rfqt ? options.rfqt.takerApiKeyWhitelist || [] : [];
|
||||
this.rfqtMakerEndpoints = options.rfqt ? options.rfqt.makerEndpoints || [] : [];
|
||||
this._contractAddresses = options.contractAddresses || getContractAddressesForChainOrThrow(chainId);
|
||||
this._devUtilsContract = new DevUtilsContract(this._contractAddresses.devUtils, provider);
|
||||
this._protocolFeeUtils = new ProtocolFeeUtils(constants.PROTOCOL_FEE_UTILS_POLLING_INTERVAL_IN_MS);
|
||||
|
@ -217,8 +217,10 @@ export interface SwapQuoterOpts extends OrderPrunerOpts {
|
||||
contractAddresses?: ContractAddresses;
|
||||
samplerGasLimit?: number;
|
||||
liquidityProviderRegistryAddress?: string;
|
||||
rfqtTakerApiKeyWhitelist?: string[];
|
||||
rfqtMakerEndpoints?: string[];
|
||||
rfqt?: {
|
||||
takerApiKeyWhitelist?: string[];
|
||||
makerEndpoints?: string[];
|
||||
};
|
||||
quoteRequestor?: QuoteRequestor;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user