Skip to content

Commit

Permalink
fix: todo in queries
Browse files Browse the repository at this point in the history
  • Loading branch information
shifty11 committed Oct 5, 2023
1 parent 448b2b8 commit 5298410
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions x/query/keeper/grpc_account_assets.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,10 @@ func (k Keeper) AccountAssets(goCtx context.Context, req *types.QueryAccountAsse
// ProtocolFunding
// ===============

// Iterate all pools and look if the user is funding
// TODO(rapha): fix this
//for _, pool := range k.poolKeeper.GetAllPools(ctx) {
// response.ProtocolFunding += pool.GetFunderAmount(req.Address)
//}
// Iterate all fundings of the user to get total funding amount
for _, funding := range k.fundersKeeper.GetFundingsOfFunder(ctx, req.Address) {
response.ProtocolFunding += funding.Amount
}

return &response, nil
}

0 comments on commit 5298410

Please sign in to comment.