diff --git a/src/components/General/CurrencyDropdown.tsx b/src/components/General/CurrencyDropdown.tsx index 18596cd8..d6ea5494 100644 --- a/src/components/General/CurrencyDropdown.tsx +++ b/src/components/General/CurrencyDropdown.tsx @@ -6,7 +6,7 @@ import { XStack, YStack } from 'tamagui' import { RootState } from '../../redux/store' import { formatNumbersWithComa } from '../../utilities' import ChevronIcon from './ChevronIcon' -import { LOADING } from '../../constants' +import { COIN_GECKO_API_KEY, LOADING } from '../../constants' type CurrencyDropdownProps = { depositAmount: number @@ -40,7 +40,7 @@ const CurrencyDropdown = ({ depositAmount }: CurrencyDropdownProps) => { { headers: { accept: 'application/json', - 'x-cg-demo-api-key': 'CG-FPQgFNTF26FzyCA7vtbaSh5U', + 'x-cg-demo-api-key': COIN_GECKO_API_KEY, }, }, ) @@ -60,7 +60,7 @@ const CurrencyDropdown = ({ depositAmount }: CurrencyDropdownProps) => { { headers: { accept: 'application/json', - 'x-cg-demo-api-key': 'CG-FPQgFNTF26FzyCA7vtbaSh5U', + 'x-cg-demo-api-key': COIN_GECKO_API_KEY, }, }, ) diff --git a/src/constants.ts b/src/constants.ts index f7ebd06b..5a21f35b 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -176,6 +176,7 @@ export const LINUX = 'Linux' export const INITIAL_CURRENCY = 'usd' export const LOADING = 'Loading...' +export const COIN_GECKO_API_KEY = 'CG-FPQgFNTF26FzyCA7vtbaSh5U' export const DEPOSIT_SUBTITLE = 'Connect you Wallet to stake required ETH for new validators'