Giveth / giveth-dapps-v2

This project is the aggregation of GIVeconomy and Giveth.io DApps in a single repo
https://staging.giveth.io
GNU General Public License v3.0
54 stars 32 forks source link

"Nan" is shown in Givpower table for some project #4275

Closed maryjaf closed 1 week ago

maryjaf commented 2 weeks ago

One record and TOTAL GIVPOWER are shown NaN in Givpower table for the below project

To Reproduce Steps to reproduce the behavior:

  1. Go to https://giveth.io/project/ecosynthesisx-public-good-funding-impact-market
  2. tap on Givpower tab

Screenshots image

cc: @divine-comedian

divine-comedian commented 2 weeks ago

Thanks MJ! @mohammadranjbarz - can you check this out? Could it be related to subgraph issues from the recent migration?

@laurenluz - I'll let you follow up on this one.

RamRamez commented 2 weeks ago

The problem is that backend says the user address "0xa198b3e3028882122d6365a2290906074aad3431" has some power boostings, but when on client side we query the unipoolBalances, it doesn't return any info for that account, so either our backend is not telling the truth for some reason, or subgraph is not returning the correct unipoolBalance for that address. The problem is just with this user, for other users the subgraph query results are ok.

the getPowerBoosting query:

image

Subgraph unipoolBalances query:

image image
mohammadranjbarz commented 2 weeks ago

@lovelgeorge99 Can you take care of it? You can DM me on Discord if you needed help

lovelgeorge99 commented 1 week ago

@maryjaf is it possible to reproduce this issue...because currently the table dose not show NaN

divine-comedian commented 1 week ago

@lovelgeorge99 - I think @aminlatifi resolved this issue 1-2 days ago in #4326