address utxo chart color by age & updates

This commit is contained in:
Mononaut committed 2024-09-22 17:09:35 +00:00
1 parent 1038b4f908
commit 06e699e52b
5 files changed
+211 -74

No files matched your search

+2 -2
View File
@@ -204,12 +204,12 @@ export function renderSats(value: number, network: string, mode: 'sats' | 'btc'
break;
}
if (mode === 'btc' || (mode === 'auto' && value >= 1000000)) {
return `${amountShortenerPipe.transform(value / 100000000)} ${prefix}BTC`;
return `${amountShortenerPipe.transform(value / 100000000, 2)} ${prefix}BTC`;
} else {
if (prefix.length) {
prefix += '-';
}
return `${amountShortenerPipe.transform(value)} ${prefix}sats`;
return `${amountShortenerPipe.transform(value, 2)} ${prefix}sats`;
}
}