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