Skip to content

Commit

Permalink
update envVars.ts
Browse files Browse the repository at this point in the history
fix for network selection
  • Loading branch information
fenix2222 authored Jul 25, 2024
1 parent 703c395 commit 5117f9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/envVars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 5117f9b

Please sign in to comment.