unite web3 instantiations

This commit is contained in:
0xngmi
2021-04-01 17:18:15 +02:00
parent 64cedcce7d
commit 42f91acdac
41 changed files with 43 additions and 142 deletions

View File

@@ -1,13 +1,7 @@
var Web3 = require('web3')
const env = require('dotenv').config()
const utils = require('./helper/utils')
const BigNumber = require('bignumber.js')
const web3 = new Web3(
new Web3.providers.HttpProvider(
`https://mainnet.infura.io/v3/${env.parsed.INFURA_KEY}`
)
)
const web3 = require('./config/web3.js');
const ADDRESS_CONFIG_ADDRESS = '0x1D415aa39D647834786EB9B5a333A50e9935b796'
const TOKEN_ADDRESS = '0x5cAf454Ba92e6F2c929DF14667Ee360eD9fD5b26'