diff --git a/src/assets/networks/arbitrum-network.svg b/src/assets/networks/arbitrum.svg similarity index 86% rename from src/assets/networks/arbitrum-network.svg rename to src/assets/networks/arbitrum.svg index b2e875833c..867fd0a5b8 100644 --- a/src/assets/networks/arbitrum-network.svg +++ b/src/assets/networks/arbitrum.svg @@ -1,29 +1,20 @@ - - - - - - - - - - + + + + + + + + diff --git a/src/assets/networks/aurora-network.svg b/src/assets/networks/aurora-network.svg deleted file mode 100644 index fe8413f21e..0000000000 --- a/src/assets/networks/aurora-network.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/assets/networks/aurora.svg b/src/assets/networks/aurora.svg new file mode 100644 index 0000000000..f83cda4d7b --- /dev/null +++ b/src/assets/networks/aurora.svg @@ -0,0 +1,9 @@ + + + diff --git a/src/assets/networks/avalanche.svg b/src/assets/networks/avalanche.svg new file mode 100644 index 0000000000..15b6d5dea4 --- /dev/null +++ b/src/assets/networks/avalanche.svg @@ -0,0 +1,9 @@ + + + + diff --git a/src/assets/networks/bnb.svg b/src/assets/networks/bnb.svg new file mode 100644 index 0000000000..6b387233b9 --- /dev/null +++ b/src/assets/networks/bnb.svg @@ -0,0 +1,6 @@ + + + diff --git a/src/assets/networks/cronos-dark.svg b/src/assets/networks/cronos-dark.svg new file mode 100644 index 0000000000..6998b1ebc9 --- /dev/null +++ b/src/assets/networks/cronos-dark.svg @@ -0,0 +1,10 @@ + + + + diff --git a/src/assets/networks/cronos-network-dark.svg b/src/assets/networks/cronos-network-dark.svg deleted file mode 100644 index 18d2a1eb88..0000000000 --- a/src/assets/networks/cronos-network-dark.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/src/assets/networks/cronos-network.svg b/src/assets/networks/cronos-network.svg deleted file mode 100644 index 703862e588..0000000000 --- a/src/assets/networks/cronos-network.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/src/assets/networks/cronos.svg b/src/assets/networks/cronos.svg new file mode 100644 index 0000000000..c5c7f4f085 --- /dev/null +++ b/src/assets/networks/cronos.svg @@ -0,0 +1,10 @@ + + + + diff --git a/src/assets/networks/ethereum.svg b/src/assets/networks/ethereum.svg new file mode 100644 index 0000000000..7356e36429 --- /dev/null +++ b/src/assets/networks/ethereum.svg @@ -0,0 +1,27 @@ + + + + + + + + + + + + + diff --git a/src/assets/networks/fantom-network.png b/src/assets/networks/fantom-network.png deleted file mode 100644 index acad341478..0000000000 Binary files a/src/assets/networks/fantom-network.png and /dev/null differ diff --git a/src/assets/networks/fantom.svg b/src/assets/networks/fantom.svg new file mode 100644 index 0000000000..6dff22874b --- /dev/null +++ b/src/assets/networks/fantom.svg @@ -0,0 +1,13 @@ + + + + + + + + diff --git a/src/assets/networks/mainnet-network.svg b/src/assets/networks/mainnet-network.svg deleted file mode 100644 index eff286f0bf..0000000000 --- a/src/assets/networks/mainnet-network.svg +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/assets/networks/oasis-network.svg b/src/assets/networks/oasis.svg similarity index 100% rename from src/assets/networks/oasis-network.svg rename to src/assets/networks/oasis.svg diff --git a/src/assets/networks/optimism-network.svg b/src/assets/networks/optimism.svg similarity index 100% rename from src/assets/networks/optimism-network.svg rename to src/assets/networks/optimism.svg diff --git a/src/assets/networks/polygon.svg b/src/assets/networks/polygon.svg new file mode 100644 index 0000000000..a52e9fdb6d --- /dev/null +++ b/src/assets/networks/polygon.svg @@ -0,0 +1,12 @@ + + + + + + diff --git a/src/assets/networks/solana-network-dark.svg b/src/assets/networks/solana-dark.svg similarity index 91% rename from src/assets/networks/solana-network-dark.svg rename to src/assets/networks/solana-dark.svg index 0ba4073e5e..1acde6183e 100644 --- a/src/assets/networks/solana-network-dark.svg +++ b/src/assets/networks/solana-dark.svg @@ -1,10 +1,17 @@ + fill="url(#paint0_linear_174_4403)" + /> - + @@ -13,4 +20,4 @@ - \ No newline at end of file + diff --git a/src/assets/networks/solana-network.svg b/src/assets/networks/solana.svg similarity index 100% rename from src/assets/networks/solana-network.svg rename to src/assets/networks/solana.svg diff --git a/src/assets/networks/velas-network.png b/src/assets/networks/velas-network.png deleted file mode 100644 index 64299fd107..0000000000 Binary files a/src/assets/networks/velas-network.png and /dev/null differ diff --git a/src/constants/networks/arbitrum.ts b/src/constants/networks/arbitrum.ts index c071647a89..70f9a6d3e7 100644 --- a/src/constants/networks/arbitrum.ts +++ b/src/constants/networks/arbitrum.ts @@ -1,7 +1,7 @@ import { ChainId } from '@kyberswap/ks-sdk-core' import EthereumLogo from 'assets/images/ethereum-logo.png' -import ARBITRUM from 'assets/networks/arbitrum-network.svg' +import arbitrumIcon from 'assets/networks/arbitrum.svg' import { EVMNetworkInfo } from 'constants/networks/type' const EMPTY_ARRAY: any[] = [] @@ -15,7 +15,7 @@ const arbitrumInfo: EVMNetworkInfo = { poolFarmRoute: 'arbitrum', aggregatorRoute: 'arbitrum', name: 'Arbitrum', - icon: ARBITRUM, + icon: arbitrumIcon, iconDark: NOT_SUPPORT, iconSelected: NOT_SUPPORT, iconDarkSelected: NOT_SUPPORT, diff --git a/src/constants/networks/aurora.ts b/src/constants/networks/aurora.ts index d2c57244ae..2610a22092 100644 --- a/src/constants/networks/aurora.ts +++ b/src/constants/networks/aurora.ts @@ -1,7 +1,7 @@ import { ChainId } from '@kyberswap/ks-sdk-core' import EthereumLogo from 'assets/images/ethereum-logo.png' -import AURORA from 'assets/networks/aurora-network.svg' +import auroraIcon from 'assets/networks/aurora.svg' import { EVMNetworkInfo } from 'constants/networks/type' const EMPTY = '' @@ -16,7 +16,7 @@ const auroraInfo: EVMNetworkInfo = { poolFarmRoute: 'aurora', aggregatorRoute: 'aurora', name: 'Aurora', - icon: AURORA, + icon: auroraIcon, iconDark: NOT_SUPPORT, iconSelected: NOT_SUPPORT, iconDarkSelected: NOT_SUPPORT, diff --git a/src/constants/networks/avax.ts b/src/constants/networks/avax.ts index 30d026dc1f..0c96cda514 100644 --- a/src/constants/networks/avax.ts +++ b/src/constants/networks/avax.ts @@ -1,5 +1,6 @@ import { ChainId } from '@kyberswap/ks-sdk-core' +import avalancheIcon from 'assets/networks/avalanche.svg' import { EVMNetworkInfo } from 'constants/networks/type' const NOT_SUPPORT = null @@ -12,7 +13,7 @@ const avaxInfo: EVMNetworkInfo = { poolFarmRoute: 'avalanche', aggregatorRoute: 'avalanche', name: 'Avalanche', - icon: 'https://storage.googleapis.com/ks-setting-a3aa20b7/31645e2e-9c40-4fdf-9ddf-50d24e5399e4.svg', + icon: avalancheIcon, iconDark: NOT_SUPPORT, iconSelected: NOT_SUPPORT, iconDarkSelected: NOT_SUPPORT, diff --git a/src/constants/networks/bnb.ts b/src/constants/networks/bnb.ts index ebf59fdc6f..3a0cc2bbe8 100644 --- a/src/constants/networks/bnb.ts +++ b/src/constants/networks/bnb.ts @@ -1,6 +1,7 @@ import { ChainId } from '@kyberswap/ks-sdk-core' import BnbLogo from 'assets/images/bnb-logo.png' +import bnbIcon from 'assets/networks/bnb.svg' import { EVMNetworkInfo } from 'constants/networks/type' const NOT_SUPPORT = null @@ -13,7 +14,7 @@ const bnbInfo: EVMNetworkInfo = { poolFarmRoute: 'bsc', aggregatorRoute: 'bsc', name: 'BNB Chain', - icon: 'https://storage.googleapis.com/ks-setting-a3aa20b7/a44a3dbc-9150-4278-8354-7b5953f9a1ab.svg', + icon: bnbIcon, iconDark: NOT_SUPPORT, iconSelected: NOT_SUPPORT, iconDarkSelected: NOT_SUPPORT, diff --git a/src/constants/networks/cronos.ts b/src/constants/networks/cronos.ts index e37a498175..c9d857913e 100644 --- a/src/constants/networks/cronos.ts +++ b/src/constants/networks/cronos.ts @@ -1,7 +1,7 @@ import { ChainId } from '@kyberswap/ks-sdk-core' -import CRONOS_DARK from 'assets/networks/cronos-network-dark.svg' -import CRONOS from 'assets/networks/cronos-network.svg' +import cronosDarkIcon from 'assets/networks/cronos-dark.svg' +import cronosIcon from 'assets/networks/cronos.svg' import CronosLogo from 'assets/svg/cronos-token-logo.svg' import { EVMNetworkInfo } from 'constants/networks/type' @@ -16,10 +16,10 @@ const cronosInfo: EVMNetworkInfo = { poolFarmRoute: 'cronos', aggregatorRoute: 'cronos', name: 'Cronos', - icon: CRONOS, - iconDark: CRONOS_DARK, - iconDarkSelected: CRONOS, - iconSelected: CRONOS, + icon: cronosIcon, + iconDark: cronosDarkIcon, + iconDarkSelected: cronosIcon, + iconSelected: cronosIcon, defaultBlockSubgraph: 'https://cronos-graph.kyberengineering.io/subgraphs/name/kybernetwork/cronos-blocks', etherscanUrl: 'https://cronoscan.com', etherscanName: 'Cronos explorer', diff --git a/src/constants/networks/ethereum.ts b/src/constants/networks/ethereum.ts index a04d819cfd..e33a224e25 100644 --- a/src/constants/networks/ethereum.ts +++ b/src/constants/networks/ethereum.ts @@ -1,7 +1,7 @@ import { ChainId } from '@kyberswap/ks-sdk-core' import EthereumLogo from 'assets/images/ethereum-logo.png' -import Mainnet from 'assets/networks/mainnet-network.svg' +import ethereumIcon from 'assets/networks/ethereum.svg' import { EnvKeys, KYBER_DAO_STATS_API } from 'constants/env' import { EVMNetworkInfo } from 'constants/networks/type' @@ -17,7 +17,7 @@ const ethereumInfo: EVMNetworkInfo = { poolFarmRoute: 'ethereum', aggregatorRoute: 'ethereum', name: 'Ethereum', - icon: Mainnet, + icon: ethereumIcon, iconDark: NOT_SUPPORT, iconSelected: NOT_SUPPORT, iconDarkSelected: NOT_SUPPORT, diff --git a/src/constants/networks/fantom.ts b/src/constants/networks/fantom.ts index d1394e836c..648bd8ca48 100644 --- a/src/constants/networks/fantom.ts +++ b/src/constants/networks/fantom.ts @@ -1,5 +1,6 @@ import { ChainId } from '@kyberswap/ks-sdk-core' +import fantomIcon from 'assets/networks/fantom.svg' import { EVMNetworkInfo } from 'constants/networks/type' const EMPTY = '' @@ -14,7 +15,7 @@ const fantomInfo: EVMNetworkInfo = { poolFarmRoute: 'fantom', aggregatorRoute: 'fantom', name: 'Fantom', - icon: 'https://storage.googleapis.com/ks-setting-a3aa20b7/779366f0-c120-4827-ac5e-9ed77ca202b91692929044916.png', + icon: fantomIcon, iconDark: NOT_SUPPORT, iconSelected: NOT_SUPPORT, iconDarkSelected: NOT_SUPPORT, diff --git "a/src/constants/networks/g\303\266rli.ts" "b/src/constants/networks/g\303\266rli.ts" index 59a9d97004..11d0f893b5 100644 --- "a/src/constants/networks/g\303\266rli.ts" +++ "b/src/constants/networks/g\303\266rli.ts" @@ -1,7 +1,7 @@ import { ChainId } from '@kyberswap/ks-sdk-core' import EthereumLogo from 'assets/images/ethereum-logo.png' -import Mainnet from 'assets/networks/mainnet-network.svg' +import ethereumIcon from 'assets/networks/ethereum.svg' import { EnvKeys } from 'constants/env' import { EVMNetworkInfo } from 'constants/networks/type' @@ -17,7 +17,7 @@ const görliInfo: EVMNetworkInfo = { poolFarmRoute: EMPTY, aggregatorRoute: EMPTY, name: 'Görli', - icon: Mainnet, + icon: ethereumIcon, iconDark: NOT_SUPPORT, iconSelected: NOT_SUPPORT, iconDarkSelected: NOT_SUPPORT, diff --git a/src/constants/networks/matic.ts b/src/constants/networks/matic.ts index d402f948b4..e5e884cc26 100644 --- a/src/constants/networks/matic.ts +++ b/src/constants/networks/matic.ts @@ -1,5 +1,6 @@ import { ChainId } from '@kyberswap/ks-sdk-core' +import polygonIcon from 'assets/networks/polygon.svg' import { EVMNetworkInfo } from 'constants/networks/type' const NOT_SUPPORT = null @@ -12,7 +13,7 @@ const maticInfo: EVMNetworkInfo = { poolFarmRoute: 'polygon', aggregatorRoute: 'polygon', name: 'Polygon PoS', - icon: 'https://storage.googleapis.com/ks-setting-a3aa20b7/78dfb4fb-089b-431d-8725-b5de2cea0bfc.svg', + icon: polygonIcon, iconDark: NOT_SUPPORT, iconSelected: NOT_SUPPORT, iconDarkSelected: NOT_SUPPORT, diff --git a/src/constants/networks/optimism.ts b/src/constants/networks/optimism.ts index 3f5eedeb36..0ac6f7633d 100644 --- a/src/constants/networks/optimism.ts +++ b/src/constants/networks/optimism.ts @@ -1,7 +1,7 @@ import { ChainId } from '@kyberswap/ks-sdk-core' import EthereumLogo from 'assets/images/ethereum-logo.png' -import OPTIMISM from 'assets/networks/optimism-network.svg' +import optimismIcon from 'assets/networks/optimism.svg' import { EVMNetworkInfo } from 'constants/networks/type' const EMPTY_ARRAY: any[] = [] @@ -15,7 +15,7 @@ const optimismInfo: EVMNetworkInfo = { poolFarmRoute: 'optimism', aggregatorRoute: 'optimism', name: 'Optimism', - icon: OPTIMISM, + icon: optimismIcon, iconDark: NOT_SUPPORT, iconSelected: NOT_SUPPORT, iconDarkSelected: NOT_SUPPORT, diff --git a/src/constants/networks/solana-devnet.ts b/src/constants/networks/solana-devnet.ts index 39b3e011e8..002f0dae8c 100644 --- a/src/constants/networks/solana-devnet.ts +++ b/src/constants/networks/solana-devnet.ts @@ -2,7 +2,7 @@ import { ChainId } from '@kyberswap/ks-sdk-core' import { WalletAdapterNetwork } from '@solana/wallet-adapter-base' import { PublicKey } from '@solana/web3.js' -import Solana from 'assets/networks/solana-network.svg' +import solanaIcon from 'assets/networks/solana.svg' import { SolanaNetworkInfo } from 'constants/networks/type' export const SelectedNetwork = WalletAdapterNetwork.Mainnet @@ -15,8 +15,8 @@ const solanaInfo: SolanaNetworkInfo = { priceRoute: 'solana', aggregatorRoute: 'solana', name: 'Solana Devnet', - icon: Solana, - iconSelected: Solana, + icon: solanaIcon, + iconSelected: solanaIcon, iconDark: NOT_SUPPORT, iconDarkSelected: NOT_SUPPORT, etherscanUrl: 'https://solscan.io', @@ -25,7 +25,7 @@ const solanaInfo: SolanaNetworkInfo = { nativeToken: { symbol: 'SOL', name: 'SOL', - logo: Solana, + logo: solanaIcon, decimal: 9, // Fee for Solana: 5000 lamport * signature = 5000 * 10^-9 SOL * signature // Rent fee for set up account: 0.00203928 SOL diff --git a/src/constants/networks/solana.ts b/src/constants/networks/solana.ts index c5352dbf28..6a1b4db4d1 100644 --- a/src/constants/networks/solana.ts +++ b/src/constants/networks/solana.ts @@ -2,7 +2,7 @@ import { ChainId } from '@kyberswap/ks-sdk-core' import { WalletAdapterNetwork } from '@solana/wallet-adapter-base' import { PublicKey } from '@solana/web3.js' -import Solana from 'assets/networks/solana-network.svg' +import solanaIcon from 'assets/networks/solana.svg' import { SolanaNetworkInfo } from 'constants/networks/type' export const SelectedNetwork = WalletAdapterNetwork.Mainnet @@ -15,8 +15,8 @@ const solanaInfo: SolanaNetworkInfo = { priceRoute: 'solana', aggregatorRoute: 'solana', name: 'Solana', - icon: Solana, - iconSelected: Solana, + icon: solanaIcon, + iconSelected: solanaIcon, iconDark: NOT_SUPPORT, iconDarkSelected: NOT_SUPPORT, etherscanUrl: 'https://solscan.io', @@ -25,7 +25,7 @@ const solanaInfo: SolanaNetworkInfo = { nativeToken: { symbol: 'SOL', name: 'SOL', - logo: Solana, + logo: solanaIcon, decimal: 9, // Fee for Solana: 5000 lamport * signature = 5000 * 10^-9 SOL * signature // Rent fee for set up account: 0.00203928 SOL diff --git a/src/pages/TrueSightV2/components/shareContent/TokenAnalysisListShareContent.tsx b/src/pages/TrueSightV2/components/shareContent/TokenAnalysisListShareContent.tsx index 3f902a72f4..1d733371e5 100644 --- a/src/pages/TrueSightV2/components/shareContent/TokenAnalysisListShareContent.tsx +++ b/src/pages/TrueSightV2/components/shareContent/TokenAnalysisListShareContent.tsx @@ -42,7 +42,7 @@ export default function TokenAnalysisListShareContent({ Today, {dayjs(Date.now()).format('DD/MM/YYYY')} - + {mobileMode ? ( <>