mirror of
https://github.com/stronk-dev/LivepeerEvents.git
synced 2025-07-05 10:45:10 +02:00
fix
This commit is contained in:
parent
00bcba6899
commit
de09e55760
@ -2281,8 +2281,8 @@ let serviceUriFeeCostL2 = 0;
|
|||||||
// Queries Alchemy for block info and gas fees
|
// Queries Alchemy for block info and gas fees
|
||||||
const parseL1Blockchain = async function () {
|
const parseL1Blockchain = async function () {
|
||||||
try {
|
try {
|
||||||
const l1Wei = await deprWeb3main.core.getGasPrice();
|
const l1Wei = await deprWeb3main.eth.getGasPrice();
|
||||||
l1block = await deprWeb3main.core.getBlockNumber();
|
l1block = await deprWeb3main.eth.getBlockNumber();
|
||||||
l1Gwei = l1Wei / 1000000000;
|
l1Gwei = l1Wei / 1000000000;
|
||||||
redeemRewardCostL1 = (redeemRewardGwei * l1Gwei) / 1000000000;
|
redeemRewardCostL1 = (redeemRewardGwei * l1Gwei) / 1000000000;
|
||||||
claimTicketCostL1 = (claimTicketGwei * l1Gwei) / 1000000000;
|
claimTicketCostL1 = (claimTicketGwei * l1Gwei) / 1000000000;
|
||||||
@ -2296,8 +2296,8 @@ const parseL1Blockchain = async function () {
|
|||||||
}
|
}
|
||||||
const parseL2Blockchain = async function () {
|
const parseL2Blockchain = async function () {
|
||||||
try {
|
try {
|
||||||
const l2Wei = await deprWeb3.core.getGasPrice();
|
const l2Wei = await deprWeb3.eth.getGasPrice();
|
||||||
l2block = await deprWeb3.core.getBlockNumber();
|
l2block = await deprWeb3.eth.getBlockNumber();
|
||||||
l2Gwei = l2Wei / 1000000000;
|
l2Gwei = l2Wei / 1000000000;
|
||||||
redeemRewardCostL2 = (redeemRewardGwei * l2Gwei) / 1000000000;
|
redeemRewardCostL2 = (redeemRewardGwei * l2Gwei) / 1000000000;
|
||||||
claimTicketCostL2 = (claimTicketGwei * l2Gwei) / 1000000000;
|
claimTicketCostL2 = (claimTicketGwei * l2Gwei) / 1000000000;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user