From 5117f9b45bd382d32ee73705d8f1ccb4288e4b2f Mon Sep 17 00:00:00 2001 From: Igor Goldobin Date: Thu, 25 Jul 2024 11:24:27 +1000 Subject: [PATCH] update envVars.ts fix for network selection --- src/utils/envVars.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/envVars.ts b/src/utils/envVars.ts index 2d693dc7..4794883b 100644 --- a/src/utils/envVars.ts +++ b/src/utils/envVars.ts @@ -9,11 +9,11 @@ export const ENABLE_RPC_FEATURES = Boolean(INFURA_PROJECT_ID && INFURA_PR export const RPC_URL = process.env.REACT_APP_RPC_URL || (`https://${IS_MAINNET ? "mainnet" : "auroria"}.infura.io/v3/${INFURA_PROJECT_ID}`); // public -export const NETWORK_NAME = IS_MAINNET ? 'Mainnet' : TESTNET_LAUNCHPAD_NAME; +export const NETWORK_NAME = IS_MAINNET ? 'Strax' : TESTNET_LAUNCHPAD_NAME; export const TICKER_NAME = IS_MAINNET ? 'STRAX' : 'tSTRAX'; export const ETHERSCAN_URL = IS_MAINNET ? 'https://etherscan.io/tx' : `https://${TESTNET_LAUNCHPAD_NAME.toLowerCase()}.etherscan.io/tx`; export const BEACONSCAN_URL = IS_MAINNET ? 'https://beaconscan.com/validator' : `https://beaconscan.com/${NETWORK_NAME.toLowerCase()}/validator`; -export const BEACONCHAIN_URL = (IS_NON_INFURA_TESTNET && process.env.REACT_APP_BEACONCHAIN_URL) || `https://${NETWORK_NAME.toLowerCase()}.beaconcha.in`; +export const BEACONCHAIN_URL = process.env.REACT_APP_BEACONCHAIN_URL || `https://${NETWORK_NAME.toLowerCase()}.beaconcha.in`; export const FORTMATIC_KEY = process.env.REACT_APP_FORTMATIC_KEY || 'pk_test_D113D979E0D3508F'; export const CONTRACT_ADDRESS = IS_MAINNET ? '0x0000000000000000000000000000000000001001' : process.env.REACT_APP_CONTRACT_ADDRESS; export const MIN_DEPOSIT_CLI_VERSION = process.env.REACT_APP_MIN_DEPOSIT_CLI_VERSION || '1.0.0';