Skip to content

Commit

Permalink
revert: target rate shall only be updated through create and edit val…
Browse files Browse the repository at this point in the history
…idator msgs
  • Loading branch information
fragwuerdig committed Nov 1, 2023
1 parent 2c64e20 commit 24c61c4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion x/dyncomm/keeper/dyncomm.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ func (k Keeper) UpdateValidatorMinRates(ctx sdk.Context, validator stakingtypes.

k.StakingKeeper.SetValidator(ctx, newValidator)
k.SetDynCommissionRate(ctx, validator.OperatorAddress, minRate)
k.SetTargetCommissionRate(ctx, validator.OperatorAddress, newRate)

// Debug
targetRate = k.GetTargetCommissionRate(ctx, validator.OperatorAddress)
Expand Down

0 comments on commit 24c61c4

Please sign in to comment.