Skip to content

Commit

Permalink
fix: add cmc symbols to currencies
Browse files Browse the repository at this point in the history
  • Loading branch information
aramalipoor committed Dec 24, 2022
1 parent dc35e46 commit 7926f26
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
40 changes: 40 additions & 0 deletions packages/react/src/core/crypto-currency/constants/currencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,71 +8,111 @@ export const KNOWN_CRYPTO_CURRENCIES: CryptoCurrency[] = [
name: 'Ethereum',
icon: 'ETH',
coinGeckoId: 'ethereum',
coinMarketCapSymbol: 'ETH',
},
{
symbol: 'MATIC',
name: 'Matic',
icon: 'MATIC',
coinGeckoId: 'matic-network',
coinMarketCapSymbol: 'MATIC',
},
{
symbol: 'AVAX',
name: 'AVAX',
icon: 'AVAX',
coinGeckoId: 'avalanche-2',
coinMarketCapSymbol: 'AVAX',
},
{
symbol: 'NEON',
name: 'NEON',
icon: 'NEON',
coinGeckoId: 'solana', // TODO change to neon labs
coinMarketCapSymbol: 'NEON',
},
{
symbol: 'NEAR',
name: 'NEAR',
icon: 'NEAR',
coinGeckoId: 'near',
coinMarketCapSymbol: 'NEAR',
},
{
symbol: 'FTM',
name: 'FTM',
icon: 'FTM',
coinGeckoId: 'fantom',
coinMarketCapSymbol: 'FTM',
},
{
symbol: 'EVMOS',
name: 'EVMOS',
icon: 'EVMOS',
coinGeckoId: 'evmos',
coinMarketCapSymbol: 'EVMOS',
},
{
symbol: 'GLMR',
name: 'GLMR',
icon: 'GLMR',
coinGeckoId: 'moonbeam',
coinMarketCapSymbol: 'GLMR',
},
{
symbol: 'MOVR',
name: 'MOVR',
icon: 'MOVR',
coinGeckoId: 'moonriver',
coinMarketCapSymbol: 'MOVR',
},
{
symbol: 'BNB',
name: 'BNB',
icon: 'BNB',
coinGeckoId: 'binancecoin',
coinMarketCapSymbol: 'BNB',
},
{
symbol: 'FUSE',
name: 'FUSE',
icon: 'FUSE',
coinGeckoId: 'fuse',
coinMarketCapSymbol: 'FUSE',
},
{
symbol: 'TLOS',
name: 'TELOS',
icon: 'TLOS',
coinGeckoId: 'telos',
coinMarketCapSymbol: 'TLOS',
},
{
symbol: 'OKT',
name: 'OKT',
icon: 'OKT',
coinGeckoId: 'okc-token',
coinMarketCapSymbol: 'OKT',
},
{
symbol: 'ROSE',
name: 'ROSE',
icon: 'ROSE',
coinGeckoId: 'oasis-network',
coinMarketCapSymbol: 'ROSE',
},
{
symbol: 'CELO',
name: 'CELO',
icon: 'CELO',
coinGeckoId: 'celo',
coinMarketCapSymbol: 'CELO',
},
{
symbol: 'CRO',
name: 'CRO',
icon: 'CRO',
coinGeckoId: 'crypto-com-chain',
coinMarketCapSymbol: 'CRO',
},
];
1 change: 1 addition & 0 deletions packages/react/src/core/crypto-currency/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export type CryptoCurrency = {
name: string;
icon?: React.ReactNode;
coinGeckoId?: string;
coinMarketCapSymbol?: string;
};

export enum CryptoUnits {
Expand Down

0 comments on commit 7926f26

Please sign in to comment.