Skip to content

Commit

Permalink
Merge pull request #155 from balancer/rpc/gnosis-gateway
Browse files Browse the repository at this point in the history
add gateway fm rpc
  • Loading branch information
franzns authored Feb 21, 2024
2 parents 9cdf500 + 9c65d77 commit a048b36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions app/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ export const schema = {
optional: true,
type: String,
},
GATEWAYFM_API_KEY: {
optional: true,
type: String,
},
ALCHEMY_API_KEY: {
optional: true,
type: String,
Expand Down
4 changes: 2 additions & 2 deletions modules/network/gnosis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ const gnosisNetworkData: NetworkData = {
excludedTokenAddresses: [],
},
rpcUrl:
(env.DEPLOYMENT_ENV as DeploymentEnv) === 'main'
? `https://rpc.eu-central-2.gateway.fm/v4/gnosis/non-archival/mainnet`
env.GATEWAYFM_API_KEY && (env.DEPLOYMENT_ENV as DeploymentEnv) === 'main'
? `https://rpc.eu-central-2.gateway.fm/v4/gnosis/archival/mainnet?apiKey=${env.GATEWAYFM_API_KEY}`
: 'https://gnosis.drpc.org',
rpcMaxBlockRange: 2000,
protocolToken: 'bal',
Expand Down

0 comments on commit a048b36

Please sign in to comment.