Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
yun-yeo committed Jun 28, 2022
1 parent 505fe58 commit c66baa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/ante/min_commission.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ func (min MinCommissionDecorator) AnteHandle(
switch msg := m.(type) {
case *stakingtypes.MsgCreateValidator:
// prevent new validators joining the set with
// commission set below 5%
// commission set below MinimumCommission
c := msg.Commission
if c.Rate.LT(minimumCommission) {
return sdkerrors.Wrap(sdkerrors.ErrUnauthorized,
fmt.Sprintf("commission can't be lower than %s%%", minimumCommission.String()),
fmt.Sprintf("commission can't be lower than %s%%", minimumCommission.MulInt64(100).String()),
)
}
case *stakingtypes.MsgEditValidator:
Expand Down

0 comments on commit c66baa0

Please sign in to comment.