diff --git a/package.json b/package.json index d0c682c..2ebee73 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "type": "module", "name": "dlc-btc-lib", - "version": "2.4.18", + "version": "2.4.18-dfns-beta", "description": "This library provides a comprehensive set of interfaces and functions for minting dlcBTC tokens on supported blockchains.", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/dlc-handlers/software-wallet-dlc-handler.ts b/src/dlc-handlers/software-wallet-dlc-handler.ts index 72bb76d..963a53c 100644 --- a/src/dlc-handlers/software-wallet-dlc-handler.ts +++ b/src/dlc-handlers/software-wallet-dlc-handler.ts @@ -144,9 +144,9 @@ export class SoftwareWalletDLCHandler { attestorGroupPublicKey ); - const feeRate = 200n; // - // customFeeRate ?? - // BigInt(await getFeeRate(this.bitcoinBlockchainFeeRecommendationAPI, feeRateMultiplier)); + const feeRate = + customFeeRate ?? + BigInt(await getFeeRate(this.bitcoinBlockchainFeeRecommendationAPI, feeRateMultiplier)); const addressBalance = await getBalance(fundingPayment, this.bitcoinBlockchainAPI); @@ -184,9 +184,9 @@ export class SoftwareWalletDLCHandler { attestorGroupPublicKey ); - const feeRate = 200n; - // customFeeRate ?? - // BigInt(await getFeeRate(this.bitcoinBlockchainFeeRecommendationAPI, feeRateMultiplier)); + const feeRate = + customFeeRate ?? + BigInt(await getFeeRate(this.bitcoinBlockchainFeeRecommendationAPI, feeRateMultiplier)); const withdrawTransaction = await createWithdrawTransaction( this.bitcoinBlockchainAPI, @@ -218,9 +218,9 @@ export class SoftwareWalletDLCHandler { attestorGroupPublicKey ); - const feeRate = 200n; // - // customFeeRate ?? - // BigInt(await getFeeRate(this.bitcoinBlockchainFeeRecommendationAPI, feeRateMultiplier)); + const feeRate = + customFeeRate ?? + BigInt(await getFeeRate(this.bitcoinBlockchainFeeRecommendationAPI, feeRateMultiplier)); const depositTransaction = await createDepositTransaction( this.bitcoinBlockchainAPI,