graphprotocol / graphprotocol/graph-network-subgraph
Getting total claimable tokens in the network
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 82
- Forks
- 47
- PR merge metrics
- No merged PRs in 30d
Description
This is not implemented right now, under graphNetwork.totalClaimableTokens . However, it could be roughly implemented by doing:
- when a pool gets claimed for the first time, we know all those tokens are claimable, thus we add that total to the total claimable
- When an indexer claims, then we subtract that small amount
- When the final indexer claims, we also remove the burnt amount of tokens from that pool. Unfortunately the burnt amount will always be included in the total amount, there is no easy way to avoid this. At least it gets cleared once the final person claims for that pool
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at graphNetwork.totalClaimableTokens, which is currently unimplemented, and trace the pool-first-claim, indexer-claim, and final-indexer-claim flows. Determine where claimable and burnt amounts are recorded, then verify that the total increases and decreases as described, including the known temporary inclusion of burnt tokens.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- blockchain
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100