diff --git a/frontend/.env.example b/frontend/.env.example index ef30e6b9f..0ae9b23e6 100644 --- a/frontend/.env.example +++ b/frontend/.env.example @@ -8,5 +8,7 @@ BLOCKNATIVE_API_KEY=yourKeyHere FORTMATIC_API_KEY=yourKeyHere PORTIS_API_KEY=yourKeyHere +MAINNET_RPC_URL=yourRpcUrlHere + LOG_LEVEL=DEBUG MAINTENANCE_MODE_SEND=0 diff --git a/frontend/src/utils/constants.ts b/frontend/src/utils/constants.ts index 749f04916..fba16215c 100644 --- a/frontend/src/utils/constants.ts +++ b/frontend/src/utils/constants.ts @@ -1,8 +1,10 @@ import { StaticJsonRpcProvider } from 'src/utils/ethers'; -export const MAINNET_RPC_URL = `https://mainnet.infura.io/v3/${String(process.env.INFURA_ID)}`; +export const MAINNET_RPC_URL = String(process.env.MAINNET_RPC_URL); export const MAINNET_PROVIDER = new StaticJsonRpcProvider(MAINNET_RPC_URL); +console.log(`MAINNET_RPC_URL ${MAINNET_RPC_URL}`); + export const ETH_NETWORK_LOGO = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAADxdJREFUeJztXVtzFMcVplwuP8VVeYmf7HJ+RKqSl/AQP6X8H+yqXUEIjhMnQY5jO9oVCIzA5mowdzAYG4xAGAyWLC5G3IyDL8gOASUYKrarYGZWC7qi23b6692VV6uZ7e6ZnT3di07VV6JUaLfnnG+6z+lz+vScOXUoL6SzP52/2PtlQ9p7piHlLU2k3P2JJqcjkXLO8589/OdN/tPjvx8VEP8Wv+sp/J8O/A3+Fp+Bz8JnUj/XrPjIwjT7ybxm57fJlLsy2eR2cwPe4QZksYB/Nr4D34XvxHdTP/8DJ+k0e4S/lb9Jpr2WZJNzgRtjPDaDS4DvFmPgY8GYMDZq/dStNKQzv0qmnA1c6RkqgysQIoMxYqzU+qoLWZDO/jyZdl7lir1ObdwQZLiOseMZqPVonSTS7i+4AtsTT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