Add display of token balance together with token amount.

This commit is contained in:
Spencer Ofwiti
2021-06-09 18:04:29 +03:00
parent 1dc751f15f
commit 71fc96bfe1
8 changed files with 63 additions and 25 deletions

View File

@@ -2,7 +2,7 @@ import { Pipe, PipeTransform } from '@angular/core';
@Pipe({ name: 'tokenRatio' })
export class TokenRatioPipe implements PipeTransform {
transform(value: any, ...args): any {
transform(value: any = 0, ...args): any {
return Number(value) / Math.pow(10, 6);
}
}