From aaeba1d9f79fef5e76d47d1d0cc59e330021c9d8 Mon Sep 17 00:00:00 2001 From: Mohammad Ranjbar Z Date: Tue, 2 Jul 2024 12:50:16 +0330 Subject: [PATCH] Use subgraph addresses from .env --- src/priceService.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/priceService.ts b/src/priceService.ts index 7a6b543..c4c5494 100644 --- a/src/priceService.ts +++ b/src/priceService.ts @@ -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);