graphprotocol / graph-network-subgraph

The subgraph, the smart contracts, the tests, and documents for the Graph Explorer Decentralized Application
MIT License
69 stars 45 forks source link

Getting total claimable tokens in the network #89

Open davekaj opened 3 years ago

davekaj commented 3 years ago

This is not implemented right now, under graphNetwork.totalClaimableTokens . However, it could be roughly implemented by doing:

juanmardefago commented 3 years ago

If we do this, we could also track the amount burnt from rebate pools, which is currently not tracked on the subgraph.

I wanted to do this for a while, since it's one of the missing important values missing.

As @davekaj said, it would require us to copy the logic from the contracts (track amount of tokens claimable, amount of indexers that will be claiming, and when the last one claims, count the rest as burnt tokens).