Merge pull request #5014 from mempool/natsoni/small-fixes-liquid-frontend
Minor changes on Liquid frontend
This commit is contained in:
commit
b4decb8f91
@ -122,8 +122,8 @@ export class FederationUtxosListComponent implements OnInit {
|
|||||||
|
|
||||||
getGradientColor(value: number): string {
|
getGradientColor(value: number): string {
|
||||||
const distanceToGreen = Math.abs(4032 - value);
|
const distanceToGreen = Math.abs(4032 - value);
|
||||||
const green = 'var(--green)';
|
const green = '#3bcc49';
|
||||||
const red = 'var(--red)';
|
const red = '#dc3545';
|
||||||
|
|
||||||
if (value < 0) {
|
if (value < 0) {
|
||||||
return red;
|
return red;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<h5 class="card-title" i18n="liquid.unpeg">Unpeg</h5>
|
<h5 class="card-title" i18n="liquid.unpeg">Unpeg</h5>
|
||||||
<div *ngIf="(unbackedMonths$ | async) as unbackedMonths; else loadingData" class="card-text">
|
<div *ngIf="(unbackedMonths$ | async) as unbackedMonths; else loadingData" class="card-text">
|
||||||
<ng-container *ngIf="unbackedMonths.historyComplete; else loadingData">
|
<ng-container *ngIf="unbackedMonths.historyComplete; else loadingData">
|
||||||
<div class="fee-text" [ngClass]="{'danger' : unbackedMonths.total > 0, 'correct': unbackedMonths.total === 0}">
|
<div class="fee-text" [ngClass]="{'danger' : unbackedMonths.total > 0, 'correct': unbackedMonths.total === 0}" i18n-ngbTooltip="liquid.unpeg-info" ngbTooltip="Number of times that the Federation's BTC holdings fall below 95% of the total L-BTC supply">
|
||||||
{{ unbackedMonths.total }} <span i18n="liquid.unpeg-event">Unpeg Event</span>
|
{{ unbackedMonths.total }} <span i18n="liquid.unpeg-event">Unpeg Event</span>
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
@ -34,7 +34,7 @@ export class ReservesRatioStatsComponent implements OnInit {
|
|||||||
let avg = 0;
|
let avg = 0;
|
||||||
for (let i = 0; i < ratioSeries.length; i++) {
|
for (let i = 0; i < ratioSeries.length; i++) {
|
||||||
avg += ratioSeries[i];
|
avg += ratioSeries[i];
|
||||||
if (ratioSeries[i] < 1) {
|
if (ratioSeries[i] < 0.95) {
|
||||||
total++;
|
total++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -85,6 +85,7 @@ export class ReservesRatioComponent implements OnInit, OnChanges {
|
|||||||
{
|
{
|
||||||
type: 'gauge',
|
type: 'gauge',
|
||||||
startAngle: 180,
|
startAngle: 180,
|
||||||
|
silent: true,
|
||||||
endAngle: 0,
|
endAngle: 0,
|
||||||
center: ['50%', '75%'],
|
center: ['50%', '75%'],
|
||||||
radius: '100%',
|
radius: '100%',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user