diff --git a/app/env.ts b/app/env.ts index e745d240e..330afa173 100644 --- a/app/env.ts +++ b/app/env.ts @@ -21,6 +21,10 @@ export const schema = { optional: true, type: String, }, + GROVE_CITY_FANTOM: { + optional: true, + type: String, + }, INFURA_API_KEY: { optional: true, type: String, diff --git a/config/fantom.ts b/config/fantom.ts index cc7e4c6c5..66d27848c 100644 --- a/config/fantom.ts +++ b/config/fantom.ts @@ -65,7 +65,10 @@ export default { '0xb7c2ddb1ebac1056231ef22c1b0a13988537a274', // new tarot ], }, - rpcUrl: (env.DEPLOYMENT_ENV as DeploymentEnv) === 'main' ? `https://rpc.ankr.com/fantom` : `https://rpc.ftm.tools`, + rpcUrl: + (env.DEPLOYMENT_ENV as DeploymentEnv) === 'main' + ? `https://fantom-mainnet.rpc.grove.city/v1/${env.GROVE_CITY_FANTOM}` + : `https://rpc.ankr.com/fantom`, rpcMaxBlockRange: 1000, protocolToken: 'beets', beets: {