2021-05-10 18:15:25 +02:00
|
|
|
import { Pipe, PipeTransform } from '@angular/core';
|
2020-12-05 07:28:40 +01:00
|
|
|
|
2021-05-10 18:15:25 +02:00
|
|
|
@Pipe({ name: 'tokenRatio' })
|
2020-12-05 07:28:40 +01:00
|
|
|
export class TokenRatioPipe implements PipeTransform {
|
|
|
|
transform(value: any, ...args): any {
|
2021-03-10 10:47:01 +01:00
|
|
|
return Number(value) / Math.pow(10, 6);
|
2020-12-05 07:28:40 +01:00
|
|
|
}
|
|
|
|
}
|