From a6f970452ac274b4e4b9f970730ac244f295c26b Mon Sep 17 00:00:00 2001 From: bayge Date: Sat, 14 Dec 2024 03:17:43 +1030 Subject: [PATCH] Revert "feat: display USDC instead of fUSDC on mainnet (#218)" This reverts commit 97aa4de663a8741bfa9007f7ce0707e5c4c832c3. --- web/src/config/tokens.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/web/src/config/tokens.ts b/web/src/config/tokens.ts index 66b962b5..826bc24b 100644 --- a/web/src/config/tokens.ts +++ b/web/src/config/tokens.ts @@ -7,17 +7,10 @@ import { useSwapStore } from "@/stores/useSwapStore"; import { EmptyToken } from "@/lib/utils"; import { useStakeStore } from "@/stores/useStakeStore"; import { useChainId } from "wagmi"; -import { allChains, superpositionMainnet, useChain } from "./chains"; +import { allChains, useChain } from "./chains"; export type ChainIdTypes = (typeof allChains)[number]["id"]; -function getDisplaySymbol(symbol: string, chainId: number): string { - if (chainId === superpositionMainnet.id && symbol.toLowerCase() === "fusdc") { - return "USDC"; - } - return symbol; -} - export type Token = { address: `0x${string}`; symbol: string; @@ -99,7 +92,6 @@ export function useTokens(token?: "default" | string) { ...t.token, address: t.token.address as `0x${string}`, icon: t.token.image, - symbol: getDisplaySymbol(t.token.symbol, chainId), ...(isGasToken(t.token.symbol) ? { abi: WETH10, @@ -113,7 +105,7 @@ export function useTokens(token?: "default" | string) { }), {} as { [symbol: string]: Token }, ); - }, [tokensData, fusdcData_, isGasToken, chainId]); + }, [tokensData, fusdcData_, isGasToken]); const isTokens = fusdcData_ && tokensData; const DefaultToken = isTokens