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

View File

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

View File

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

View File

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

View File

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