Skip to content

Commit

Permalink
fix: miscalculation of dyn. commission rate
Browse files Browse the repository at this point in the history
  • Loading branch information
fragwuerdig committed Sep 23, 2023
1 parent c5786be commit 927b49f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/dyncomm/keeper/dyncomm.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (k Keeper) CalculateDynCommission(ctx sdk.Context, validator stakingtypes.V
factorA := x.Sub(A)
quotient := x.Quo(C)
factorB := quotient.Add(B)
minComm := k.StakingKeeper.MinCommissionRate(ctx)
minComm := k.StakingKeeper.MinCommissionRate(ctx).MulInt64(100)

y := factorA.Mul(factorB)
if y.GT(D) {
Expand Down

0 comments on commit 927b49f

Please sign in to comment.