graph-network-subgraph icon indicating copy to clipboard operation
graph-network-subgraph copied to clipboard

Open question about calculating total values for the Subgraph Entity

Open davekay100 opened this issue 4 years ago • 1 comments

Values such as:

  • totalIndexingRewards
  • totalQueryFeesCollected
  • totalStake
  • totalSignal

Are ignored in the subgraph for now. Since 2 subgraphs can point to the same existing subgraph deployment.

It is doable, it just involves a lot of work, so it should be done specifically as a task in the near future

davekay100 avatar Jan 14 '21 16:01 davekay100

The PR #147 adds batch updates for a specific curation value (currentSignalledTokens), but the logic used to update that value would also work for this issue.

Just as a side note, as in the case of curation, we would be showing "double counted" GRT, since even if they are different subgraphs, for indexers it's the same one, so it will be displayed as two different subgraphs with the same amount of GRT (which is kinda confusing if you don't really understand the details).

I think that "double counted" GRT is fine, and it's the route we decided to go with #147 since when we tried to make it more "subgraph" based it ended up with weird numbers (negative signal, for example) on cases of shared deployments, and it's even worse when comparing stakes, since that's not even possible to break it down.

juanmardefago avatar Jul 28 '21 14:07 juanmardefago