Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Yarom Swisa authored and Yarom Swisa committed Apr 7, 2024
1 parent eb8b0bc commit 3bee695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/dualstaking/keeper/msg_server_delegate.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (k Keeper) DelegateFull(ctx sdk.Context, delegator string, validator string

delegationAfter, _ := k.GetDelegation(ctx, delegator, types.EMPTY_PROVIDER, types.EMPTY_PROVIDER_CHAINID, nextEpoch)

amount = delegationAfter.Amount.Sub(delegationBefore.Amount)
amount.Amount = delegationAfter.Amount.Amount.Sub(delegationBefore.Amount.Amount)

err = k.Redelegate(
ctx,
Expand Down

0 comments on commit 3bee695

Please sign in to comment.