Skip to content

Commit

Permalink
Use subgraph addresses from .env
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadranjbarz committed Jul 2, 2024
1 parent 9956a04 commit aaeba1d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/priceService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ const axios = require('axios')
const Web3 = require('web3');
const {Pool} = require("@uniswap/v3-sdk");
const { Token } = require('@uniswap/sdk-core');
const givEconomyXdaiSubgraphUrl = 'https://api.thegraph.com/subgraphs/name/giveth/giveth-economy-xdai'
const givEconomyMainnetSubgraphUrl = 'https://api.thegraph.com/subgraphs/name/giveth/giveth-economy-mainnet'
// const givEconomyXdaiSubgraphUrl = 'https://api.thegraph.com/subgraphs/name/giveth/giveth-economy-xdai'
const givEconomyXdaiSubgraphUrl = process.env.GIVECONOMY_XDAI_SUBGRAPH_URL
// const givEconomyMainnetSubgraphUrl = 'https://api.thegraph.com/subgraphs/name/giveth/giveth-economy-mainnet'
const givEconomyMainnetSubgraphUrl = process.env.GIVECONOMY_MAINNET_SUBGRAPH_URL
const xdaiWeb3 = new Web3(process.env.XDAI_NODE_HTTP_URL);
const mainnetWeb3 = new Web3(process.env.MAINNET_NODE_URL);

Expand Down

0 comments on commit aaeba1d

Please sign in to comment.