From 28ff1b708145495b377d2e0755370b5940b772fe Mon Sep 17 00:00:00 2001 From: Tom Kirkpatrick Date: Tue, 13 Feb 2024 22:27:58 +0000 Subject: [PATCH] Round estimates up to nearest integer --- src/server.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.tsx b/src/server.tsx index 4b80a88..db54c28 100644 --- a/src/server.tsx +++ b/src/server.tsx @@ -401,7 +401,7 @@ function addFeeEstimates(feeByBlockTarget: FeeByBlockTarget, feeEstimates: FeeBy const lowestFee = getLowestFee(feeByBlockTarget) for (const [blockTarget, fee] of Object.entries(feeEstimates)) { if (!lowestFee || fee < lowestFee) { - feeByBlockTarget[blockTarget] = fee; + feeByBlockTarget[blockTarget] = Math.ceil(fee); } } }