Skip to content

Commit

Permalink
remove duplicate check
Browse files Browse the repository at this point in the history
  • Loading branch information
neitdung committed Jun 19, 2024
1 parent 54b8b84 commit 94c9197
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/upgrades/commission/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ func updateValidatorCommission(ctx sdk.Context, staking *stakingkeeper.Keeper,
return commission, fmt.Errorf("cannot set validator commission to less than minimum rate of %s", staking.MinCommissionRate(ctx))
}

if commission.Rate.LT(newRate) {
commission.Rate = newRate
}

commission.Rate = newRate
if commission.MaxRate.LT(newRate) {
commission.MaxRate = newRate
}
Expand Down

0 comments on commit 94c9197

Please sign in to comment.