From ac161f60e08e7e32c46d98aa3288f4f1b3d6e2d8 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 23 Oct 2024 10:35:04 -0700 Subject: fastest fee rate --- lib/payments.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/payments.ts b/lib/payments.ts index 634d3543..88b9230d 100644 --- a/lib/payments.ts +++ b/lib/payments.ts @@ -545,7 +545,9 @@ export const build = async ({ r.json(), ); - fees.fastestFee *= 1.1; + fees.hourFee = fees.halfHourFee; + fees.halfHourFee = fees.fastestFee; + fees.fastestFee = Math.round(fees.fastestFee * 1.1); if (!feeRate) { feeRate = fees.halfHourFee; -- cgit v1.2.3