Show zero base fee tag on channels
This commit is contained in:
@@ -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' }
|
||||
|
||||
Reference in New Issue
Block a user