mirror of
https://github.com/mempool/mempool.git
synced 2025-04-15 23:31:36 +02:00
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 {
|
||||
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;
|
||||
|
@ -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>
|
||||
|
@ -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++;
|
||||
}
|
||||
}
|
||||
|
@ -85,6 +85,7 @@ export class ReservesRatioComponent implements OnInit, OnChanges {
|
||||
{
|
||||
type: 'gauge',
|
||||
startAngle: 180,
|
||||
silent: true,
|
||||
endAngle: 0,
|
||||
center: ['50%', '75%'],
|
||||
radius: '100%',
|
||||
|
Loading…
x
Reference in New Issue
Block a user