Merge pull request #5014 from mempool/natsoni/small-fixes-liquid-frontend

Minor changes on Liquid frontend
This commit is contained in:
softsimon 2024-04-26 12:07:07 +07:00 committed by GitHub
commit b4decb8f91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 4 deletions

View File

@ -122,8 +122,8 @@ export class FederationUtxosListComponent implements OnInit {
getGradientColor(value: number): string {
const distanceToGreen = Math.abs(4032 - value);
const green = 'var(--green)';
const red = 'var(--red)';
const green = '#3bcc49';
const red = '#dc3545';
if (value < 0) {
return red;

View File

@ -3,7 +3,7 @@
<h5 class="card-title" i18n="liquid.unpeg">Unpeg</h5>
<div *ngIf="(unbackedMonths$ | async) as unbackedMonths; else loadingData" class="card-text">
<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>
</div>
</ng-container>

View File

@ -34,7 +34,7 @@ export class ReservesRatioStatsComponent implements OnInit {
let avg = 0;
for (let i = 0; i < ratioSeries.length; i++) {
avg += ratioSeries[i];
if (ratioSeries[i] < 1) {
if (ratioSeries[i] < 0.95) {
total++;
}
}

View File

@ -85,6 +85,7 @@ export class ReservesRatioComponent implements OnInit, OnChanges {
{
type: 'gauge',
startAngle: 180,
silent: true,
endAngle: 0,
center: ['50%', '75%'],
radius: '100%',