Module sp_npos_elections::helpers
source · Expand description
Helper methods for npos-elections.
Functions
- Converts a vector of ratio assignments into ones with absolute budget value.
- Same as
assignment_ratio_to_staked
and try and do normalization. - Converts a vector of staked assignments into ones with ratio values.
- Same as
assignment_staked_to_ratio
and try and do normalization.