/// Evenly split an amount of e8s across a number of buckets
Evenly split an amount of e8s across a number of buckets
Evenly split an amount of e8s across a number of buckets
fn evenly_split_e8s(e8s: u64, num_buckets: u8) -> Vec<u64> {
    (1..=num_buckets)
        .map(|bucket_i| {
            let mut e8s_i = e8s / (num_buckets as u64);
            if bucket_i == num_buckets {
                e8s_i += e8s % (num_buckets as u64);
            }
            e8s_i
        })
        .collect()
}
fn evenly_split_e8s ( e8s : u64 , num_buckets : u8 ) -> Vec < u64 > { ( 1 ..= num_buckets ) . map ( | bucket_i | { let mut e8s_i = e8s / ( num_buckets as u64 ) ; if bucket_i == num_buckets { e8s_i += e8s % ( num_buckets as u64 ) ; } e8s_i } ) . collect ( ) }
Evenly split an amount of e8s across a number of buckets
Evenly split an amount of e8s across a number of buckets
e8s
u64
num_buckets
u8