Skip to content

Commit

Permalink
Merge pull request #47 from xrplevm/poa/fix/remove-validator-shares
Browse files Browse the repository at this point in the history
fix(x/poa): Shares on ExecuteRemoveValidator
  • Loading branch information
AdriaCarrera authored Jan 21, 2025
2 parents b159a9c + 3bc1884 commit de926e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/poa/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ func (k Keeper) ExecuteRemoveValidator(ctx sdk.Context, validatorAddress string)
}

// Unbond self-delegation so the validator is removed after being unbonded
_, err = k.sk.Unbond(ctx, sdk.AccAddress(valAddress), valAddress, math.LegacyOneDec())
_, err = k.sk.Unbond(ctx, sdk.AccAddress(valAddress), valAddress, changedVal.DelegatorShares)
if err != nil {
return err
}
Expand Down

0 comments on commit de926e1

Please sign in to comment.