merge master
This commit is contained in:
commit
b2ccfb29d4
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "tx-manager",
|
"name": "tx-manager",
|
||||||
"version": "0.4.7",
|
"version": "0.4.8",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"types": "index.d.ts",
|
"types": "index.d.ts",
|
||||||
|
|
|
@ -463,7 +463,7 @@ class Transaction {
|
||||||
|
|
||||||
// Check network support for EIP-1559
|
// Check network support for EIP-1559
|
||||||
if (this.manager.config.ENABLE_EIP1559 && block && block.baseFeePerGas) {
|
if (this.manager.config.ENABLE_EIP1559 && block && block.baseFeePerGas) {
|
||||||
const maxPriorityFeePerGas = await this._estimatePriorityFee()
|
const maxPriorityFeePerGas = parseUnits(this.manager.config.DEFAULT_PRIORITY_FEE.toString(), 'gwei')
|
||||||
|
|
||||||
const maxFeePerGas = block.baseFeePerGas
|
const maxFeePerGas = block.baseFeePerGas
|
||||||
.mul(100 + this.manager.config.BASE_FEE_RESERVE_PERCENTAGE)
|
.mul(100 + this.manager.config.BASE_FEE_RESERVE_PERCENTAGE)
|
||||||
|
|
|
@ -18,7 +18,6 @@ const defaultConfig = {
|
||||||
ENABLE_EIP1559: true,
|
ENABLE_EIP1559: true,
|
||||||
DEFAULT_PRIORITY_FEE: 3,
|
DEFAULT_PRIORITY_FEE: 3,
|
||||||
BASE_FEE_RESERVE_PERCENTAGE: 50,
|
BASE_FEE_RESERVE_PERCENTAGE: 50,
|
||||||
PRIORITY_FEE_RESERVE_PERCENTAGE: 10,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class TxManager {
|
class TxManager {
|
||||||
|
|
Loading…
Reference in New Issue