Feature/downcast reward estimation (#1031)

* Downcast u128 to u64

* fmt

* Fix status

* fmt
This commit is contained in:
Drazen Urch
2022-01-14 20:57:51 +01:00
committed by GitHub
parent 44d59ff8c2
commit 8fb54dd4e7
4 changed files with 39 additions and 22 deletions
@@ -35,9 +35,9 @@ pub struct MixnodeStatusResponse {
#[derive(Clone, Copy, Debug, Serialize, Deserialize)]
#[cfg_attr(feature = "ts-rs", derive(ts_rs::TS))]
pub struct RewardEstimationResponse {
pub estimated_total_node_reward: u128,
pub estimated_operator_reward: u128,
pub estimated_delegators_reward: u128,
pub estimated_total_node_reward: u64,
pub estimated_operator_reward: u64,
pub estimated_delegators_reward: u64,
pub current_epoch_start: i64,
pub current_epoch_end: i64,