Replace treasury data fetch with subgraph query
Open
@ECWireless is already working on this.
Since Nov 26, 2025.
data
enhancement
- Dominant language
- TypeScript
- Stars
- 11
- Forks
- 26
- Avg merge
- 11h 58m
- Merged PRs (30d)
- 16
Description
Is your feature request related to a problem?
Right now we use RPC calls to get information about treasury proposal (see https://github.com/livepeer/explorer/blob/5e54fca468c14167137f38d562dba0719b053857/pages/api/treasury/proposal/%5BproposalId%5D/state.tsx#L71). This makes the endpoint sensitive to RPC outages, rate limits, and node lag.
Describe the solution you'd like
Since treasury proposal + voting information does not need to be strictly real-time on a per-block basis, it’s a good candidate to move over to the Livepeer Subgraph when this upstream pull request has been merged.
Describe alternatives you've considered
No response
Additional context
No response
Contributor guide
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.
Assessment
This issue has not been assessed yet.