Skip to content

Commit

Permalink
Fix regression (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
StrathCole authored Oct 4, 2023
1 parent 940f53f commit 43c6797
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions x/dyncomm/keeper/dyncomm.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,9 @@ func (k Keeper) UpdateValidatorMinRates(ctx sdk.Context, validator stakingtypes.
)

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

// Debug
minRate = k.GetDynCommissionRate(ctx, validator.OperatorAddress)
targetRate = k.GetTargetCommissionRate(ctx, validator.OperatorAddress)
ctx.Logger().Info("dyncomm:", "val", validator.OperatorAddress, "min_rate", minRate, "target_rate", targetRate)

Expand Down

0 comments on commit 43c6797

Please sign in to comment.