it builds
This commit is contained in:
@@ -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,
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -271,7 +271,6 @@ export interface SwapQuoteInfo {
|
|||||||
makerAmount: BigNumber;
|
makerAmount: BigNumber;
|
||||||
protocolFeeInWeiAmount: BigNumber;
|
protocolFeeInWeiAmount: BigNumber;
|
||||||
gas: number;
|
gas: number;
|
||||||
slippage: number;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -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,
|
||||||
};
|
};
|
||||||
|
@@ -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) {
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user