mirror of
https://github.com/mempool/mempool.git
synced 2025-04-17 00:01:19 +02:00
Add a 5% tolerance for declaring a "unpeg event"
This commit is contained in:
parent
00e0eea60e
commit
1a5c2c4d3a
@ -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++;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user