diff --git a/dist/index.js b/dist/index.js index ac9a255..36a2a26 100644 --- a/dist/index.js +++ b/dist/index.js @@ -3085,7 +3085,7 @@ const populateTransaction = (signer, tx) => __async$b(void 0, null, function* () class TornadoWallet extends ethers.Wallet { constructor(key, provider, { gasPriceBump, gasLimitBump, gasFailover, bumpNonce } = {}) { super(key, provider); - this.gasPriceBump = gasPriceBump != null ? gasPriceBump : 1e3; + this.gasPriceBump = gasPriceBump != null ? gasPriceBump : 0; this.gasLimitBump = gasLimitBump != null ? gasLimitBump : 3e3; this.gasFailover = gasFailover != null ? gasFailover : false; this.bumpNonce = bumpNonce != null ? bumpNonce : false; @@ -3106,7 +3106,7 @@ class TornadoWallet extends ethers.Wallet { class TornadoVoidSigner extends ethers.VoidSigner { constructor(address, provider, { gasPriceBump, gasLimitBump, gasFailover, bumpNonce } = {}) { super(address, provider); - this.gasPriceBump = gasPriceBump != null ? gasPriceBump : 1e3; + this.gasPriceBump = gasPriceBump != null ? gasPriceBump : 0; this.gasLimitBump = gasLimitBump != null ? gasLimitBump : 3e3; this.gasFailover = gasFailover != null ? gasFailover : false; this.bumpNonce = bumpNonce != null ? bumpNonce : false; @@ -3122,7 +3122,7 @@ class TornadoVoidSigner extends ethers.VoidSigner { class TornadoRpcSigner extends ethers.JsonRpcSigner { constructor(provider, address, { gasPriceBump, gasLimitBump, gasFailover, bumpNonce } = {}) { super(provider, address); - this.gasPriceBump = gasPriceBump != null ? gasPriceBump : 1e3; + this.gasPriceBump = gasPriceBump != null ? gasPriceBump : 0; this.gasLimitBump = gasLimitBump != null ? gasLimitBump : 3e3; this.gasFailover = gasFailover != null ? gasFailover : false; this.bumpNonce = bumpNonce != null ? bumpNonce : false; diff --git a/dist/index.mjs b/dist/index.mjs index 91a4b6b..4cb7edc 100644 --- a/dist/index.mjs +++ b/dist/index.mjs @@ -3064,7 +3064,7 @@ const populateTransaction = (signer, tx) => __async$b(void 0, null, function* () class TornadoWallet extends Wallet { constructor(key, provider, { gasPriceBump, gasLimitBump, gasFailover, bumpNonce } = {}) { super(key, provider); - this.gasPriceBump = gasPriceBump != null ? gasPriceBump : 1e3; + this.gasPriceBump = gasPriceBump != null ? gasPriceBump : 0; this.gasLimitBump = gasLimitBump != null ? gasLimitBump : 3e3; this.gasFailover = gasFailover != null ? gasFailover : false; this.bumpNonce = bumpNonce != null ? bumpNonce : false; @@ -3085,7 +3085,7 @@ class TornadoWallet extends Wallet { class TornadoVoidSigner extends VoidSigner { constructor(address, provider, { gasPriceBump, gasLimitBump, gasFailover, bumpNonce } = {}) { super(address, provider); - this.gasPriceBump = gasPriceBump != null ? gasPriceBump : 1e3; + this.gasPriceBump = gasPriceBump != null ? gasPriceBump : 0; this.gasLimitBump = gasLimitBump != null ? gasLimitBump : 3e3; this.gasFailover = gasFailover != null ? gasFailover : false; this.bumpNonce = bumpNonce != null ? bumpNonce : false; @@ -3101,7 +3101,7 @@ class TornadoVoidSigner extends VoidSigner { class TornadoRpcSigner extends JsonRpcSigner { constructor(provider, address, { gasPriceBump, gasLimitBump, gasFailover, bumpNonce } = {}) { super(provider, address); - this.gasPriceBump = gasPriceBump != null ? gasPriceBump : 1e3; + this.gasPriceBump = gasPriceBump != null ? gasPriceBump : 0; this.gasLimitBump = gasLimitBump != null ? gasLimitBump : 3e3; this.gasFailover = gasFailover != null ? gasFailover : false; this.bumpNonce = bumpNonce != null ? bumpNonce : false; diff --git a/dist/index.umd.js b/dist/index.umd.js index 1711c66..6f4c641 100644 --- a/dist/index.umd.js +++ b/dist/index.umd.js @@ -73045,7 +73045,7 @@ const populateTransaction = (signer, tx) => __async(void 0, null, function* () { class TornadoWallet extends Wallet { constructor(key, provider, { gasPriceBump, gasLimitBump, gasFailover, bumpNonce } = {}) { super(key, provider); - this.gasPriceBump = gasPriceBump != null ? gasPriceBump : 1e3; + this.gasPriceBump = gasPriceBump != null ? gasPriceBump : 0; this.gasLimitBump = gasLimitBump != null ? gasLimitBump : 3e3; this.gasFailover = gasFailover != null ? gasFailover : false; this.bumpNonce = bumpNonce != null ? bumpNonce : false; @@ -73066,7 +73066,7 @@ class TornadoWallet extends Wallet { class TornadoVoidSigner extends VoidSigner { constructor(address, provider, { gasPriceBump, gasLimitBump, gasFailover, bumpNonce } = {}) { super(address, provider); - this.gasPriceBump = gasPriceBump != null ? gasPriceBump : 1e3; + this.gasPriceBump = gasPriceBump != null ? gasPriceBump : 0; this.gasLimitBump = gasLimitBump != null ? gasLimitBump : 3e3; this.gasFailover = gasFailover != null ? gasFailover : false; this.bumpNonce = bumpNonce != null ? bumpNonce : false; @@ -73082,7 +73082,7 @@ class TornadoVoidSigner extends VoidSigner { class TornadoRpcSigner extends JsonRpcSigner { constructor(provider, address, { gasPriceBump, gasLimitBump, gasFailover, bumpNonce } = {}) { super(provider, address); - this.gasPriceBump = gasPriceBump != null ? gasPriceBump : 1e3; + this.gasPriceBump = gasPriceBump != null ? gasPriceBump : 0; this.gasLimitBump = gasLimitBump != null ? gasLimitBump : 3e3; this.gasFailover = gasFailover != null ? gasFailover : false; this.bumpNonce = bumpNonce != null ? bumpNonce : false; diff --git a/src/providers.ts b/src/providers.ts index cecf4a3..e409c98 100644 --- a/src/providers.ts +++ b/src/providers.ts @@ -522,7 +522,7 @@ export class TornadoWallet extends Wallet { ) { super(key, provider); // 10% bump from the recommended fee - this.gasPriceBump = gasPriceBump ?? 1000; + this.gasPriceBump = gasPriceBump ?? 0; // 30% bump from the recommended gaslimit this.gasLimitBump = gasLimitBump ?? 3000; this.gasFailover = gasFailover ?? false; @@ -557,7 +557,7 @@ export class TornadoVoidSigner extends VoidSigner { ) { super(address, provider); // 10% bump from the recommended fee - this.gasPriceBump = gasPriceBump ?? 1000; + this.gasPriceBump = gasPriceBump ?? 0; // 30% bump from the recommended gaslimit this.gasLimitBump = gasLimitBump ?? 3000; this.gasFailover = gasFailover ?? false; @@ -586,7 +586,7 @@ export class TornadoRpcSigner extends JsonRpcSigner { ) { super(provider, address); // 10% bump from the recommended fee - this.gasPriceBump = gasPriceBump ?? 1000; + this.gasPriceBump = gasPriceBump ?? 0; // 30% bump from the recommended gaslimit this.gasLimitBump = gasLimitBump ?? 3000; this.gasFailover = gasFailover ?? false;