Skip to content

Commit

Permalink
chore: remove unused hooks, utils, components (Uniswap#5524)
Browse files Browse the repository at this point in the history
  • Loading branch information
vm authored Dec 2, 2022
1 parent d5e676e commit 91157b7
Show file tree
Hide file tree
Showing 23 changed files with 15 additions and 440 deletions.
75 changes: 0 additions & 75 deletions src/components/swap/SwapWarningDropdown.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion src/hooks/useStablecoinPrice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { CUSD_CELO, DAI_OPTIMISM, USDC_ARBITRUM, USDC_MAINNET, USDC_POLYGON } fr

// Stablecoin amounts used when calculating spot price for a given currency.
// The amount is large enough to filter low liquidity pairs.
export const STABLECOIN_AMOUNT_OUT: { [chainId: number]: CurrencyAmount<Token> } = {
const STABLECOIN_AMOUNT_OUT: { [chainId: number]: CurrencyAmount<Token> } = {
[SupportedChainId.MAINNET]: CurrencyAmount.fromRawAmount(USDC_MAINNET, 100_000e6),
[SupportedChainId.ARBITRUM_ONE]: CurrencyAmount.fromRawAmount(USDC_ARBITRUM, 10_000e6),
[SupportedChainId.OPTIMISM]: CurrencyAmount.fromRawAmount(DAI_OPTIMISM, 10_000e18),
Expand Down
128 changes: 0 additions & 128 deletions src/hooks/useTokenDetailPageQuery.tsx

This file was deleted.

85 changes: 0 additions & 85 deletions src/hooks/useTokenPrice.ts

This file was deleted.

84 changes: 0 additions & 84 deletions src/hooks/useTokenRelevantResources.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/lib/hooks/useCurrencyLogoURIs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function getNativeLogoURI(chainId: SupportedChainId = SupportedChainId.MA
}
}

export function getTokenLogoURI(address: string, chainId: SupportedChainId = SupportedChainId.MAINNET): string | void {
function getTokenLogoURI(address: string, chainId: SupportedChainId = SupportedChainId.MAINNET): string | void {
const networkName = chainIdToNetworkName(chainId)
const networksWithUrls = [SupportedChainId.ARBITRUM_ONE, SupportedChainId.MAINNET, SupportedChainId.OPTIMISM]
if (networksWithUrls.includes(chainId)) {
Expand Down
Loading

0 comments on commit 91157b7

Please sign in to comment.