diff --git a/cmd/interlay/cbETHhelper.js b/cmd/interlay/cbETHhelper.js index 74b7fef06..0d3f08dca 100644 --- a/cmd/interlay/cbETHhelper.js +++ b/cmd/interlay/cbETHhelper.js @@ -2,7 +2,7 @@ const {collaterlaratio} = require("./utils") const Web3 = require("web3"); const web3 = new Web3( new Web3.providers.HttpProvider( - "https://mainnet.infura.io/v3/2883d1b22e0e4d62b535592dd8075fee" + process.env.ETHEREUM_NODE_URL ||"https://mainnet.infura.io/v3/2883d1b22e0e4d62b535592dd8075fee" ) ); diff --git a/cmd/interlay/index.js b/cmd/interlay/index.js index 1cf53d813..898190e5e 100644 --- a/cmd/interlay/index.js +++ b/cmd/interlay/index.js @@ -9,6 +9,18 @@ const { tokenkey, redis, allowedTokens, pricekey } = require("./utils"); let cache = redis(); + +/* + +Env variables +BIFROST_PARACHAIN_NODE_URL +BIFROST_POLKADOT_NODE_URL +INTERLAY_NODE_URL +KITSUNGI_NODE_URL +ETHEREUM_NODE_URL + + +*/ cronstart(); cron.schedule("* * * * *", () => { diff --git a/cmd/interlay/rETHhelper.js b/cmd/interlay/rETHhelper.js index 18cc8bebe..96b8cabd1 100644 --- a/cmd/interlay/rETHhelper.js +++ b/cmd/interlay/rETHhelper.js @@ -4,9 +4,10 @@ const { createResponse, getPrice } = require("./utils"); const ethers = require("ethers"); const bignumber = ethers.BigNumber; + const web3 = new Web3( new Web3.providers.HttpProvider( - "https://mainnet.infura.io/v3/2883d1b22e0e4d62b535592dd8075fee" + process.env.ETHEREUM_NODE_URL || "https://mainnet.infura.io/v3/2883d1b22e0e4d62b535592dd8075fee" ) ); let abi = [ diff --git a/cmd/interlay/stETHhelper.js b/cmd/interlay/stETHhelper.js index 5f428a474..805e836c6 100644 --- a/cmd/interlay/stETHhelper.js +++ b/cmd/interlay/stETHhelper.js @@ -2,9 +2,10 @@ const Web3 = require("web3"); const {createResponse,getPrice} = require("./utils") + const web3 = new Web3( new Web3.providers.HttpProvider( - "https://mainnet.infura.io/v3/2883d1b22e0e4d62b535592dd8075fee" + process.env.ETHEREUM_NODE_URL || "https://mainnet.infura.io/v3/2883d1b22e0e4d62b535592dd8075fee" ) ); let abi = [