refactor(constants): Parse CoinGecko API key from env

Set `VITE_COIN_GECKO_API_KEY='...' in your .env file
This commit is contained in:
Emil Ivanichkov 2024-04-23 14:07:20 +03:00 committed by Emil Ivanichkov
parent ce6d719779
commit bcc9e9e30c

View File

@ -1,4 +1,5 @@
import { LogType } from './types'
import { assertNotNull } from './utilities'
// App
export const apiKey = '1730eff0-9d50-4382-a3fe-89f0d34a2070'
@ -176,7 +177,9 @@ export const LINUX = 'Linux'
export const INITIAL_CURRENCY = 'usd'
export const LOADING = 'Loading...'
export const COIN_GECKO_API_KEY = 'CG-FPQgFNTF26FzyCA7vtbaSh5U'
export const COIN_GECKO_API_KEY = assertNotNull(
import.meta.env.VITE_COIN_GECKO_API_KEY,
)
export const DEPOSIT_SUBTITLE =
'Connect you Wallet to stake required ETH for new validators'