Function tp_npos_elections::assignment_ratio_to_staked[][src]

pub fn assignment_ratio_to_staked<A: IdentifierT, P: PerThing128, FS>(
    ratios: Vec<Assignment<A, P>>,
    stake_of: FS
) -> Vec<StakedAssignment<A>> where
    FS: Fn(&'r A) -> VoteWeight

Converts a vector of ratio assignments into ones with absolute budget value.

Note that this will NOT attempt at normalizing the result.