mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 11:41:02 +00:00
Generic Normalize impl for arithmetic and npos-elections (#6374)
* add normalize * better api for normalize * Some grumbles * Update primitives/arithmetic/src/lib.rs Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com> * More great review grumbles * Way better doc for everything. * Some improvement * Update primitives/arithmetic/src/lib.rs Co-authored-by: Bernhard Schuster <bernhard@ahoi.io> Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com> Co-authored-by: Bernhard Schuster <bernhard@ahoi.io>
This commit is contained in:
@@ -59,8 +59,8 @@ mod bench_closure_and_slice {
|
||||
}
|
||||
|
||||
/// Converts a vector of ratio assignments into ones with absolute budget value.
|
||||
pub fn assignment_ratio_to_staked_slice<A: IdentifierT, T: PerThing>(
|
||||
ratio: Vec<Assignment<A, T>>,
|
||||
pub fn assignment_ratio_to_staked_slice<A: IdentifierT, P: PerThing>(
|
||||
ratio: Vec<Assignment<A, P>>,
|
||||
stakes: &[VoteWeight],
|
||||
) -> Vec<StakedAssignment<A>>
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user