fix: remove duplicate import
This commit is contained in:
parent
60ae126712
commit
f5279df8f4
1 changed files with 1 additions and 2 deletions
|
|
@ -10,7 +10,6 @@ const Tx = require('ethereumjs-tx')
|
|||
const { default: PQueue } = require('p-queue')
|
||||
const util = require('ethereumjs-util')
|
||||
const coins = require('@lamassu/coins')
|
||||
const { BigNumber } = require('bignumber.js')
|
||||
|
||||
const _pify = require('pify')
|
||||
const BN = require('../../../bn')
|
||||
|
|
@ -208,7 +207,7 @@ function generateTx (_toAddress, wallet, amount, includesFee, cryptoCode) {
|
|||
const maxPriorityFeePerGas = new BN(web3.utils.toWei('2.5', 'gwei')) // web3 default value
|
||||
const neededPriority = new BN(web3.utils.toWei('2.0', 'gwei'))
|
||||
const maxFeePerGas = baseFeePerGas.plus(neededPriority)
|
||||
const newGasPrice = BigNumber.minimum(maxFeePerGas, baseFeePerGas.plus(maxPriorityFeePerGas))
|
||||
const newGasPrice = BN.minimum(maxFeePerGas, baseFeePerGas.plus(maxPriorityFeePerGas))
|
||||
|
||||
const toSend = includesFee
|
||||
? new BN(amount).minus(newGasPrice.times(gas))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue