From 08e0fb7f4bc071e02324ff72d50195edf7416598 Mon Sep 17 00:00:00 2001 From: eddie <66155195+just-toby@users.noreply.github.com> Date: Thu, 7 Sep 2023 13:56:30 -0700 Subject: [PATCH] fix: replace base rpc urls with public rpcs (#7259) * fix: replace base rpc urls with public rpcs * fix: designation of safe vs fallback * fix: remove duplicate --- .env | 1 - src/constants/networks.ts | 16 +++++++--------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.env b/.env index d4c8681ed6..78db6017c0 100644 --- a/.env +++ b/.env @@ -4,7 +4,6 @@ REACT_APP_AMPLITUDE_PROXY_URL="https://api.uniswap.org/v1/amplitude-proxy" REACT_APP_AWS_API_REGION="us-east-2" REACT_APP_AWS_API_ENDPOINT="https://beta.api.uniswap.org/v1/graphql" REACT_APP_BNB_RPC_URL="https://rough-sleek-hill.bsc.quiknode.pro/413cc98cbc776cda8fdf1d0f47003583ff73d9bf" -REACT_APP_BASE_MAINNET_RPC_URL="https://cool-white-diagram.base-mainnet.quiknode.pro/d8f036f35dfab2c68f32dfa822cd971e7a25a117/" REACT_APP_INFURA_KEY="4bf032f2d38a4ed6bb975b80d6340847" REACT_APP_MOONPAY_API="https://api.moonpay.com" REACT_APP_MOONPAY_LINK="https://us-central1-uniswap-mobile.cloudfunctions.net/signMoonpayLinkV2?platform=web&env=staging" diff --git a/src/constants/networks.ts b/src/constants/networks.ts index 20cae72133..f0cec7f27c 100644 --- a/src/constants/networks.ts +++ b/src/constants/networks.ts @@ -8,10 +8,6 @@ const QUICKNODE_BNB_RPC_URL = process.env.REACT_APP_BNB_RPC_URL if (typeof QUICKNODE_BNB_RPC_URL === 'undefined') { throw new Error(`REACT_APP_BNB_RPC_URL must be a defined environment variable`) } -const QUICKNODE_BASE_RPC_URL = process.env.REACT_APP_BASE_MAINNET_RPC_URL -if (typeof QUICKNODE_BASE_RPC_URL === 'undefined') { - throw new Error(`REACT_APP_BASE_MAINNET_RPC_URL must be a defined environment variable`) -} /** * Fallback JSON-RPC endpoints. @@ -111,11 +107,13 @@ export const FALLBACK_URLS = { ], [ChainId.BASE]: [ // "Safe" URLs - 'https://mainnet.base.org', - // "Unsafe" URLs - QUICKNODE_BASE_RPC_URL, - 'https://base-mainnet.blastapi.io/b5a802d8-151d-4443-90a7-699108dc4e01', - 'https://svc.blockdaemon.com/base/mainnet/native?apiKey=zpka_1334e7c450464d06b6e33a972a7a4e57_75320f43', + 'https://mainnet.base.org/', + 'https://developer-access-mainnet.base.org/', + 'https://base.gateway.tenderly.co', + 'https://base.publicnode.com', + // "Fallback" URLs + 'https://1rpc.io/base', + 'https://base.meowrpc.com', ], }