graphprotocol / graphprotocol/graph-network-subgraph

Getting total claimable tokens in the network

Open
#89 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.