Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
inon-man committed Aug 10, 2023
1 parent 1563089 commit cc1e365
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/staking/keeper/delegation.go
Original file line number Diff line number Diff line change
Expand Up @@ -635,12 +635,12 @@ func (k Keeper) Delegate(
err = k.BeforeDelegationCreated(ctx, delAddr, validator.GetOperator())
}

delegatorAddress := sdk.MustAccAddressFromBech32(delegation.DelegatorAddress)

if err != nil {
return sdk.ZeroDec(), err
}

delegatorAddress := sdk.MustAccAddressFromBech32(delegation.DelegatorAddress)

currHeight := ctx.BlockHeight()
// If Delegations are allowed again, limit validator power to 20%
if currHeight >= DelegatePowerRevertHeight {
Expand Down

0 comments on commit cc1e365

Please sign in to comment.