Skip to content

Commit

Permalink
polkadot is supported. Cryptocurrency list uses enums
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitardanailov committed May 29, 2024
1 parent 667440f commit de59a9d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/website/public/icons/crypto/polkadot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion apps/website/src/app/demos/dashboard-trade/db/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
import {CoingeckoSimplePriceRequest} from '@/types/coingecko/simplePrices/RequestParams'
import Currency from '@/enums/CoingeckoCryptoCurrency'

export function getCoingeckoRequestParams(): CoingeckoSimplePriceRequest {
const coingeckoIds = [
'bitcoin,ethereum,solana,chainlink,matic-network,near,cosmos',
Currency.BTC,
Currency.ETHEREUM,
Currency.SOLANA,
Currency.CHAINLINK,
Currency.POLYGON,
Currency.NEAR,
Currency.COSMOS,
Currency.POLKADOT,
]

return {
Expand Down
12 changes: 12 additions & 0 deletions apps/website/src/enums/CoingeckoCryptoCurrency.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
enum CoingeckoCryptoCurrency {
BTC = 'bitcoin',
ETHEREUM = 'ethereum',
SOLANA = 'solana',
CHAINLINK = 'chainlink',
POLYGON = 'matic-network',
NEAR = 'near',
COSMOS = 'cosmos',
POLKADOT = 'polkadot',
}

export default CoingeckoCryptoCurrency

0 comments on commit de59a9d

Please sign in to comment.