diff --git a/proof_of_stake/src/lib.rs b/proof_of_stake/src/lib.rs index 478cf91d44..cf0b0865b3 100644 --- a/proof_of_stake/src/lib.rs +++ b/proof_of_stake/src/lib.rs @@ -3092,14 +3092,14 @@ where // TODO: apply rewards let slashes = find_validator_slashes(storage, &bond_id.validator)?; // dbg!(&slashes); - let slash_rates = - slashes - .iter() - .fold(BTreeMap::::new(), |mut map, slash| { - let tot_rate = map.entry(slash.epoch).or_default(); - *tot_rate = cmp::min(Dec::one(), *tot_rate + slash.rate); - map - }); + // let slash_rates = + // slashes + // .iter() + // .fold(BTreeMap::::new(), |mut map, slash| { + // let tot_rate = map.entry(slash.epoch).or_default(); + // *tot_rate = cmp::min(Dec::one(), *tot_rate + slash.rate); + // map + // }); // dbg!(&slash_rates); // Accumulate incoming redelegations slashes from source validator, if any.