Introduce staking supply, contract and wallet (#1324)
* Introduce staking supply, contract and wallet * Migration staking supply (#1327) * Staking supply to params migration * Include into migration entrypoint * StateParams merge * Add changelog * Make everyone happy
This commit is contained in:
@@ -108,7 +108,7 @@ impl<C> ValidatorCacheRefresher<C> {
|
||||
.map(|mixnode_bond| {
|
||||
let stake_saturation = mixnode_bond
|
||||
.stake_saturation(
|
||||
interval_reward_params.circulating_supply(),
|
||||
interval_reward_params.staking_supply(),
|
||||
interval_reward_params.rewarded_set_size() as u32,
|
||||
)
|
||||
.to_num();
|
||||
|
||||
@@ -188,7 +188,7 @@ pub(crate) async fn get_mixnode_stake_saturation(
|
||||
let interval_reward_params = interval_reward_params.into_inner();
|
||||
|
||||
let saturation = bond.mixnode_bond.stake_saturation(
|
||||
interval_reward_params.circulating_supply(),
|
||||
interval_reward_params.staking_supply(),
|
||||
interval_reward_params.rewarded_set_size() as u32,
|
||||
);
|
||||
|
||||
|
||||
@@ -193,7 +193,7 @@ impl<C> Client<C> {
|
||||
* interval_reward_percent as u128,
|
||||
state.mixnode_rewarded_set_size as u128,
|
||||
state.mixnode_active_set_size as u128,
|
||||
this.get_circulating_supply().await?,
|
||||
state.staking_supply.u128(),
|
||||
this.get_sybil_resistance_percent().await?,
|
||||
this.get_active_set_work_factor().await?,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user