feat(constants): add coin gecko api key

This commit is contained in:
RadoslavDimchev 2024-04-19 20:09:31 +03:00 committed by Emil Ivanichkov
parent a6d537b677
commit 76f043301d
2 changed files with 4 additions and 3 deletions

View File

@ -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,
},
},
)

View File

@ -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'