2020-02-16 22:15:07 +07:00
|
|
|
<ng-container *ngIf="(viewFiat$ | async) && (conversions$ | async) as conversions; else viewFiatVin">
|
|
|
|
<span>{{ conversions.USD * (satoshis / 100000000) | currency:'USD':'symbol':'1.2-2' }}</span>
|
|
|
|
</ng-container>
|
|
|
|
<ng-template #viewFiatVin>
|
2020-05-02 12:36:35 +07:00
|
|
|
<ng-template [ngIf]="network === 'liquid' && satoshis === undefined" [ngIfElse]="default">
|
2020-03-25 21:29:40 +07:00
|
|
|
Confidential
|
|
|
|
</ng-template>
|
|
|
|
<ng-template #default>
|
2020-05-10 16:03:22 +07:00
|
|
|
{{ satoshis / 100000000 | number : digitsInfo }}
|
|
|
|
<ng-template [ngIf]="network === 'liquid'">L-BTC</ng-template>
|
2020-05-09 20:37:50 +07:00
|
|
|
<ng-template [ngIf]="network === 'testnet'">tBTC</ng-template>
|
2020-05-10 16:03:22 +07:00
|
|
|
<ng-template [ngIf]="network === ''">BTC</ng-template>
|
2020-03-25 21:29:40 +07:00
|
|
|
</ng-template>
|
2020-02-16 22:15:07 +07:00
|
|
|
</ng-template>
|