2020-05-10 21:34:25 +07:00
|
|
|
<ng-container *ngIf="!noFiat && (viewFiat$ | async) && (conversions$ | async) as conversions; else viewFiatVin">
|
2023-02-21 12:36:43 +09:00
|
|
|
<span class="fiat" *ngIf="blockConversion; else noblockconversion">
|
2023-03-06 16:16:52 +09:00
|
|
|
{{ addPlus && satoshis >= 0 ? '+' : '' }}{{
|
2023-02-21 12:36:43 +09:00
|
|
|
(
|
2023-03-04 10:51:13 +09:00
|
|
|
(blockConversion.price[currency] > -1 ? blockConversion.price[currency] : null) ??
|
|
|
|
|
(blockConversion.price['USD'] > -1 ? blockConversion.price['USD'] * blockConversion.exchangeRates['USD' + currency] : null) ?? 0
|
2023-02-21 12:36:43 +09:00
|
|
|
) * satoshis / 100000000 | fiatCurrency : digitsInfo : currency
|
|
|
|
|
}}
|
|
|
|
|
</span>
|
|
|
|
|
<ng-template #noblockconversion>
|
2023-03-06 16:16:52 +09:00
|
|
|
<span class="fiat">{{ addPlus && satoshis >= 0 ? '+' : '' }}{{ (conversions[currency] > -1 ? conversions[currency] : 0) * satoshis / 100000000 | fiatCurrency : digitsInfo : currency }}
|
2023-03-04 10:51:13 +09:00
|
|
|
</span>
|
2023-02-21 12:36:43 +09:00
|
|
|
</ng-template>
|
2020-02-16 22:15:07 +07:00
|
|
|
</ng-container>
|
2023-02-21 12:36:43 +09:00
|
|
|
|
|
|
|
|
<ng-template #viewFiatVin>
|
2021-12-27 22:54:45 +04:00
|
|
|
<ng-template [ngIf]="(network === 'liquid' || network === 'liquidtestnet') && (satoshis === undefined || satoshis === null)" [ngIfElse]="default">
|
2020-12-02 04:19:33 +09:00
|
|
|
<span i18n="shared.confidential">Confidential</span>
|
2020-03-25 21:29:40 +07:00
|
|
|
</ng-template>
|
|
|
|
|
<ng-template #default>
|
2022-03-06 13:50:01 +01:00
|
|
|
‎{{ addPlus && satoshis >= 0 ? '+' : '' }}{{ satoshis / 100000000 | number : digitsInfo }}
|
2024-01-21 13:33:20 +01:00
|
|
|
<span class="symbol"><ng-template [ngIf]="network === 'liquid' && !forceBtc">L-</ng-template>
|
2021-12-27 22:54:45 +04:00
|
|
|
<ng-template [ngIf]="network === 'liquidtestnet'">tL-</ng-template>
|
2021-02-21 19:12:50 +07:00
|
|
|
<ng-template [ngIf]="network === 'testnet'">t</ng-template>
|
2021-05-03 10:11:30 -03:00
|
|
|
<ng-template [ngIf]="network === 'signet'">s</ng-template>BTC</span>
|
2020-03-25 21:29:40 +07:00
|
|
|
</ng-template>
|
2020-02-16 22:15:07 +07:00
|
|
|
</ng-template>
|