Skip to content

Commit

Permalink
fix: undelegate amount
Browse files Browse the repository at this point in the history
  • Loading branch information
j75689 committed Nov 24, 2023
1 parent bf997ba commit 7b78fde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/stake/endblock.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ func handleRefundStake(ctx sdk.Context, k keeper.Keeper) sdk.Events {
result := handleMsgSideChainUndelegate(ctx.WithCrossStake(true), types.MsgSideChainUndelegate{
DelegatorAddr: delegation.DelegatorAddr,
ValidatorAddr: delegation.ValidatorAddr,
Amount: sdk.NewCoin(boundDenom, amount),
Amount: sdk.NewCoin(boundDenom, delegation.GetShares().RawInt()),
SideChainId: k.ScKeeper.BscSideChainId(ctx),
}, k)
refundEvents = refundEvents.AppendEvents(result.Events)
Expand Down

0 comments on commit 7b78fde

Please sign in to comment.