cic-staff-client/src/app/shared/_pipes/token-ratio.pipe.ts

9 lines
226 B
TypeScript
Raw Normal View History

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