Skip to content

Commit 7cf1451

Browse files
committed
fix: increase BT tx fee by 5 sats in case of the low fee env
1 parent 39613d1 commit 7cf1451

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/store/utils/blocktank.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,14 @@ export const startChannelPurchase = async ({
292292
});
293293

294294
const fees = getFeesStore().onchain;
295-
const feeRes = updateFee({ satsPerByte: fees.fast });
295+
let fee = fees.fast;
296+
// in case of the low fee market, we bump fee by 5 sats
297+
// details: https://github.com/synonymdev/bitkit/issues/2139
298+
if (fee <= 10) {
299+
fee += 5;
300+
}
301+
302+
const feeRes = updateFee({ satsPerByte: fee });
296303
if (feeRes.isErr()) {
297304
return err(feeRes.error.message);
298305
}

0 commit comments

Comments
 (0)