Function sp_npos_elections::helpers::assignment_staked_to_ratio [−][src]
pub fn assignment_staked_to_ratio<A: IdentifierT, P: PerThing>(
staked: Vec<StakedAssignment<A>>
) -> Vec<Assignment<A, P>>
Expand description
Converts a vector of staked assignments into ones with ratio values.
Note that this will NOT attempt at normalizing the result.