Skip to content

Commit

Permalink
Merge pull request #5 from helium/madninja/validator_poc
Browse files Browse the repository at this point in the history
Remove consensus percentage from hotspots
  • Loading branch information
madninja committed May 10, 2022
2 parents 4fe88b2 + af78fd9 commit d904649
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/cmd/rewards/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,12 @@ impl Cmd {
.bind("consensus_percent")
.fetch_one(pool)
.await?;
let (poc_challengers_percent,): (f64,) = sqlx::query_as(GET_VAR)
.bind("poc_challengers_percent")
.fetch_one(pool)
.await?;
let hotspot_avg_rewards = (rewards.total / self.days.abs() as f64)
* (1.0 - consensus_percent - securities_percent)
* (1.0 - consensus_percent - securities_percent - poc_challengers_percent)
/ hotspots_online as f64;

let summary = json!({
Expand Down

0 comments on commit d904649

Please sign in to comment.