Bugfix: Liquid asset issuance / circulating / burned amounts are missing decimal point
fixes #112
This commit is contained in:
@@ -11,6 +11,7 @@ import { of, merge, Subscription, combineLatest } from 'rxjs';
|
||||
import { SeoService } from 'src/app/services/seo.service';
|
||||
import { environment } from 'src/environments/environment';
|
||||
import { AssetsService } from 'src/app/services/assets.service';
|
||||
import { formatNumber, moveDec } from 'src/app/bitcoin.utils';
|
||||
|
||||
@Component({
|
||||
selector: 'app-asset',
|
||||
@@ -189,6 +190,10 @@ export class AssetComponent implements OnInit, OnDestroy {
|
||||
this.totalConfirmedTxCount = this.asset.chain_stats.tx_count;
|
||||
}
|
||||
|
||||
formatAmount(value: number, precision = 0): number | string {
|
||||
return moveDec(value, -precision);
|
||||
}
|
||||
|
||||
ngOnDestroy() {
|
||||
this.mainSubscription.unsubscribe();
|
||||
this.websocketService.stopTrackingAsset();
|
||||
|
||||
Reference in New Issue
Block a user