From e46e68748939d53da067786c3700bae8a470d059 Mon Sep 17 00:00:00 2001 From: Christopher Goes Date: Sat, 30 Jun 2018 05:21:53 +0200 Subject: [PATCH] Add additional comment --- x/stake/keeper/slash.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/x/stake/keeper/slash.go b/x/stake/keeper/slash.go index f41db195c20e..9d4c9af62e4f 100644 --- a/x/stake/keeper/slash.go +++ b/x/stake/keeper/slash.go @@ -40,7 +40,9 @@ func (k Keeper) Slash(ctx sdk.Context, pubkey crypto.PubKey, infractionHeight in } ownerAddress := validator.GetOwner() - // Track remaining slash amount + // Track remaining slash amount for the validator + // This will decrease when we slash unbondings and + // redelegations, as that stake has since unbonded remainingSlashAmount := slashAmount switch {