Corrected Bisq stats calculation.

fixes #280
This commit is contained in:
softsimon 2021-01-23 19:26:05 +07:00
parent e82c89a985
commit fb41f58f7c
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7
2 changed files with 3 additions and 3 deletions

View File

@ -233,8 +233,8 @@ class Bisq {
this.stats = {
addresses: Object.keys(this.addressIndex).length,
minted: minted,
burnt: burned,
minted: minted / 100,
burnt: burned / 100,
spent_txos: spent,
unspent_txos: unspent,
};

View File

@ -10,7 +10,7 @@
<tbody *ngIf="!isLoading; else loadingTemplate">
<tr>
<td class="td-width" i18n="BSQ existing amount">Existing amount</td>
<td>{{ (stats.minted - stats.burnt) / 100 | number: '1.2-2' }} BSQ</td>
<td>{{ (stats.minted - stats.burnt) | number: '1.2-2' }} BSQ</td>
</tr>
<tr>
<td i18n="BSQ minted amount">Minted amount</td>