aboutsummaryrefslogtreecommitdiffstats
path: root/lib/payments.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-10-23 10:35:04 -0700
committerAdam Soltys <[email protected]>2024-10-23 10:35:04 -0700
commitac161f60e08e7e32c46d98aa3288f4f1b3d6e2d8 (patch)
tree8f5a6b80a69f252bf9ca7fc391d88b59530a9e27 /lib/payments.ts
parent09496e7eaf40da92bb97b70bb09fa9d6dc115980 (diff)
downloadcoinos-server-ac161f60e08e7e32c46d98aa3288f4f1b3d6e2d8.tar.gz
coinos-server-ac161f60e08e7e32c46d98aa3288f4f1b3d6e2d8.zip
fastest fee rate
Diffstat (limited to 'lib/payments.ts')
-rw-r--r--lib/payments.ts4
1 files changed, 3 insertions, 1 deletions
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;