fix linting
This commit is contained in:
parent
f70341fb48
commit
67d9678a3a
@ -2518,7 +2518,7 @@ export const DEFAULT_GAS_SCHEDULE: Required<FeeSchedule> = {
|
|||||||
}
|
}
|
||||||
return gas;
|
return gas;
|
||||||
},
|
},
|
||||||
[ERC20BridgeSource.BancorV3]: () => 250e3, //revisit gas costs with wrap/unwrap
|
[ERC20BridgeSource.BancorV3]: () => 250e3, // revisit gas costs with wrap/unwrap
|
||||||
[ERC20BridgeSource.KyberDmm]: (fillData?: FillData) => {
|
[ERC20BridgeSource.KyberDmm]: (fillData?: FillData) => {
|
||||||
let gas = 170e3;
|
let gas = 170e3;
|
||||||
const path = (fillData as UniswapV2FillData).tokenAddressPath;
|
const path = (fillData as UniswapV2FillData).tokenAddressPath;
|
||||||
|
@ -209,7 +209,7 @@ export class MarketOperationUtils {
|
|||||||
gasAfter,
|
gasAfter,
|
||||||
],
|
],
|
||||||
] = await Promise.all([samplerPromise]);
|
] = await Promise.all([samplerPromise]);
|
||||||
console.log(dexQuotes);
|
|
||||||
// Log the gas metrics
|
// Log the gas metrics
|
||||||
_opts.samplerMetrics?.logGasDetails({ gasBefore, gasAfter });
|
_opts.samplerMetrics?.logGasDetails({ gasBefore, gasAfter });
|
||||||
_opts.samplerMetrics?.logBlockNumber(blockNumber);
|
_opts.samplerMetrics?.logBlockNumber(blockNumber);
|
||||||
|
@ -38,6 +38,7 @@ import {
|
|||||||
KYBER_DMM_ROUTER_BY_CHAIN_ID,
|
KYBER_DMM_ROUTER_BY_CHAIN_ID,
|
||||||
LIDO_INFO_BY_CHAIN,
|
LIDO_INFO_BY_CHAIN,
|
||||||
LIQUIDITY_PROVIDER_REGISTRY_BY_CHAIN_ID,
|
LIQUIDITY_PROVIDER_REGISTRY_BY_CHAIN_ID,
|
||||||
|
MAINNET_TOKENS,
|
||||||
MAKER_PSM_INFO_BY_CHAIN_ID,
|
MAKER_PSM_INFO_BY_CHAIN_ID,
|
||||||
MAX_UINT256,
|
MAX_UINT256,
|
||||||
MOONISWAP_REGISTRIES_BY_CHAIN_ID,
|
MOONISWAP_REGISTRIES_BY_CHAIN_ID,
|
||||||
@ -47,7 +48,6 @@ import {
|
|||||||
SELL_SOURCE_FILTER_BY_CHAIN_ID,
|
SELL_SOURCE_FILTER_BY_CHAIN_ID,
|
||||||
UNISWAPV1_ROUTER_BY_CHAIN_ID,
|
UNISWAPV1_ROUTER_BY_CHAIN_ID,
|
||||||
UNISWAPV3_CONFIG_BY_CHAIN_ID,
|
UNISWAPV3_CONFIG_BY_CHAIN_ID,
|
||||||
MAINNET_TOKENS,
|
|
||||||
ZERO_AMOUNT,
|
ZERO_AMOUNT,
|
||||||
} from './constants';
|
} from './constants';
|
||||||
import { getGeistInfoForPair } from './geist_utils';
|
import { getGeistInfoForPair } from './geist_utils';
|
||||||
@ -720,7 +720,7 @@ export class SamplerOperations {
|
|||||||
): SourceQuoteOperation<BancorFillData> {
|
): SourceQuoteOperation<BancorFillData> {
|
||||||
return new SamplerContractOperation({
|
return new SamplerContractOperation({
|
||||||
source: ERC20BridgeSource.BancorV3,
|
source: ERC20BridgeSource.BancorV3,
|
||||||
fillData: { networkAddress, path},
|
fillData: { networkAddress, path },
|
||||||
contract: this._samplerContract,
|
contract: this._samplerContract,
|
||||||
function: this._samplerContract.sampleSellsFromBancorV3,
|
function: this._samplerContract.sampleSellsFromBancorV3,
|
||||||
params: [MAINNET_TOKENS.WETH, networkInfoAddress, path, takerFillAmounts],
|
params: [MAINNET_TOKENS.WETH, networkInfoAddress, path, takerFillAmounts],
|
||||||
@ -735,12 +735,11 @@ export class SamplerOperations {
|
|||||||
): SourceQuoteOperation<BancorFillData> {
|
): SourceQuoteOperation<BancorFillData> {
|
||||||
return new SamplerContractOperation({
|
return new SamplerContractOperation({
|
||||||
source: ERC20BridgeSource.BancorV3,
|
source: ERC20BridgeSource.BancorV3,
|
||||||
fillData: { networkAddress, path},
|
fillData: { networkAddress, path },
|
||||||
contract: this._samplerContract,
|
contract: this._samplerContract,
|
||||||
function: this._samplerContract.sampleBuysFromBancorV3,
|
function: this._samplerContract.sampleBuysFromBancorV3,
|
||||||
params: [MAINNET_TOKENS.WETH, networkInfoAddress, path, makerFillAmounts],
|
params: [MAINNET_TOKENS.WETH, networkInfoAddress, path, makerFillAmounts],
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public getMooniswapSellQuotes(
|
public getMooniswapSellQuotes(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user