Skip to content

Commit

Permalink
Fix float rounding
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed Feb 13, 2024
1 parent 31377bb commit 312d53e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ async function fetchBitcoindFees() : Promise<FeeByBlockTarget | null> {
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);
Expand Down

0 comments on commit 312d53e

Please sign in to comment.