Add fee rate display component

This commit is contained in:
Mononaut committed 2023-07-11 10:00:40 +09:00
1 parent a45f1fde1c
commit c29558db20
6 files changed
+39 -2

No files matched your search

@@ -9,7 +9,11 @@ export class FeeRoundingPipe implements PipeTransform {
@Inject(LOCALE_ID) private locale: string,
) {}
transform(fee: number): string {
transform(fee: number, rounding = null): string {
if (rounding) {
return formatNumber(fee, this.locale, rounding);
}
if (fee >= 100) {
return formatNumber(fee, this.locale, '1.0-0')
} else if (fee < 10) {