diff --git a/package.json b/package.json index cbc4caa..0ba9ff8 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "@cosmjs/tendermint-rpc": "^0.31.0", "@dydxprotocol/v4-abacus": "^1.1.25", "@dydxprotocol/v4-client-js": "^1.0.11", - "@dydxprotocol/v4-localization": "^1.0.18", + "@dydxprotocol/v4-localization": "^1.0.19", "@ethersproject/providers": "^5.7.2", "@js-joda/core": "^5.5.3", "@radix-ui/react-checkbox": "^1.0.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index eff06db..920a2f4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -33,8 +33,8 @@ dependencies: specifier: ^1.0.11 version: 1.0.11 '@dydxprotocol/v4-localization': - specifier: ^1.0.18 - version: 1.0.18 + specifier: ^1.0.19 + version: 1.0.19 '@ethersproject/providers': specifier: ^5.7.2 version: 5.7.2 @@ -1020,8 +1020,8 @@ packages: - utf-8-validate dev: false - /@dydxprotocol/v4-localization@1.0.18: - resolution: {integrity: sha512-790ajXfGzqRs7JVA3vISCg0Vh4EEN7SlcI8u04iryPcBp1WwkQ5TFGllF32+YPs1+mgjMRhwrg6jP8zEGMQFyw==} + /@dydxprotocol/v4-localization@1.0.19: + resolution: {integrity: sha512-fKmJlyCCyo+SamH+Rb3fFR2Vu2F6G1JQcABAjWBMgihhA+XbdVVzTgydpQQfUgzIkmzy0CDFul6InAHlLvY1EQ==} dev: false /@dydxprotocol/v4-proto@0.4.1: diff --git a/public/configs/markets.json b/public/configs/markets.json index f887f2b..e81e812 100644 --- a/public/configs/markets.json +++ b/public/configs/markets.json @@ -1,454 +1,360 @@ { - "1INCH-USD":{ - "name":"1inch", - "tags":[ - "Defi" - ], - "websiteLink":"https://1inch.io/", - "whitepaperLink":"https://github.com/1inch", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/1inch/" - }, - "AAVE-USD":{ - "name":"Aave", - "tags":[ - "Defi" - ], - "websiteLink":"https://aave.com/", - "whitepaperLink":"https://github.com/aave/protocol-v2/blob/master/aave-v2-whitepaper.pdf", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/aave/" - }, - "ADA-USD":{ - "name":"Cardano", - "tags":[ - "Layer 1" - ], - "websiteLink":"https://cardano.org/", - "whitepaperLink":"https://why.cardano.org/en/introduction/motivation/", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/cardano/" - }, - "ALGO-USD":{ - "name":"Algorand", - "tags":[ - "Layer 1" - ], - "websiteLink":"https://algorand.com/", - "whitepaperLink":"https://algorand.com/technology/white-papers", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/algorand/" - }, - "APE-USD":{ - "name":"ApeCoin", - "tags":[ - - ], - "websiteLink":"https://apecoin.com/", - "whitepaperLink":"https://apecoin.com/about", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/apecoin-ape/" - }, - "APT-USD":{ - "name":"Aptos", - "tags":[ - "Layer 1" - ], - "websiteLink":"https://aptoslabs.com/", - "whitepaperLink":"https://aptos.dev/aptos-white-paper/", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/aptos/" - }, - "ARB-USD":{ - "name":"Arbitrum", - "tags":[ - - ], - "websiteLink":"https://arbitrum.io/", - "whitepaperLink":"https://github.com/OffchainLabs/nitro", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/arbitrum/" - }, - "ATOM-USD":{ - "name":"Cosmos", - "tags":[ - "Layer 1" - ], - "websiteLink":"https://cosmos.network/", - "whitepaperLink":"https://v1.cosmos.network/resources/whitepaper", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/cosmos/" - }, - "AVAX-USD":{ - "name":"Avalanche", - "tags":[ - "Layer 1" - ], - "websiteLink":"https://www.avalabs.org/", - "whitepaperLink":"https://assets.website-files.com/5d80307810123f5ffbb34d6e/6008d7bbf8b10d1eb01e7e16_Avalanche%20Platform%20Whitepaper.pdf", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/avalanche/" - }, - "BCH-USD":{ - "name":"Bitcoin Cash", - "tags":[ - "Layer 1" - ], - "websiteLink":"https://bitcoincash.org/", - "whitepaperLink":"https://bitcoincash.org/", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/bitcoin-cash/" - }, - "BLUR-USD":{ - "name":"Blur", - "tags":[ - - ], - "websiteLink":"https://blur.io/", - "whitepaperLink":"https://docs.blur.foundation/", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/blur-token/" - }, - "CELO-USD":{ - "name":"Celo", - "tags":[ - - ], - "websiteLink":"https://celo.org", - "whitepaperLink":"https://docs.celo.org", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/celo/" - }, - "BTC-USD":{ - "name":"Bitcoin", - "tags":[ - "Layer 1" - ], - "websiteLink":"https://bitcoin.org/", - "whitepaperLink":"https://bitcoin.org/bitcoin.pdf", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/bitcoin/" - }, - "COMP-USD":{ - "name":"Compound", - "tags":[ - "Defi" - ], - "websiteLink":"https://compound.finance/", - "whitepaperLink":"https://compound.finance/documents/Compound.Whitepaper.pdf", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/compound/" - }, - "CRV-USD":{ - "name":"Curve", - "tags":[ - "Governance" - ], - "websiteLink":"https://curve.fi/", - "whitepaperLink":"https://curve.fi/whitepaper", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/curve-dao-token/" - }, - "DOGE-USD":{ - "name":"Dogecoin", - "tags":[ - "Layer 1" - ], - "websiteLink":"https://dogecoin.com/", - "whitepaperLink":"https://github.com/dogecoin/dogecoin", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/dogecoin/" - }, - "DOT-USD":{ - "name":"Polkadot", - "tags":[ - "Layer 1" - ], - "websiteLink":"https://polkadot.network/", - "whitepaperLink":"https://polkadot.network/PolkaDotPaper.pdf", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/polkadot-new/" - }, - "ENJ-USD":{ - "name":"Enjin", - "tags":[ - - ], - "websiteLink":"https://enjin.io/", - "whitepaperLink":"https://cdn.enjin.io/downloads/whitepapers/enjin-coin/en.pdf/", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/enjin-coin/" - }, - "EOS-USD":{ - "name":"EOS", - "tags":[ - "Layer 1" - ], - "websiteLink":"https://eos.io/", - "whitepaperLink":"https://github.com/EOSIO/Documentation/blob/master/TechnicalWhitePaper.md", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/eos/" - }, - "ETC-USD":{ - "name":"Ethereum Classic", - "tags":[ - "Layer 1" - ], - "websiteLink":"https://ethereumclassic.org/", - "whitepaperLink":"https://ethereumclassic.org/why-classic", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/ethereum-classic/" - }, - "ETH-USD":{ - "name":"Ethereum", - "tags":[ - "Layer 1" - ], - "websiteLink":"https://ethereum.org/", - "whitepaperLink":"https://ethereum.org/whitepaper/", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/ethereum/", - "displayStepSize":"0.001", - "displayTickSize":"0.1" - }, - "FIL-USD":{ - "name":"Filecoin", - "tags":[ - "Layer 1" - ], - "websiteLink":"https://filecoin.io/", - "whitepaperLink":"https://filecoin.io/filecoin.pdf", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/filecoin/" - }, - "HNT-USD":{ - "name":"Helium", - "tags":[ - "Layer 1" - ], - "websiteLink":"https://www.helium.com", - "whitepaperLink":"http://whitepaper.helium.com", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/helium/" - }, - "ICP-USD":{ - "name":"Internet Computer", - "tags":[ - "Layer 1" - ], - "websiteLink":"https://dfinity.org", - "whitepaperLink":"https://dfinity.org/whitepaper.pdf", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/internet-computer/" - }, - "LDO-USD":{ - "name":"Lido DAO", - "tags":[ - "Defi" - ], - "websiteLink":"https://lido.fi/", - "whitepaperLink":"https://lido.fi/static/Lido:Ethereum-Liquid-Staking.pdf", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/lido-dao/" - }, - "LINK-USD":{ - "name":"Chainlink", - "tags":[ - "Defi" - ], - "websiteLink":"https://chain.link/", - "whitepaperLink":"https://link.smartcontract.com/whitepaper", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/chainlink/" - }, - "LTC-USD":{ - "name":"Litecoin", - "tags":[ - "Layer 1" - ], - "websiteLink":"https://litecoin.org/", - "whitepaperLink":"https://litecoin.info/index.php/Main_Page", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/litecoin/" - }, - "MATIC-USD":{ - "name":"Polygon", - "tags":[ - "Layer 2" - ], - "websiteLink":"https://polygon.technology/", - "whitepaperLink":"https://polygon.technology/lightpaper-polygon.pdf", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/polygon/" - }, - "MKR-USD":{ - "name":"Maker", - "tags":[ - "Governance" - ], - "websiteLink":"https://makerdao.com", - "whitepaperLink":"https://makerdao.com/whitepaper", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/maker/" - }, - "NEAR-USD":{ - "name":"NEAR Protocol", - "tags":[ - "Layer 1" - ], - "websiteLink":"https://near.org", - "whitepaperLink":"https://near.org/papers/the-official-near-white-paper/", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/near-protocol/" - }, - "OP-USD":{ - "name":"Optimism", - "tags":[ - - ], - "websiteLink":"https://www.optimism.io/", - "whitepaperLink":"https://github.com/ethereum-optimism", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/optimism-ethereum/" - }, - "PEPE-USD":{ - "name":"Pepe", - "tags":[ - - ], - "websiteLink":"https://www.pepe.vip/", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/pepe/" - }, - "RUNE-USD":{ - "name":"THORChain", - "tags":[ - "Layer 1" - ], - "websiteLink":"https://thorchain.org", - "whitepaperLink":"https://whitepaper.io/document/709/thorchain-whitepaper", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/thorchain/" - }, - "SEI-USD":{ - "name":"Sei", - "tags":[ - "Layer 1", - "Defi" - ], - "websiteLink":"https://www.sei.io/", - "whitepaperLink":"https://github.com/sei-protocol/sei-chain/blob/3c9576fee3494ce039df684624f918dd8066ba3f/whitepaper/Sei_Whitepaper.pdf", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/sei/" - }, - "SHIB-USD":{ - "name":"Shiba Inu", - "tags":[ - - ], - "websiteLink":"https://shibatoken.com/", - "whitepaperLink":"https://docs.shibatoken.com/", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/shiba-inu/" - }, - "SNX-USD":{ - "name":"Synthetix", - "tags":[ - "Defi" - ], - "websiteLink":"https://synthetix.io/", - "whitepaperLink":"https://docs.synthetix.io/litepaper", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/synthetix-network-token/" - }, - "SOL-USD":{ - "name":"Solana", - "tags":[ - "Layer 1" - ], - "websiteLink":"https://solana.com/", - "whitepaperLink":"https://solana.com/solana-whitepaper.pdf", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/solana/" - }, - "SUI-USD":{ - "name":"Sui", - "tags":[ - "Layer 1" - ], - "websiteLink":"https://sui.io/", - "whitepaperLink":"https://github.com/MystenLabs", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/sui/" - }, - "SUSHI-USD":{ - "name":"Sushi", - "tags":[ - "Defi" - ], - "websiteLink":"https://sushi.com/", - "whitepaperLink":"https://docs.sushi.com/", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/sushiswap/" - }, - "TRX-USD":{ - "name":"TRON", - "tags":[ - "Defi" - ], - "websiteLink":"https://tron.network/", - "whitepaperLink":"https://tron.network/static/doc/white_paper_v_2_0.pdf", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/tron/" - }, - "UMA-USD":{ - "name":"UMA", - "tags":[ - "Defi" - ], - "websiteLink":"https://umaproject.org/", - "whitepaperLink":"https://github.com/UMAprotocol/whitepaper", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/uma/" - }, - "UNI-USD":{ - "name":"Uniswap", - "tags":[ - "Defi" - ], - "websiteLink":"https://uniswap.org/", - "whitepaperLink":"https://uniswap.org/whitepaper-v3.pdf", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/uniswap/" - }, - "WLD-USD":{ - "name":"Worldcoin", - "tags":[ - - ], - "websiteLink":"https://worldcoin.org/", - "whitepaperLink":"https://whitepaper.worldcoin.org/", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/worldcoin-org/" - }, - "XLM-USD":{ - "name":"Stellar", - "tags":[ - "Layer 1" - ], - "websiteLink":"https://www.stellar.org/", - "whitepaperLink":"https://www.stellar.org/papers/stellar-consensus-protocol", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/stellar/" - }, - "XMR-USD":{ - "name":"Monero", - "tags":[ - "Layer 1" - ], - "websiteLink":"https://www.getmonero.org/", - "whitepaperLink":"https://www.getmonero.org/resources/research-lab/", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/monero/" - }, - "XRP-USD":{ - "name":"Ripple", - "tags":[ - "Layer 1" - ], - "websiteLink":"https://ripple.com/currency/", - "whitepaperLink":"https://github.com/ripple", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/xrp/" - }, - "XTZ-USD":{ - "name":"Tezos", - "tags":[ - "Layer 1" - ], - "websiteLink":"https://tezos.com", - "whitepaperLink":"https://tezos.com/whitepaper.pdf", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/tezos/" - }, - "YFI-USD":{ - "name":"Yearn", - "tags":[ - "Defi" - ], - "websiteLink":"https://yearn.finance/", - "whitepaperLink":"https://docs.yearn.finance/", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/yearn-finance/" - }, - "ZEC-USD":{ - "name":"Zcash", - "tags":[ - "Layer 1" - ], - "websiteLink":"https://z.cash/", - "whitepaperLink":"https://z.cash/technology/", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/zcash/" - }, - "ZRX-USD":{ - "name":"0x", - "tags":[ - "Defi" - ], - "websiteLink":"https://0x.org/", - "whitepaperLink":"https://0x.org/pdfs/0x_white_paper.pdf", - "coinMarketCapsLink":"https://coinmarketcap.com/currencies/0x/" - } - } \ No newline at end of file + "1INCH-USD": { + "name": "1inch", + "tags": ["Defi"], + "websiteLink": "https://1inch.io/", + "whitepaperLink": "https://github.com/1inch", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/1inch/" + }, + "AAVE-USD": { + "name": "Aave", + "tags": ["Defi"], + "websiteLink": "https://aave.com/", + "whitepaperLink": "https://github.com/aave/protocol-v2/blob/master/aave-v2-whitepaper.pdf", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/aave/" + }, + "ADA-USD": { + "name": "Cardano", + "tags": ["Layer 1"], + "websiteLink": "https://cardano.org/", + "whitepaperLink": "https://why.cardano.org/en/introduction/motivation/", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/cardano/" + }, + "ALGO-USD": { + "name": "Algorand", + "tags": ["Layer 1"], + "websiteLink": "https://algorand.com/", + "whitepaperLink": "https://algorand.com/technology/white-papers", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/algorand/" + }, + "APE-USD": { + "name": "ApeCoin", + "tags": [], + "websiteLink": "https://apecoin.com/", + "whitepaperLink": "https://apecoin.com/about", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/apecoin-ape/" + }, + "APT-USD": { + "name": "Aptos", + "tags": ["Layer 1"], + "websiteLink": "https://aptoslabs.com/", + "whitepaperLink": "https://aptos.dev/aptos-white-paper/", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/aptos/" + }, + "ARB-USD": { + "name": "Arbitrum", + "tags": [], + "websiteLink": "https://arbitrum.io/", + "whitepaperLink": "https://github.com/OffchainLabs/nitro", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/arbitrum/" + }, + "ATOM-USD": { + "name": "Cosmos", + "tags": ["Layer 1"], + "websiteLink": "https://cosmos.network/", + "whitepaperLink": "https://v1.cosmos.network/resources/whitepaper", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/cosmos/" + }, + "AVAX-USD": { + "name": "Avalanche", + "tags": ["Layer 1"], + "websiteLink": "https://www.avalabs.org/", + "whitepaperLink": "https://assets.website-files.com/5d80307810123f5ffbb34d6e/6008d7bbf8b10d1eb01e7e16_Avalanche%20Platform%20Whitepaper.pdf", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/avalanche/" + }, + "BCH-USD": { + "name": "Bitcoin Cash", + "tags": ["Layer 1"], + "websiteLink": "https://bitcoincash.org/", + "whitepaperLink": "https://bitcoincash.org/", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/bitcoin-cash/" + }, + "BLUR-USD": { + "name": "Blur", + "tags": [], + "websiteLink": "https://blur.io/", + "whitepaperLink": "https://docs.blur.foundation/", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/blur-token/" + }, + "CELO-USD": { + "name": "Celo", + "tags": [], + "websiteLink": "https://celo.org", + "whitepaperLink": "https://docs.celo.org", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/celo/" + }, + "BTC-USD": { + "name": "Bitcoin", + "tags": ["Layer 1"], + "websiteLink": "https://bitcoin.org/", + "whitepaperLink": "https://bitcoin.org/bitcoin.pdf", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/bitcoin/" + }, + "COMP-USD": { + "name": "Compound", + "tags": ["Defi"], + "websiteLink": "https://compound.finance/", + "whitepaperLink": "https://compound.finance/documents/Compound.Whitepaper.pdf", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/compound/" + }, + "CRV-USD": { + "name": "Curve", + "tags": ["Governance"], + "websiteLink": "https://curve.fi/", + "whitepaperLink": "https://curve.fi/whitepaper", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/curve-dao-token/" + }, + "DOGE-USD": { + "name": "Dogecoin", + "tags": ["Layer 1"], + "websiteLink": "https://dogecoin.com/", + "whitepaperLink": "https://github.com/dogecoin/dogecoin", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/dogecoin/" + }, + "DOT-USD": { + "name": "Polkadot", + "tags": ["Layer 1"], + "websiteLink": "https://polkadot.network/", + "whitepaperLink": "https://polkadot.network/PolkaDotPaper.pdf", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/polkadot-new/" + }, + "ENJ-USD": { + "name": "Enjin", + "tags": [], + "websiteLink": "https://enjin.io/", + "whitepaperLink": "https://cdn.enjin.io/downloads/whitepapers/enjin-coin/en.pdf/", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/enjin-coin/" + }, + "EOS-USD": { + "name": "EOS", + "tags": ["Layer 1"], + "websiteLink": "https://eos.io/", + "whitepaperLink": "https://github.com/EOSIO/Documentation/blob/master/TechnicalWhitePaper.md", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/eos/" + }, + "ETC-USD": { + "name": "Ethereum Classic", + "tags": ["Layer 1"], + "websiteLink": "https://ethereumclassic.org/", + "whitepaperLink": "https://ethereumclassic.org/why-classic", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/ethereum-classic/" + }, + "ETH-USD": { + "name": "Ethereum", + "tags": ["Layer 1"], + "websiteLink": "https://ethereum.org/", + "whitepaperLink": "https://ethereum.org/whitepaper/", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/ethereum/", + "displayStepSize": "0.001", + "displayTickSize": "0.1" + }, + "FIL-USD": { + "name": "Filecoin", + "tags": ["Layer 1"], + "websiteLink": "https://filecoin.io/", + "whitepaperLink": "https://filecoin.io/filecoin.pdf", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/filecoin/" + }, + "HNT-USD": { + "name": "Helium", + "tags": ["Layer 1"], + "websiteLink": "https://www.helium.com", + "whitepaperLink": "http://whitepaper.helium.com", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/helium/" + }, + "ICP-USD": { + "name": "Internet Computer", + "tags": ["Layer 1"], + "websiteLink": "https://dfinity.org", + "whitepaperLink": "https://dfinity.org/whitepaper.pdf", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/internet-computer/" + }, + "LDO-USD": { + "name": "Lido DAO", + "tags": ["Defi"], + "websiteLink": "https://lido.fi/", + "whitepaperLink": "https://lido.fi/static/Lido:Ethereum-Liquid-Staking.pdf", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/lido-dao/" + }, + "LINK-USD": { + "name": "Chainlink", + "tags": ["Defi"], + "websiteLink": "https://chain.link/", + "whitepaperLink": "https://link.smartcontract.com/whitepaper", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/chainlink/" + }, + "LTC-USD": { + "name": "Litecoin", + "tags": ["Layer 1"], + "websiteLink": "https://litecoin.org/", + "whitepaperLink": "https://litecoin.info/index.php/Main_Page", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/litecoin/" + }, + "MATIC-USD": { + "name": "Polygon", + "tags": ["Layer 2"], + "websiteLink": "https://polygon.technology/", + "whitepaperLink": "https://polygon.technology/lightpaper-polygon.pdf", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/polygon/" + }, + "MKR-USD": { + "name": "Maker", + "tags": ["Governance"], + "websiteLink": "https://makerdao.com", + "whitepaperLink": "https://makerdao.com/whitepaper", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/maker/" + }, + "NEAR-USD": { + "name": "NEAR Protocol", + "tags": ["Layer 1"], + "websiteLink": "https://near.org", + "whitepaperLink": "https://near.org/papers/the-official-near-white-paper/", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/near-protocol/" + }, + "OP-USD": { + "name": "Optimism", + "tags": [], + "websiteLink": "https://www.optimism.io/", + "whitepaperLink": "https://github.com/ethereum-optimism", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/optimism-ethereum/" + }, + "PEPE-USD": { + "name": "Pepe", + "tags": [], + "websiteLink": "https://www.pepe.vip/", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/pepe/" + }, + "RUNE-USD": { + "name": "THORChain", + "tags": ["Layer 1"], + "websiteLink": "https://thorchain.org", + "whitepaperLink": "https://whitepaper.io/document/709/thorchain-whitepaper", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/thorchain/" + }, + "SEI-USD": { + "name": "Sei", + "tags": ["Layer 1", "Defi"], + "websiteLink": "https://www.sei.io/", + "whitepaperLink": "https://github.com/sei-protocol/sei-chain/blob/3c9576fee3494ce039df684624f918dd8066ba3f/whitepaper/Sei_Whitepaper.pdf", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/sei/" + }, + "SHIB-USD": { + "name": "Shiba Inu", + "tags": [], + "websiteLink": "https://shibatoken.com/", + "whitepaperLink": "https://docs.shibatoken.com/", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/shiba-inu/" + }, + "SNX-USD": { + "name": "Synthetix", + "tags": ["Defi"], + "websiteLink": "https://synthetix.io/", + "whitepaperLink": "https://docs.synthetix.io/litepaper", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/synthetix-network-token/" + }, + "SOL-USD": { + "name": "Solana", + "tags": ["Layer 1"], + "websiteLink": "https://solana.com/", + "whitepaperLink": "https://solana.com/solana-whitepaper.pdf", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/solana/" + }, + "SUI-USD": { + "name": "Sui", + "tags": ["Layer 1"], + "websiteLink": "https://sui.io/", + "whitepaperLink": "https://github.com/MystenLabs", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/sui/" + }, + "SUSHI-USD": { + "name": "Sushi", + "tags": ["Defi"], + "websiteLink": "https://sushi.com/", + "whitepaperLink": "https://docs.sushi.com/", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/sushiswap/" + }, + "TIA-USD": { + "name": "Celestia", + "tags": ["Layer 1"], + "websiteLink": "https://celestia.org/", + "whitepaperLink": "https://arxiv.org/pdf/1905.09274.pdf", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/celestia/" + }, + "TRX-USD": { + "name": "TRON", + "tags": ["Defi"], + "websiteLink": "https://tron.network/", + "whitepaperLink": "https://tron.network/static/doc/white_paper_v_2_0.pdf", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/tron/" + }, + "UMA-USD": { + "name": "UMA", + "tags": ["Defi"], + "websiteLink": "https://umaproject.org/", + "whitepaperLink": "https://github.com/UMAprotocol/whitepaper", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/uma/" + }, + "UNI-USD": { + "name": "Uniswap", + "tags": ["Defi"], + "websiteLink": "https://uniswap.org/", + "whitepaperLink": "https://uniswap.org/whitepaper-v3.pdf", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/uniswap/" + }, + "WLD-USD": { + "name": "Worldcoin", + "tags": [], + "websiteLink": "https://worldcoin.org/", + "whitepaperLink": "https://whitepaper.worldcoin.org/", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/worldcoin-org/" + }, + "XLM-USD": { + "name": "Stellar", + "tags": ["Layer 1"], + "websiteLink": "https://www.stellar.org/", + "whitepaperLink": "https://www.stellar.org/papers/stellar-consensus-protocol", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/stellar/" + }, + "XMR-USD": { + "name": "Monero", + "tags": ["Layer 1"], + "websiteLink": "https://www.getmonero.org/", + "whitepaperLink": "https://www.getmonero.org/resources/research-lab/", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/monero/" + }, + "XRP-USD": { + "name": "Ripple", + "tags": ["Layer 1"], + "websiteLink": "https://ripple.com/currency/", + "whitepaperLink": "https://github.com/ripple", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/xrp/" + }, + "XTZ-USD": { + "name": "Tezos", + "tags": ["Layer 1"], + "websiteLink": "https://tezos.com", + "whitepaperLink": "https://tezos.com/whitepaper.pdf", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/tezos/" + }, + "YFI-USD": { + "name": "Yearn", + "tags": ["Defi"], + "websiteLink": "https://yearn.finance/", + "whitepaperLink": "https://docs.yearn.finance/", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/yearn-finance/" + }, + "ZEC-USD": { + "name": "Zcash", + "tags": ["Layer 1"], + "websiteLink": "https://z.cash/", + "whitepaperLink": "https://z.cash/technology/", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/zcash/" + }, + "ZRX-USD": { + "name": "0x", + "tags": ["Defi"], + "websiteLink": "https://0x.org/", + "whitepaperLink": "https://0x.org/pdfs/0x_white_paper.pdf", + "coinMarketCapsLink": "https://coinmarketcap.com/currencies/0x/" + } +} diff --git a/public/currencies/tia.png b/public/currencies/tia.png new file mode 100644 index 0000000..7dc9a4f Binary files /dev/null and b/public/currencies/tia.png differ diff --git a/public/currencies/unavailable.png b/public/currencies/unavailable.png new file mode 100644 index 0000000..922585a Binary files /dev/null and b/public/currencies/unavailable.png differ diff --git a/src/components/AssetIcon.tsx b/src/components/AssetIcon.tsx index 5ecc426..1ea994b 100644 --- a/src/components/AssetIcon.tsx +++ b/src/components/AssetIcon.tsx @@ -45,6 +45,7 @@ const assetIcons = { SOL: '/currencies/sol.png', SUI: '/currencies/sui.png', SUSHI: '/currencies/sushi.png', + TIA: '/currencies/tia.png', TRX: '/currencies/trx.png', UMA: '/currencies/uma.png', UNI: '/currencies/uni.png', @@ -71,8 +72,13 @@ export const AssetIcon = ({ }: { symbol?: Nullable; className?: string; -}) => - isAssetSymbol(symbol) ? : null; +}) => ( + +); const Styled: Record = {}; diff --git a/src/constants/markets.ts b/src/constants/markets.ts index 9d92c9c..edb44f9 100644 --- a/src/constants/markets.ts +++ b/src/constants/markets.ts @@ -26,39 +26,3 @@ export enum FundingDirection { ToShort = 'ToShort', ToLong = 'ToLong', } - -export const MARKETS_TO_DISPLAY = [ - 'BTC-USD', - 'ETH-USD', - 'LINK-USD', - 'SOL-USD', - 'MATIC-USD', - 'ATOM-USD', - 'AVAX-USD', - 'APE-USD', - 'XRP-USD', - 'UNI-USD', - 'ADA-USD', - 'TRX-USD', - 'OP-USD', - 'MKR-USD', - 'DOGE-USD', - 'SHIB-USD', - 'COMP-USD', - 'LDO-USD', - 'NEAR-USD', - 'APT-USD', - 'SUI-USD', - 'DOT-USD', - 'ETC-USD', - 'ARB-USD', - 'CRV-USD', - 'BLUR-USD', - 'FIL-USD', - 'XLM-USD', - 'PEPE-USD', - 'WLD-USD', - 'SEI-USD', - 'LTC-USD', - 'BCH-USD', -]; diff --git a/src/hooks/useMarketsData.ts b/src/hooks/useMarketsData.ts index e9ec038..020db64 100644 --- a/src/hooks/useMarketsData.ts +++ b/src/hooks/useMarketsData.ts @@ -1,14 +1,7 @@ import { useMemo } from 'react'; import { useSelector, shallowEqual } from 'react-redux'; -import { - MarketFilters, - MARKET_FILTER_LABELS, - type MarketData, - MARKETS_TO_DISPLAY, -} from '@/constants/markets'; - -import { testFlags } from '@/lib/testFlags'; +import { MarketFilters, MARKET_FILTER_LABELS, type MarketData } from '@/constants/markets'; import { getAssets } from '@/state/assetsSelectors'; import { getPerpetualMarkets } from '@/state/perpetualsSelectors'; @@ -49,9 +42,7 @@ export const useMarketsData = ( }, [allPerpetualMarkets, allAssets]); const filteredMarkets = useMemo(() => { - const filtered = markets - .filter(filterFunctions[filter]) - .filter(({ id }) => (testFlags.displayAllMarkets ? true : MARKETS_TO_DISPLAY.includes(id))); + const filtered = markets.filter(filterFunctions[filter]); if (searchFilter) { return filtered.filter( diff --git a/src/lib/testFlags.ts b/src/lib/testFlags.ts index bbb5aed..b4a0364 100644 --- a/src/lib/testFlags.ts +++ b/src/lib/testFlags.ts @@ -5,13 +5,13 @@ class TestFlags { this.queryParams = {}; const hash = window.location.hash; const queryIndex = hash.indexOf('?'); - if (queryIndex === -1) return + if (queryIndex === -1) return; const queryParamsString = hash.substring(queryIndex + 1); const params = new URLSearchParams(queryParamsString); for (const [key, value] of params) { - this.queryParams[key] = value; + this.queryParams[key] = value; } } @@ -19,10 +19,6 @@ class TestFlags { return !!this.queryParams.displayInitializingMarkets; } - get displayAllMarkets() { - return !!this.queryParams.displayAllMarkets; - } - get withCCTP() { return !!this.queryParams.withCCTP; } diff --git a/src/views/ExchangeBillboards.tsx b/src/views/ExchangeBillboards.tsx index bdb90e4..d6ce345 100644 --- a/src/views/ExchangeBillboards.tsx +++ b/src/views/ExchangeBillboards.tsx @@ -2,9 +2,7 @@ import styled, { type AnyStyledComponent } from 'styled-components'; import { shallowEqual, useSelector } from 'react-redux'; import { STRING_KEYS } from '@/constants/localization'; -import { MARKETS_TO_DISPLAY } from '@/constants/markets'; import { useBreakpoints, useStringGetter } from '@/hooks'; -import { testFlags } from '@/lib/testFlags'; import { breakpoints } from '@/styles'; import { layoutMixins } from '@/styles/layoutMixins'; @@ -34,7 +32,6 @@ export const ExchangeBillboards: React.FC = ({ Object.values(perpetualMarkets) .filter(Boolean) - .filter(({ id }) => (testFlags.displayAllMarkets ? true : MARKETS_TO_DISPLAY.includes(id))) .forEach(({ oraclePrice, perpetual }) => { const { volume24H, trades24H, openInterest = 0 } = perpetual || {}; volume24HUSDC += volume24H ?? 0; diff --git a/src/views/dialogs/DetailsDialog/FillDetailsDialog.tsx b/src/views/dialogs/DetailsDialog/FillDetailsDialog.tsx index ffdbe72..0ba26c9 100644 --- a/src/views/dialogs/DetailsDialog/FillDetailsDialog.tsx +++ b/src/views/dialogs/DetailsDialog/FillDetailsDialog.tsx @@ -94,7 +94,7 @@ export const FillDetailsDialog = ({ fillId, setIsOpen }: ElementProps) => { return ( } + slotIcon={} title={resources.typeStringKey && stringGetter({ key: resources.typeStringKey })} items={detailItems} setIsOpen={setIsOpen} diff --git a/src/views/dialogs/DetailsDialog/OrderDetailsDialog.tsx b/src/views/dialogs/DetailsDialog/OrderDetailsDialog.tsx index e0c0737..904d15d 100644 --- a/src/views/dialogs/DetailsDialog/OrderDetailsDialog.tsx +++ b/src/views/dialogs/DetailsDialog/OrderDetailsDialog.tsx @@ -194,7 +194,7 @@ export const OrderDetailsDialog = ({ orderId, setIsOpen }: ElementProps) => { return ( } + slotIcon={} title={!resources.typeStringKey ? '' : stringGetter({ key: resources.typeStringKey })} slotFooter={ isAccountViewOnly ? null : isOrderStatusClearable(status) ? (