validator-api: add apy data to mixnodes endpoint (#1393)

* validator-api: compute and return APY for all mixnode bonds

* validator-api: tidy

* validator-api: handle the absence of storage

* validator-api: some comments

* validator-api: refinements to apy calc

* validator-api: extract out some calculations

* changelog: add note
This commit is contained in:
Jon Häggblad
2022-06-23 13:42:29 +02:00
committed by GitHub
parent 63692eb30d
commit 3bd21300e0
8 changed files with 173 additions and 42 deletions
@@ -281,6 +281,7 @@ pub(crate) async fn get_mixnode_avg_uptime(
}))
}
// DEPRECATED: the uptime is available as part of the `/mixnodes/detailed` endpoint
#[openapi(tag = "status")]
#[get("/mixnodes/avg_uptime")]
pub(crate) async fn get_mixnode_avg_uptimes(