Skip to content

Commit

Permalink
fix compiling error
Browse files Browse the repository at this point in the history
  • Loading branch information
jsy1218 committed Aug 27, 2024
1 parent 7c3d535 commit 7c8f3f8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
2 changes: 2 additions & 0 deletions lib/handlers/injector-sor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ export abstract class InjectorSOR<Router, QueryParams> extends Injector<
process.env.TENDERLY_NODE_API_KEY!,
v2PoolProvider,
v3PoolProvider,
v4PoolProvider,
provider,
portionProvider,
undefined,
Expand All @@ -414,6 +415,7 @@ export abstract class InjectorSOR<Router, QueryParams> extends Injector<
provider,
v2PoolProvider,
v3PoolProvider,
v4PoolProvider,
portionProvider
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import { IOnChainQuoteProvider, log, metric, MetricLoggerUnit, OnChainQuotes } from '@uniswap/smart-order-router'
import { MixedRoute, V2Route, V3Route } from '@uniswap/smart-order-router/build/main/routers'
import {

Check failure on line 1 in lib/handlers/quote/provider-migration/v3/traffic-switch-on-chain-quote-provider.ts

View workflow job for this annotation

GitHub Actions / Prettier

lib/handlers/quote/provider-migration/v3/traffic-switch-on-chain-quote-provider.ts#L1

There are issues with this file's formatting, please run Prettier to fix the errors
IOnChainQuoteProvider,
log,
metric,
MetricLoggerUnit,
OnChainQuotes,
SupportedExactOutRoutes,
SupportedRoutes
} from '@uniswap/smart-order-router'
import { ChainId, Currency, CurrencyAmount } from '@uniswap/sdk-core'
import { ProviderConfig } from '@uniswap/smart-order-router/build/main/providers/provider'
import { QUOTE_PROVIDER_TRAFFIC_SWITCH_CONFIGURATION } from '../../util/quote-provider-traffic-switch-configuration'
Expand Down Expand Up @@ -35,7 +42,7 @@ export class TrafficSwitchOnChainQuoteProvider implements IOnChainQuoteProvider
this.chainId = props.chainId
}

async getQuotesManyExactIn<TRoute extends V3Route | V2Route | MixedRoute>(
async getQuotesManyExactIn<TRoute extends SupportedRoutes>(
amountIns: CurrencyAmount<Currency>[],
routes: TRoute[],
providerConfig?: ProviderConfig
Expand Down Expand Up @@ -117,7 +124,7 @@ export class TrafficSwitchOnChainQuoteProvider implements IOnChainQuoteProvider
}
}

async getQuotesManyExactOut<TRoute extends V3Route>(
async getQuotesManyExactOut<TRoute extends SupportedExactOutRoutes>(
amountOuts: CurrencyAmount<Currency>[],
routes: TRoute[],
providerConfig?: ProviderConfig
Expand Down Expand Up @@ -211,7 +218,7 @@ export class TrafficSwitchOnChainQuoteProvider implements IOnChainQuoteProvider
}
}

private compareQuotes<TRoute extends V3Route | V2Route | MixedRoute>(
private compareQuotes<TRoute extends SupportedRoutes>(
tradeTypeMetric: string,
currentRoutesWithQuotes: OnChainQuotes<TRoute>,
targetRoutesWithQuotes: OnChainQuotes<TRoute>
Expand Down

0 comments on commit 7c8f3f8

Please sign in to comment.