it builds

This commit is contained in:
Lawrence Forman
2022-02-23 07:53:37 -05:00
parent 29c77059a0
commit d1a93737ce
5 changed files with 7 additions and 9 deletions

View File

@@ -118,11 +118,6 @@ export class SwapQuoter {
this.chainId, this.chainId,
options.samplerServiceUrl, options.samplerServiceUrl,
), ),
this._contractAddresses,
{
chainId,
exchangeAddress: this._contractAddresses.exchange,
},
); );
this._quoteRequestorHttpClient = Axios.create({ this._quoteRequestorHttpClient = Axios.create({
@@ -714,7 +709,7 @@ function getSwapQuoteOrdersBreakdown(side: MarketOperation, tokenPath: Address[]
return breakdown; return breakdown;
} }
function fillResultsToQuoteInfo(fr: QuoteFillResult, slippage: number): SwapQuoteInfo { function fillResultsToQuoteInfo(fr: QuoteFillResult): SwapQuoteInfo {
return { return {
makerAmount: fr.totalMakerAssetAmount, makerAmount: fr.totalMakerAssetAmount,
takerAmount: fr.takerAssetAmount, takerAmount: fr.takerAssetAmount,
@@ -722,7 +717,6 @@ function fillResultsToQuoteInfo(fr: QuoteFillResult, slippage: number): SwapQuot
feeTakerTokenAmount: fr.takerFeeTakerAssetAmount, feeTakerTokenAmount: fr.takerFeeTakerAssetAmount,
protocolFeeInWeiAmount: fr.protocolFeeAmount, protocolFeeInWeiAmount: fr.protocolFeeAmount,
gas: fr.gas, gas: fr.gas,
slippage,
}; };
} }

View File

@@ -271,7 +271,6 @@ export interface SwapQuoteInfo {
makerAmount: BigNumber; makerAmount: BigNumber;
protocolFeeInWeiAmount: BigNumber; protocolFeeInWeiAmount: BigNumber;
gas: number; gas: number;
slippage: number;
} }
/** /**

View File

@@ -682,4 +682,5 @@ export const DEFAULT_GET_MARKET_ORDERS_OPTS: Omit<GetMarketOrdersOpts, 'gasPrice
shouldGenerateQuoteReport: true, shouldGenerateQuoteReport: true,
shouldIncludePriceComparisonsReport: false, shouldIncludePriceComparisonsReport: false,
tokenAdjacencyGraph: { default: [] }, tokenAdjacencyGraph: { default: [] },
neonRouterNumSamples: 14,
}; };

View File

@@ -550,7 +550,7 @@ export class MarketOperationUtils {
allowFallback: _opts.allowFallback, allowFallback: _opts.allowFallback,
exchangeProxyOverhead: _opts.exchangeProxyOverhead, exchangeProxyOverhead: _opts.exchangeProxyOverhead,
gasPrice: _opts.gasPrice, gasPrice: _opts.gasPrice,
neonRouterNumSamples: _opts.ne neonRouterNumSamples: _opts.neonRouterNumSamples,
}; };
if (nativeOrders.length === 0) { if (nativeOrders.length === 0) {

View File

@@ -398,6 +398,10 @@ export interface GetMarketOrdersOpts {
* percentage, no fallback quote will be provided. * percentage, no fallback quote will be provided.
*/ */
maxFallbackSlippage: number; maxFallbackSlippage: number;
/**
* Number of samples to use when creating fill curves with neon-router
*/
neonRouterNumSamples: number;
exchangeProxyOverhead: ExchangeProxyOverhead; exchangeProxyOverhead: ExchangeProxyOverhead;
/** /**
* Whether to pad the quote with a redundant fallback quote using different * Whether to pad the quote with a redundant fallback quote using different