diff --git a/src/server.tsx b/src/server.tsx index 3406834..91b6c6c 100644 --- a/src/server.tsx +++ b/src/server.tsx @@ -235,7 +235,7 @@ async function fetchBitcoindFees() : Promise { var feeRate = response[i].result?.feerate; if (feeRate) { // convert the returned value to satoshis, as it's currently returned in BTC. - const satPerKB = customRound(feeRate, 1e8); + const satPerKB = customRound(feeRate * 1e8, 8); result[target] = applyFeeMultiplier(satPerKB); } else { console.error(`Failed to fetch fee estimate from bitcoind for confirmation target ${target}`, response[i].result?.errors);