Show zero base fee tag on channels

This commit is contained in:
nymkappa
2022-09-08 18:56:25 +02:00
parent 249a65bb57
commit aa1519c18e
2 changed files with 68 additions and 38 deletions

View File

@@ -7,6 +7,7 @@ export class AmountShortenerPipe implements PipeTransform {
transform(num: number, ...args: any[]): unknown {
const digits = args[0] ?? 1;
const unit = args[1] || undefined;
const isMoney = args[2] || false;
if (num < 1000) {
return num.toFixed(digits);
@@ -16,7 +17,7 @@ export class AmountShortenerPipe implements PipeTransform {
{ value: 1, symbol: '' },
{ value: 1e3, symbol: 'k' },
{ value: 1e6, symbol: 'M' },
{ value: 1e9, symbol: 'G' },
{ value: 1e9, symbol: isMoney ? 'B' : 'G' },
{ value: 1e12, symbol: 'T' },
{ value: 1e15, symbol: 'P' },
{ value: 1e18, symbol: 'E' }