Skip to content

Commit

Permalink
YODL: Fix imports that cause type error when compiled by webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
lift0xff committed May 21, 2024
1 parent 2057547 commit c04ae72
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 19 deletions.
2 changes: 0 additions & 2 deletions src/providers/caching-token-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import {
DAI_MOONBEAM,
DAI_OPTIMISM,
DAI_OPTIMISM_GOERLI,
DAI_OPTIMISM_SEPOLIA,
DAI_POLYGON_MUMBAI,
ETH_BNB,
ITokenProvider,
Expand Down Expand Up @@ -98,7 +97,6 @@ export const CACHE_SEED_TOKENS: {
USDC: USDC_OPTIMISM_SEPOLIA,
USDT: USDT_OPTIMISM_SEPOLIA,
WBTC: WBTC_OPTIMISM_SEPOLIA,
DAI: DAI_OPTIMISM_SEPOLIA,
},
[ChainId.ARBITRUM_ONE]: {
USDC: USDC_ARBITRUM,
Expand Down
9 changes: 0 additions & 9 deletions src/providers/token-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,6 @@ export const WBTC_OPTIMISM_SEPOLIA = new Token(
'WBTC',
'Wrapped BTC'
);
export const DAI_OPTIMISM_SEPOLIA = new Token(
ChainId.OPTIMISM_SEPOLIA,
'0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1',
18,
'DAI',
'Dai Stablecoin'
);

export const USDC_ARBITRUM = new Token(
ChainId.ARBITRUM_ONE,
Expand Down Expand Up @@ -839,8 +832,6 @@ export const DAI_ON = (chainId: ChainId): Token => {
return DAI_OPTIMISM;
case ChainId.OPTIMISM_GOERLI:
return DAI_OPTIMISM_GOERLI;
case ChainId.OPTIMISM_SEPOLIA:
return DAI_OPTIMISM_SEPOLIA;
case ChainId.ARBITRUM_ONE:
return DAI_ARBITRUM;
case ChainId.ARBITRUM_GOERLI:
Expand Down
10 changes: 4 additions & 6 deletions src/routers/alpha-router/functions/get-candidate-pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@ import { FeeAmount } from '@uniswap/v3-sdk';
import _ from 'lodash';

import {
DAI_OPTIMISM_SEPOLIA,
ITokenListProvider,
IV2SubgraphProvider,
USDC_ARBITRUM_SEPOLIA,
USDC_OPTIMISM_SEPOLIA,
USDT_OPTIMISM_SEPOLIA,
V2SubgraphPool,
WBTC_OPTIMISM_SEPOLIA
} from '../../../providers';
import {
USDC_ARBITRUM_SEPOLIA,
USDC_OPTIMISM_SEPOLIA,
USDT_OPTIMISM_SEPOLIA,
WBTC_OPTIMISM_SEPOLIA,
CELO,
CELO_ALFAJORES,
CEUR_CELO,
Expand Down Expand Up @@ -155,7 +154,6 @@ const baseTokensByChain: { [chainId in ChainId]?: Token[] } = {
WBTC_OPTIMISM_GOERLI,
],
[ChainId.OPTIMISM_SEPOLIA]: [
DAI_OPTIMISM_SEPOLIA,
USDC_OPTIMISM_SEPOLIA,
USDT_OPTIMISM_SEPOLIA,
WBTC_OPTIMISM_SEPOLIA,
Expand Down
2 changes: 0 additions & 2 deletions src/routers/alpha-router/gas-models/gas-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {
DAI_MAINNET,
DAI_OPTIMISM,
DAI_OPTIMISM_GOERLI,
DAI_OPTIMISM_SEPOLIA,
DAI_POLYGON_MUMBAI,
DAI_SEPOLIA, USDB_BLAST,
USDC_ARBITRUM,
Expand Down Expand Up @@ -91,7 +90,6 @@ export const usdGasTokensByChain: { [chainId in ChainId]?: Token[] } = {
USDT_OPTIMISM_GOERLI,
],
[ChainId.OPTIMISM_SEPOLIA]: [
DAI_OPTIMISM_SEPOLIA,
USDC_OPTIMISM_SEPOLIA,
USDT_OPTIMISM_SEPOLIA,
],
Expand Down

0 comments on commit c04ae72

Please sign in to comment.