Skip to content

Commit

Permalink
Update halving.js
Browse files Browse the repository at this point in the history
  • Loading branch information
DanCQ authored Mar 15, 2024
1 parent 0121313 commit ca25062
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions halving.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,11 +428,9 @@ async function getTransactions() {
const maxAmountUSD = (maxAmountBTC * exchangeRate).toFixed(2);
const minAmountUSD = (minAmountBTC * exchangeRate).toFixed(2);

document.getElementById('maxTransaction').textContent = `${formatNumberWithCommas(maxAmountBTC.toFixed(8))} BTC | ${formatNumberWithCommas(maxAmountUSD)} USD`;
document.getElementById('minTransaction').textContent = `${formatNumberWithCommas(minAmountBTC.toFixed(8))} BTC | ${formatNumberWithCommas(minAmountUSD)} USD`;

//document.getElementById('maxTransaction').textContent = `${formatNumberWithCommas(formatAmount(maxTransaction.out[0].value))} BTC | ${formatNumberWithCommas(formatAmount(maxAmountUSD))} USD`;
//document.getElementById('minTransaction').textContent = `${formatNumberWithCommas(formatAmount(minTransaction.out[0].value))} BTC | ${formatNumberWithCommas(formatAmount(minAmountUSD))} USD`;
document.getElementById('maxTransaction').textContent = `${formatNumberWithCommas(formatAmount(maxAmountBTC.toFixed(8))} BTC | ${formatNumberWithCommas(formatAmount(maxAmountUSD))} USD`;
document.getElementById('minTransaction').textContent = `${formatNumberWithCommas(formatAmount(minAmountBTC.toFixed(8))} BTC | ${formatNumberWithCommas(formatAmount(minAmountUSD))} USD`;

} catch (error) {
console.error(error);
}
Expand Down

0 comments on commit ca25062

Please sign in to comment.