From f6f3569d77c8308407888c9c03d025cb375798a2 Mon Sep 17 00:00:00 2001 From: Mauro Lacy Date: Wed, 29 Nov 2023 13:31:15 +0100 Subject: [PATCH] Add TODO --- contracts/provider/external-staking/src/state.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contracts/provider/external-staking/src/state.rs b/contracts/provider/external-staking/src/state.rs index 338de097..03229e17 100644 --- a/contracts/provider/external-staking/src/state.rs +++ b/contracts/provider/external-staking/src/state.rs @@ -94,6 +94,8 @@ impl Stake { /// Slashes all the entries in `pending_unbonds`, returning total slashed amount. pub fn slash_pending(&mut self, info: &BlockInfo, slash_ratio: Decimal) -> Uint128 { + // TODO: Only slash undelegations that started after the misbehaviour's time. This is not + // possible right now, because we don't have access to the misbehaviour's time. (#177) self.pending_unbonds .iter_mut() .filter(|pending| pending.release_at > info.time)