Function tp_npos_elections::assignment_staked_to_ratio[][src]

pub fn assignment_staked_to_ratio<A: IdentifierT, P: PerThing>(
    staked: Vec<StakedAssignment<A>>
) -> Vec<Assignment<A, P>>

Converts a vector of staked assignments into ones with ratio values.

Note that this will NOT attempt at normalizing the result.