Skip to content

Commit

Permalink
Merge pull request #52 from dev-ptera/feat/quorum-coefficient-subtext
Browse files Browse the repository at this point in the history
Add 2.6.0
  • Loading branch information
dev-ptera authored Jun 29, 2023
2 parents 9c4c81d + 597a09d commit d139a40
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## v2.6.0 (June 28, 2023)

### Added

- Added quorum coefficient subtext.

## v2.5.0 (June 26, 2023)

### Added
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yellow-spyglass-client",
"version": "2.5.0",
"version": "2.6.0",
"scripts": {
"ng": "ng",
"start": "ng serve -c development --open --host 0.0.0.0",
Expand Down
4 changes: 4 additions & 0 deletions src/app/pages/network/network.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@
It only takes <strong>one</strong> entity to achieve >{{ 100 - quorum.onlineWeightQuorumPercent }}% of the
online voting weight to prevent quorum and stall the network.
</div>
<div class="app-caption" style="margin-top: 16px; margin-bottom: 0">
<strong> {{ nextLevelQuorumCoefficientDifference | appComma }} </strong> BAN weight needs to migrate from
the largest representatives to increase this metric by 1.
</div>
</mat-card>

<mat-card responsive class="divider-border">
Expand Down
2 changes: 2 additions & 0 deletions src/app/pages/network/network.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export class NetworkComponent implements OnInit {
totalNumberOfPeers = 0;
nakamotoCoefficient: number;
quorumCoefficient: number;
nextLevelQuorumCoefficientDifference: number;

constructor(
public vp: ViewportService,
Expand All @@ -60,6 +61,7 @@ export class NetworkComponent implements OnInit {
this.peerVersions = response[1];
this.nakamotoCoefficient = response[2].nakamotoCoefficient;
this.quorumCoefficient = response[3].coefficient;
this.nextLevelQuorumCoefficientDifference = Math.ceil(response[3].repsWeight - response[3].delta);
this.quorum = response[4];
this.consensusChartOptions = this._createVoteWeightChart(this.quorum);
this.supplyChartOptions = this._createSupplyChart(this.supply);
Expand Down

0 comments on commit d139a40

Please sign in to comment.