aboutsummaryrefslogtreecommitdiffstats
path: root/lib/payments.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/payments.ts')
-rw-r--r--lib/payments.ts9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/payments.ts b/lib/payments.ts
index 07048f99..bbdbe2f5 100644
--- a/lib/payments.ts
+++ b/lib/payments.ts
@@ -655,13 +655,10 @@ export const build = async ({
? { fastestFee: 0.1, halfHourFee: 0.1, hourFee: 0.1 }
: await fetch(`${api[type]}/fees/recommended`).then((r) => r.json());
- fees.hourFee = fees.halfHourFee;
- fees.halfHourFee = fees.fastestFee;
-
if (type === PaymentType.bitcoin) {
- fees.fastestFee = Math.round(fees.fastestFee * 1.1);
- if (fees.fastestFee === fees.halfHourFee) fees.fastestFee++;
- if (fees.hourFee === fees.halfHourFee) fees.hourFee--;
+ fees.hourFee = fees.halfHourFee;
+ fees.halfHourFee = fees.fastestFee;
+ fees.fastestFee = Math.ceil(fees.fastestFee * 1.5);
}
if (!feeRate) {