Function sp_npos_elections::helpers::assignment_ratio_to_staked_normalized [−][src]
pub fn assignment_ratio_to_staked_normalized<A: IdentifierT, P: PerThing128, FS>(
ratio: Vec<Assignment<A, P>>,
stake_of: FS
) -> Result<Vec<StakedAssignment<A>>, Error> where
for<'r> FS: Fn(&'r A) -> VoteWeight,
Expand description
Same as assignment_ratio_to_staked
and try and do normalization.