Skip to content

Commit

Permalink
Fix delegation tracking issues with vesting accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
bsrinivas8687 committed May 1, 2021
1 parent c23afbf commit b6e1058
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x/bank/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ func (k BaseKeeper) trackDelegation(ctx sdk.Context, addr sdk.AccAddress, blockT
if ok {
// TODO: return error on account.TrackDelegation
vacc.TrackDelegation(blockTime, balance, amt)
k.ak.SetAccount(ctx, acc)
}

return nil
Expand All @@ -407,6 +408,7 @@ func (k BaseKeeper) trackUndelegation(ctx sdk.Context, addr sdk.AccAddress, amt
if ok {
// TODO: return error on account.TrackUndelegation
vacc.TrackUndelegation(amt)
k.ak.SetAccount(ctx, acc)
}

return nil
Expand Down

0 comments on commit b6e1058

Please sign in to comment.