fix: update gas price oracle

This commit is contained in:
Danil Kovtonyuk 2021-08-25 22:39:58 +10:00
parent e538236904
commit aa7d389766
3 changed files with 12 additions and 12 deletions

View File

@ -20,9 +20,9 @@
"bull": "^3.12.1", "bull": "^3.12.1",
"dotenv": "^8.2.0", "dotenv": "^8.2.0",
"express": "^4.17.1", "express": "^4.17.1",
"gas-price-oracle": "^0.3.4", "gas-price-oracle": "^0.3.5",
"ioredis": "^4.14.1", "ioredis": "^4.14.1",
"tx-manager": "^0.3.2", "tx-manager": "^0.3.3",
"uuid": "^8.3.0", "uuid": "^8.3.0",
"web3": "^1.3.0", "web3": "^1.3.0",
"web3-utils": "^1.2.2" "web3-utils": "^1.2.2"

View File

@ -50,7 +50,7 @@ function start() {
} }
async function getGasPrices() { async function getGasPrices() {
const networksWithOracle = [56, 137] const networksWithOracle = [56, 100, 137]
if (networksWithOracle.includes(netId)) { if (networksWithOracle.includes(netId)) {
return await gasPriceOracle.gasPrices() return await gasPriceOracle.gasPrices()
} }

View File

@ -2019,10 +2019,10 @@ functional-red-black-tree@^1.0.1:
resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327"
integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc= integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=
gas-price-oracle@^0.3.4: gas-price-oracle@^0.3.5:
version "0.3.4" version "0.3.5"
resolved "https://registry.yarnpkg.com/gas-price-oracle/-/gas-price-oracle-0.3.4.tgz#c98f6e24cf4bea96be2fe85383d53601b2ab5761" resolved "https://registry.yarnpkg.com/gas-price-oracle/-/gas-price-oracle-0.3.5.tgz#b7bff364e37fb7f30a2297cb65be80fceb4b8da3"
integrity sha512-bba9zWd2hQ32AuPFDzL8E5QxAzXNfGKR1UZCa14fSYJWc9yo3k7wabITMkGEv0cbKpHmyK/kHhhDTBtugI6eAg== integrity sha512-9NAKzmGgWLjGUc4XsqNJjh0JXthETucijNrkV47FrZIjP8YMzq4jhBvlNeMBt6VVGnr64qjIY2RWb+In7qNsFA==
dependencies: dependencies:
axios "^0.19.2" axios "^0.19.2"
bignumber.js "^9.0.0" bignumber.js "^9.0.0"
@ -3886,14 +3886,14 @@ tweetnacl@^0.14.3, tweetnacl@~0.14.0:
resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64"
integrity sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q= integrity sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=
tx-manager@^0.3.2: tx-manager@^0.3.3:
version "0.3.2" version "0.3.3"
resolved "https://registry.yarnpkg.com/tx-manager/-/tx-manager-0.3.2.tgz#0dd3c69efbaa22e3a664ac491ea366104f4ea764" resolved "https://registry.yarnpkg.com/tx-manager/-/tx-manager-0.3.3.tgz#d9bcbc8d8881bc83ac8b7368a46601ad7c6b7864"
integrity sha512-XBuDE82KKb3rPb+jyn63BRZduFKY/EqVNOWRXY1qeAq3K/eyr5eTvJkPZtty2gMBOzViHKG09lm24D3h4rAbSQ== integrity sha512-4yWGdoHk5lWNhoxgmwdHlz3bYW7um45dIlAOXmMxwUCMYJ1V/gySajW4eOWpjV6DxiffFgfOJ2YOqobxXmMXeA==
dependencies: dependencies:
async-mutex "^0.2.4" async-mutex "^0.2.4"
ethers "^5.0.17" ethers "^5.0.17"
gas-price-oracle "^0.3.4" gas-price-oracle "^0.3.5"
web3-core-promievent "^1.3.0" web3-core-promievent "^1.3.0"
type-check@~0.3.2: type-check@~0.3.2: