diff --git a/.env.production b/.env.production index 25b1708a6..fb764888a 100644 --- a/.env.production +++ b/.env.production @@ -139,4 +139,18 @@ REACT_APP_NETWORK_INFO_VELAS_SUBGRAPH_BLOCK_URL=https://velas-graph.kyberenginee REACT_APP_NETWORK_INFO_VELAS_ETHERSCAN_URL=https://evmexplorer.velas.com REACT_APP_NETWORK_INFO_VELAS_KNC_ADDRESS=0xfe56d5892bdffc7bf58f2e84be1b2c32d21c308b REACT_APP_NETWORK_INFO_VELAS_WETH_ADDRESS=0xc579D1f3CF86749E05CD06f7ADe17856c2CE3126 -REACT_APP_NETWORK_INFO_VELAS_DEFAULT_START_TIME=1630313700 +REACT_APP_NETWORK_INFO_VELAS_DEFAULT_START_TIME=1646672400 +#OASIS +REACT_APP_NETWORK_INFO_OASIS_CHAIN_ID=42262 +REACT_APP_NETWORK_INFO_OASIS_LIST_ORDER=11 +REACT_APP_NETWORK_INFO_OASIS_NAME=Oasis +REACT_APP_NETWORK_INFO_OASIS_URL_KEY=oasis +REACT_APP_NETWORK_INFO_OASIS_DMM_SWAP_URL=https://kyberswap.com/#/ +REACT_APP_NETWORK_INFO_OASIS_FACTORY_ADDRESS=0xD9bfE9979e9CA4b2fe84bA5d4Cf963bBcB376974 +REACT_APP_NETWORK_INFO_OASIS_SUBGRAPH_NAME=kybernetwork/kyberswap-exchange-oasis +REACT_APP_NETWORK_INFO_OASIS_SUBGRAPH_URL=https://oasis-graph.kyberengineering.io/subgraphs/name/kybernetwork/kyberswap-exchange-oasis +REACT_APP_NETWORK_INFO_OASIS_SUBGRAPH_BLOCK_URL=https://oasis-graph.kyberengineering.io/subgraphs/name/kybernetwork/oasis-blocks +REACT_APP_NETWORK_INFO_OASIS_ETHERSCAN_URL=https://explorer.emerald.oasis.dev +REACT_APP_NETWORK_INFO_OASIS_KNC_ADDRESS=0xfe56d5892bdffc7bf58f2e84be1b2c32d21c308b +REACT_APP_NETWORK_INFO_OASIS_WETH_ADDRESS=0x21C718C22D52d0F3a789b752D4c2fD5908a8A733 +REACT_APP_NETWORK_INFO_OASIS_DEFAULT_START_TIME=1647932400 diff --git a/.env.testnet b/.env.testnet index 1fe18ad16..f1170152f 100644 --- a/.env.testnet +++ b/.env.testnet @@ -140,3 +140,17 @@ REACT_APP_NETWORK_INFO_VELAS_ETHERSCAN_URL=https://evmexplorer.velas.com REACT_APP_NETWORK_INFO_VELAS_KNC_ADDRESS=0xfe56d5892bdffc7bf58f2e84be1b2c32d21c308b REACT_APP_NETWORK_INFO_VELAS_WETH_ADDRESS=0xc579D1f3CF86749E05CD06f7ADe17856c2CE3126 REACT_APP_NETWORK_INFO_VELAS_DEFAULT_START_TIME=1630313700 +#OASIS +REACT_APP_NETWORK_INFO_OASIS_CHAIN_ID=43113 +REACT_APP_NETWORK_INFO_OASIS_LIST_ORDER=11 +REACT_APP_NETWORK_INFO_OASIS_NAME=Oasis +REACT_APP_NETWORK_INFO_OASIS_URL_KEY=oasis +REACT_APP_NETWORK_INFO_OASIS_DMM_SWAP_URL=https://kyberswap.com/#/ +REACT_APP_NETWORK_INFO_OASIS_FACTORY_ADDRESS=0xD9bfE9979e9CA4b2fe84bA5d4Cf963bBcB376974 +REACT_APP_NETWORK_INFO_OASIS_SUBGRAPH_NAME=kybernetwork/kyberswap-exchange-oasis +REACT_APP_NETWORK_INFO_OASIS_SUBGRAPH_URL=https://oasis-graph.kyberengineering.io/subgraphs/name/kybernetwork/kyberswap-exchange-oasis +REACT_APP_NETWORK_INFO_OASIS_SUBGRAPH_BLOCK_URL=https://oasis-graph.kyberengineering.io/subgraphs/name/kybernetwork/oasis-blocks +REACT_APP_NETWORK_INFO_OASIS_ETHERSCAN_URL=https://explorer.emerald.oasis.dev +REACT_APP_NETWORK_INFO_OASIS_KNC_ADDRESS=0xfe56d5892bdffc7bf58f2e84be1b2c32d21c308b +REACT_APP_NETWORK_INFO_OASIS_WETH_ADDRESS=0x21C718C22D52d0F3a789b752D4c2fD5908a8A733 +REACT_APP_NETWORK_INFO_OASIS_DEFAULT_START_TIME=1647932400 diff --git a/src/assets/networks/oasis-network.svg b/src/assets/networks/oasis-network.svg new file mode 100644 index 000000000..5688a015f --- /dev/null +++ b/src/assets/networks/oasis-network.svg @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/src/assets/oasis.svg b/src/assets/oasis.svg new file mode 100644 index 000000000..5688a015f --- /dev/null +++ b/src/assets/oasis.svg @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/src/components/TokenLogo/index.js b/src/components/TokenLogo/index.js index 2df773f71..6284ef486 100644 --- a/src/components/TokenLogo/index.js +++ b/src/components/TokenLogo/index.js @@ -12,6 +12,7 @@ import ARBITRUM_TOKEN_LIST from '../../constants/tokenLists/arbitrum.tokenlist' import BTTC_TOKEN_LIST from '../../constants/tokenLists/bttc.tokenlist' import VELAS_TOKEN_LIST from '../../constants/tokenLists/velas.tokenlist' import AURORA_TOKEN_LIST from '../../constants/tokenLists/aurora.tokenlist' +import OASIS_TOKEN_LIST from '../../constants/tokenLists/oasis.tokenlist' import { isAddress } from '../../utils/index.js' import PlaceHolder from '../../assets/placeholder.png' import EthereumLogo from '../../assets/eth.png' @@ -22,6 +23,7 @@ import FantomLogo from '../../assets/networks/fantom-network.png' import CronosLogo from '../../assets/cronos.svg' import VelasLogo from '../../assets/velas.png' import AuroraLogo from '../../assets/aurora.svg' +import OasisLogo from '../../assets/oasis.svg' import { getMaticTokenLogoURL } from '../../utils/maticTokenMapping' import { getMumbaiTokenLogoURL } from '../../utils/mumbaiTokenMapping' import { getBscTestnetTokenLogoURL } from '../../utils/bscTestnetTokenMapping' @@ -206,6 +208,19 @@ export function getNativeTokenLogo({ size = '24px', chainId, ...rest }) { /> ) + case ChainId.OASIS: + return ( + + + + ) default: return ( @@ -381,6 +396,13 @@ export default function TokenLogo({ address, header = false, size = '24px', ...r path = 'error' break + case ChainId.OASIS: + if (formattedAddress && OASIS_TOKEN_LIST[formattedAddress]) { + return getCustomLogo({ address, src: OASIS_TOKEN_LIST[formattedAddress].logoURI, size, setError, ...rest }) + } + path = 'error' + break + default: if (formattedAddress && ETHEREUM_TOKEN_LIST[formattedAddress]?.logoURI) { return getCustomLogo({ diff --git a/src/constants/index.js b/src/constants/index.js index b3e2b70d2..626da34c9 100644 --- a/src/constants/index.js +++ b/src/constants/index.js @@ -80,20 +80,22 @@ export const ChainId = { BTTC: 199, VELAS: 106, AURORA: 1313161554, + OASIS: 42262, } -export const ANALYTICS_URLS = { - 1: 'https://analytics.kyberswap.com', - 137: 'https://polygon-analytics.kyberswap.com', - 56: 'https://bsc-analytics.kyberswap.com', - 43114: 'https://avax-analytics.kyberswap.com', - 250: 'https://fantom-analytics.kyberswap.com', - 25: 'https://cronos-analytics.kyberswap.com', - [ChainId.ARBITRUM]: 'https://arbitrum-analytics.kyberswap.com', - [ChainId.BTTC]: 'https://bttc-analytics.kyberswap.com', - [ChainId.VELAS]: 'https://velas-analytics.kyberswap.com', - [ChainId.AURORA]: 'https://aurora-analytics.kyberswap.com', -} +// export const ANALYTICS_URLS = { +// 1: 'https://analytics.kyberswap.com', +// 137: 'https://polygon-analytics.kyberswap.com', +// 56: 'https://bsc-analytics.kyberswap.com', +// 43114: 'https://avax-analytics.kyberswap.com', +// 250: 'https://fantom-analytics.kyberswap.com', +// 25: 'https://cronos-analytics.kyberswap.com', +// [ChainId.ARBITRUM]: 'https://arbitrum-analytics.kyberswap.com', +// [ChainId.BTTC]: 'https://bttc-analytics.kyberswap.com', +// [ChainId.VELAS]: 'https://velas-analytics.kyberswap.com', +// [ChainId.AURORA]: 'https://aurora-analytics.kyberswap.com', +// [ChainId.OASIS]: 'https://oasis-analytics.kyberswap.com', +// } // This variable to handle crazy APR which it can be wrong calculations or a bug // But now, for FOMO of Pagxy, updated this to 10000 (before we set 2000 for it) diff --git a/src/constants/networks.js b/src/constants/networks.js index 75e75a7be..2acbd5498 100644 --- a/src/constants/networks.js +++ b/src/constants/networks.js @@ -8,6 +8,7 @@ import Arbitrum from '../assets/networks/arbitrum-network.svg' import BitTorrent from '../assets/networks/bittorrent-network.png' import Velas from '../assets/networks/velas-network.png' import Aurora from '../assets/networks/aurora-network.svg' +import Oasis from '../assets/networks/oasis-network.svg' import { ChainId } from '.' export const NETWORK_ICON = { @@ -26,4 +27,5 @@ export const NETWORK_ICON = { [ChainId.BTTC]: BitTorrent, [ChainId.VELAS]: Velas, [ChainId.AURORA]: Aurora, + [ChainId.OASIS]: Oasis, } diff --git a/src/constants/tokenLists/oasis.tokenlist.js b/src/constants/tokenLists/oasis.tokenlist.js new file mode 100644 index 000000000..d13ffb92c --- /dev/null +++ b/src/constants/tokenLists/oasis.tokenlist.js @@ -0,0 +1,333 @@ +const OASIS_TOKEN_ARRAY = [ + { + chainId: 42262, + address: '0xd1dF9CE4b6159441D18BD6887dbd7320a8D52a05', + symbol: 'FTP', + name: 'Fountain Protocol', + decimals: 18, + logoURI: 'https://assets.coingecko.com/coins/images/24041/small/logo-black.png?1646138615', + }, + { + chainId: 42262, + address: '0xf02b3e437304892105992512539F769423a515Cb', + symbol: 'YUZU', + name: 'YUZUToken', + decimals: 18, + logoURI: 'https://yuzu-swap.com/yuzu.0f21407f.svg', + }, + { + chainId: 42262, + address: '0x21C718C22D52d0F3a789b752D4c2fD5908a8A733', + symbol: 'WROSE', + name: 'Wrapped ROSE', + decimals: 18, + logoURI: 'https://docs.oasis.dev/img/logo.png', + }, + { + chainId: 42262, + address: '0x89aF3985261b664a24DE48355D589275b0FE2112', + symbol: 'USBL', + name: 'softbalanced.com', + decimals: 18, + logoURI: + 'https://raw.githubusercontent.com/softbalanced/softbalanced.github.io/418f59f5cbc0a79866fce615c697812934902607/index_files/logo__.png', + }, + { + chainId: 42262, + address: '0xBC033203796CC2C8C543a5aAe93a9a643320433D', + symbol: 'VS', + name: 'ValleySwap Token', + decimals: 18, + logoURI: 'https://valleyswap.com/images/logo_valley-swap_mob.svg', + }, + { + chainId: 42262, + address: '0x0bfF36Be5cf671Fa973f8206483b6641A90CE7d0', + symbol: '🌹SWAP', + name: '🌹RoseSwap.io', + decimals: 18, + logoURI: 'https://app.rose.fi/static/media/rose.54bf1c83.svg', + }, + { + chainId: 42262, + address: '0x6Cb9750a92643382e020eA9a170AbB83Df05F30B', + symbol: 'USDT', + name: 'Tether USD', + decimals: 6, + logoURI: 'https://s2.coinmarketcap.com/static/img/coins/64x64/825.png', + }, + { + chainId: 42262, + address: '0x94fbfFe5698DB6f54d6Ca524DbE673a7729014Be', + symbol: 'USDC', + name: 'USD Coin', + decimals: 6, + logoURI: 'https://s2.coinmarketcap.com/static/img/coins/64x64/3408.png', + }, + //wormhole + ...[ + { + chainId: 42262, + address: '0x32847e63E99D3a044908763056e25694490082F8', + symbol: 'AVAX', + name: 'AVAX (Wormhole)', + decimals: 18, + logoURI: 'https://raw.githubusercontent.com/certusone/wormhole-token-list/main/assets/AVAX_wh.png', + }, + { + chainId: 42262, + address: '0x05CbE6319Dcc937BdbDf0931466F4fFd0d392B47', + symbol: 'USDCav', + name: 'USD Coin (Wormhole from Avalanche)', + decimals: 6, + logoURI: 'https://raw.githubusercontent.com/certusone/wormhole-token-list/main/assets/USDCav_wh.png', + }, + { + chainId: 42262, + address: '0x05832a0905E516f29344ADBa1c2052a788B10129', + symbol: 'USDTav', + name: 'Tether USD (Wormhole from Avalanche)', + decimals: 6, + logoURI: 'https://raw.githubusercontent.com/certusone/wormhole-token-list/main/assets/USDTav_wh.png', + }, + { + chainId: 42262, + address: '0xd79Ef9A91b56c690C7b80570a3c060678667f469', + symbol: 'BNB', + name: 'Binance Coin (Wormhole)', + decimals: 18, + logoURI: 'https://raw.githubusercontent.com/certusone/wormhole-token-list/main/assets/BNB_wh.png', + }, + { + chainId: 42262, + address: '0xf6568FD76f9fcD1f60f73b730F142853c5eF627E', + symbol: 'BUSDbs', + name: 'Binance USD (Wormhole from BSC)', + decimals: 18, + logoURI: 'https://raw.githubusercontent.com/certusone/wormhole-token-list/main/assets/BUSDbs_wh.png', + }, + { + chainId: 42262, + address: '0x4cA2A3De42eabC8fd8b0AC46127E64DB08b9150e', + symbol: 'USDCbs', + name: 'USD Coin (Wormhole from BSC)', + decimals: 18, + logoURI: 'https://raw.githubusercontent.com/certusone/wormhole-token-list/main/assets/USDCbs_wh.png', + }, + { + chainId: 42262, + address: '0x366EF31C8dc715cbeff5fA54Ad106dC9c25C6153', + symbol: 'USDTbs', + name: 'Tether USD (Wormhole from BSC)', + decimals: 18, + logoURI: 'https://raw.githubusercontent.com/certusone/wormhole-token-list/main/assets/USDTbs_wh.png', + }, + { + chainId: 42262, + address: '0x3223f17957Ba502cbe71401D55A0DB26E5F7c68F', + symbol: 'ETH', + name: 'Ether (Wormhole)', + decimals: 18, + logoURI: 'https://raw.githubusercontent.com/certusone/wormhole-token-list/main/assets/ETH_wh.png', + }, + { + chainId: 42262, + address: '0xE8A638b3B7565Ee7c5eb9755E58552aFc87b94DD', + symbol: 'USDCet', + name: 'USD Coin (Wormhole from Ethereum)', + decimals: 6, + logoURI: 'https://raw.githubusercontent.com/certusone/wormhole-token-list/main/assets/USDCet_wh.png', + }, + { + chainId: 42262, + address: '0xdC19A122e268128B5eE20366299fc7b5b199C8e3', + symbol: 'USDTet', + name: 'Tether USD (Wormhole from Ethereum)', + decimals: 6, + logoURI: 'https://raw.githubusercontent.com/certusone/wormhole-token-list/main/assets/USDTet_wh.png', + }, + { + chainId: 42262, + address: '0xd43ce0aa2a29DCb75bDb83085703dc589DE6C7eb', + symbol: 'WBTC', + name: 'Wrapped BTC (Wormhole)', + decimals: 8, + logoURI: 'https://raw.githubusercontent.com/certusone/wormhole-token-list/main/assets/WBTC_wh.png', + }, + { + chainId: 42262, + address: '0x3E62a9c3aF8b810dE79645C4579acC8f0d06a241', + symbol: 'USDCpo', + name: 'USD Coin (PoS) (Wormhole from Polygon)', + decimals: 6, + logoURI: 'https://raw.githubusercontent.com/certusone/wormhole-token-list/main/assets/USDCpo_wh.png', + }, + { + chainId: 42262, + address: '0xFffD69E757d8220CEA60dc80B9Fe1a30b58c94F3', + symbol: 'USDTpo', + name: 'Tether USD (PoS) (Wormhole from Polygon)', + decimals: 6, + logoURI: 'https://raw.githubusercontent.com/certusone/wormhole-token-list/main/assets/USDTpo_wh.png', + }, + { + chainId: 42262, + address: '0xd17dDAC91670274F7ba1590a06EcA0f2FD2b12bc', + symbol: 'SOL', + name: 'SOL (Wormhole)', + decimals: 9, + logoURI: 'https://raw.githubusercontent.com/certusone/wormhole-token-list/main/assets/SOL_wh.png', + }, + { + chainId: 42262, + address: '0x1d1149a53deB36F2836Ae7877c9176413aDfA4A8', + symbol: 'USDCso', + name: 'USD Coin (Wormhole from Solana)', + decimals: 6, + logoURI: 'https://raw.githubusercontent.com/certusone/wormhole-token-list/main/assets/USDCso_wh.png', + }, + { + chainId: 42262, + address: '0x24285C5232ce3858F00bacb950Cae1f59d1b2704', + symbol: 'USDTso', + name: 'Tether USD (Wormhole from Solana)', + decimals: 6, + logoURI: 'https://raw.githubusercontent.com/certusone/wormhole-token-list/main/assets/USDTso_wh.png', + }, + { + chainId: 42262, + address: '0xa1E73c01E0cF7930F5e91CB291031739FE5Ad6C2', + symbol: 'UST', + name: 'UST (Wormhole)', + decimals: 6, + logoURI: 'https://raw.githubusercontent.com/certusone/wormhole-token-list/main/assets/UST_wh.png', + }, + { + chainId: 42262, + address: '0x4F43717B20ae319Aa50BC5B2349B93af5f7Ac823', + symbol: 'LUNA', + name: 'LUNA (Wormhole)', + decimals: 6, + logoURI: 'https://raw.githubusercontent.com/certusone/wormhole-token-list/main/assets/LUNA_wh.png', + }, + ], + //cBridge + ...[ + { + chainId: 42262, + symbol: 'ceUSDT', + address: '0x4Bf769b05E832FCdc9053fFFBC78Ca889aCb5E1E', + name: 'Tether USD (Celer)', + decimals: 6, + logoURI: 'https://s2.coinmarketcap.com/static/img/coins/64x64/825.png', + }, + { + chainId: 42262, + symbol: 'ceUSDC', + address: '0x81ECac0D6Be0550A00FF064a4f9dd2400585FE9c', + name: 'USD Coin (Celer)', + decimals: 6, + logoURI: 'https://s2.coinmarketcap.com/static/img/coins/64x64/3408.png', + }, + { + chainId: 42262, + symbol: 'ceETH', + address: '0x6a2d262D56735DbA19Dd70682B39F6bE9a931D98', + name: 'Wrapped Ether (Celer)', + decimals: 18, + logoURI: 'https://s2.coinmarketcap.com/static/img/coins/64x64/1027.png', + }, + { + chainId: 42262, + symbol: 'ceDAI', + address: '0x5a4Ba16C2AeB295822A95280A7c7149E87769E6A', + name: 'Dai Stablecoin (Celer)', + decimals: 18, + logoURI: 'https://s2.coinmarketcap.com/static/img/coins/64x64/4943.png', + }, + { + chainId: 42262, + symbol: 'cbBNB', + address: '0x3795C36e7D12A8c252A20C5a7B455f7c57b60283', + name: 'Binance Coin (Celer)', + decimals: 18, + logoURI: 'https://s2.coinmarketcap.com/static/img/coins/64x64/1839.png', + }, + { + chainId: 42262, + symbol: 'caAVAX', + address: '0x6De33698e9e9b787e09d3Bd7771ef63557E148bb', + name: 'Avalanche (Celer)', + decimals: 18, + logoURI: 'https://s2.coinmarketcap.com/static/img/coins/64x64/5805.png', + }, + { + chainId: 42262, + symbol: 'cfFTM', + address: '0x7f27352D5F83Db87a5A3E00f4B07Cc2138D8ee52', + name: 'Fantom (Celer)', + decimals: 18, + logoURI: 'https://s2.coinmarketcap.com/static/img/coins/64x64/3513.png', + }, + { + chainId: 42262, + symbol: 'CELR', + address: '0xf6a939e773fa4A63fd53f86bbbB279CaAD955035', + name: 'Celer Network', + decimals: 18, + logoURI: 'https://s2.coinmarketcap.com/static/img/coins/64x64/3814.png', + }, + ], + //Multichain + ...[ + { + chainId: 42262, + symbol: 'ETH', + address: '0xB44a9B6905aF7c801311e8F4E76932ee959c663C', + name: 'Ethereum (Multichain)', + decimals: 18, + logoURI: 'https://s2.coinmarketcap.com/static/img/coins/64x64/1027.png', + }, + { + chainId: 42262, + address: '0x80a16016cc4a2e6a2caca8a4a498b1699ff0f844', + symbol: 'USDC', + name: 'USD Coin (Multichain)', + decimals: 6, + logoURI: 'https://s2.coinmarketcap.com/static/img/coins/64x64/3408.png', + }, + { + chainId: 42262, + symbol: 'USDT', + address: '0x6aB6d61428fde76768D7b45D8BFeec19c6eF91A8', + name: 'Tether USD (Multichain)', + decimals: 6, + logoURI: 'https://s2.coinmarketcap.com/static/img/coins/64x64/825.png', + }, + { + chainId: 42262, + symbol: 'BUSD', + address: '0x639A647fbe20b6c8ac19E48E2de44ea792c62c5C', + name: 'Binance-Peg BUSD Token (Multichain)', + decimals: 18, + logoURI: 'https://s2.coinmarketcap.com/static/img/coins/64x64/4687.png', + }, + { + chainId: 42262, + symbol: 'BNB', + address: '0xe3f5a90f9cb311505cd691a46596599aa1a0ad7d', + name: 'Binance (Multichain)', + decimals: 18, + logoURI: 'https://s2.coinmarketcap.com/static/img/coins/64x64/1839.png', + }, + ], +] + +const OASIS_TOKEN_LIST = OASIS_TOKEN_ARRAY.reduce((acc, cur) => { + return { + ...acc, + [cur.address]: cur, + } +}, {}) + +export default OASIS_TOKEN_LIST diff --git a/src/contexts/Application.js b/src/contexts/Application.js index 249cab465..336f03c55 100644 --- a/src/contexts/Application.js +++ b/src/contexts/Application.js @@ -20,6 +20,7 @@ import ARBITRUM_TOKEN_LIST from '../constants/tokenLists/arbitrum.tokenlist' import BTTC_TOKEN_LIST from '../constants/tokenLists/bttc.tokenlist' import VELAS_TOKEN_LIST from '../constants/tokenLists/velas.tokenlist' import AURORA_TOKEN_LIST from '../constants/tokenLists/aurora.tokenlist' +import OASIS_TOKEN_LIST from '../constants/tokenLists/oasis.tokenlist' dayjs.extend(utc) const UPDATE = 'UPDATE' @@ -402,6 +403,9 @@ export function useListedTokens() { case ChainId.AURORA: tokenslist = AURORA_TOKEN_LIST break + case ChainId.OASIS: + tokenslist = OASIS_TOKEN_LIST + break default: break } diff --git a/src/utils/index.js b/src/utils/index.js index 5adb44602..74e06f38e 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -574,6 +574,8 @@ export function getNativeTokenSymbol(networkInfo) { return 'VLX' case ChainId.AURORA: return 'ETH' + case ChainId.OASIS: + return 'ROSE' default: return 'ETH' } @@ -601,6 +603,8 @@ export function getNativeTokenWrappedName(networkInfo) { return 'VLX (Wrapped)' case ChainId.AURORA: return 'ETH (Wrapped)' + case ChainId.OASIS: + return 'ROSE (Wrapped)' default: return 'Ether (Wrapped)' } @@ -634,6 +638,8 @@ export function getEtherscanLinkText(networkInfo) { return 'Velas EVM Explorer' case ChainId.AURORA: return 'Aurora Explorer' + case ChainId.OASIS: + return 'Oasis Emerald Explorer' default: return 'Etherscan' } @@ -661,6 +667,8 @@ export function getDefaultAddLiquidityUrl(networkInfo) { return `${networkInfo.DMM_SWAP_URL}pools/VLX` case ChainId.AURORA: return `${networkInfo.DMM_SWAP_URL}pools/ETH` + case ChainId.OASIS: + return `${networkInfo.DMM_SWAP_URL}pools/ROSE` default: return `${networkInfo.DMM_SWAP_URL}pools/ETH/${getKNC_ADDRESS(networkInfo)}` } diff --git a/src/utils/tokenLists.ts b/src/utils/tokenLists.ts index 2e4437bfd..639c84fdb 100644 --- a/src/utils/tokenLists.ts +++ b/src/utils/tokenLists.ts @@ -56,7 +56,11 @@ export default async function getTokenList(listUrl: string, networkInfo: any): P // Bypass validator for Matic network // Because the Uniswap token schema will fail on Quickswap tokens list - if ([137, 56, 43114, 250, 25, ChainId.ARBITRUM, ChainId.BTTC, ChainId.VELAS, ChainId.AURORA].includes(networkInfo.CHAIN_ID)) { + if ( + [137, 56, 43114, 250, 25, ChainId.ARBITRUM, ChainId.BTTC, ChainId.VELAS, ChainId.AURORA, ChainId.OASIS].includes( + networkInfo.CHAIN_ID + ) + ) { return json }