mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 14:37:57 +00:00
committed by
GitHub
parent
cac9d85cb3
commit
fcfb766366
@@ -125,7 +125,7 @@ pub fn constant_ratio(existential_weight: VoteWeight, n_bags: usize) -> f64 {
|
||||
/// The last element is always `VoteWeight::MAX`.
|
||||
///
|
||||
/// All other elements are computed from the previous according to the formula
|
||||
/// `threshold[k + 1] = (threshold[k] * ratio).max(threshold[k] + 1);
|
||||
/// `threshold[k + 1] = (threshold[k] * ratio).max(threshold[k] + 1);`
|
||||
pub fn thresholds(
|
||||
existential_weight: VoteWeight,
|
||||
constant_ratio: f64,
|
||||
|
||||
Reference in New Issue
Block a user