From 4aabb5ef886e9dfcc77f5b67061223307559f960 Mon Sep 17 00:00:00 2001 From: Tom Kirkpatrick Date: Sat, 6 Jan 2024 17:16:01 +0100 Subject: [PATCH] Support estimates down to minimumFee --- src/custom.d.ts | 1 + src/server.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/custom.d.ts b/src/custom.d.ts index 44c8875..4e475fb 100644 --- a/src/custom.d.ts +++ b/src/custom.d.ts @@ -4,6 +4,7 @@ type MempoolFeeEstimates = { halfHourFee: number; hourFee: number; economyFee: number; + minimumFee: number; }; type EsploraFeeEstimates = { diff --git a/src/server.tsx b/src/server.tsx index 4f258bd..0124e4e 100644 --- a/src/server.tsx +++ b/src/server.tsx @@ -158,7 +158,7 @@ function assignResults(results: PromiseSettledResult[]) { */ function calculateFees(mempoolFeeEstimates: MempoolFeeEstimates | null | undefined, esploraFeeEstimates: EsploraFeeEstimates | null | undefined) { let feeByBlockTarget: FeeByBlockTarget = {}; - const minFee = mempoolFeeEstimates?.economyFee; + const minFee = mempoolFeeEstimates?.minimumFee; if (mempoolFeeEstimates) { const blockTargetMapping: BlockTargetMapping = {