Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: index information relevant to new Penumbra homepage #4912

Open
plaidfinch opened this issue Nov 1, 2024 · 0 comments
Open

Request: index information relevant to new Penumbra homepage #4912

plaidfinch opened this issue Nov 1, 2024 · 0 comments
Assignees
Labels
A-dex Area: Relates to the dex A-IBC Area: IBC integration with Penumbra A-indexing Area: Relates to event indexing. C-enhancement Category: an enhancement to the codebase E-day E-easy Effort: Easy needs-refinement unclear, incomplete, or stub issue that needs work

Comments

@plaidfinch
Copy link
Collaborator

The in-progress redesigned Penumbra homepage is intended to feature a "statistics" section which shows:

  • Total Value Shielded, plus a top-5 breakdown of tokens by cumulative shielded value
  • 30 day DEX volume, plus a top-5 breakdown of tokens by 24 hour volume on the DEX
  • Total Connected Chains, plus a top-5 breakdown of chains by current shielded value

In order to realize this as real-time data from an indexer, there are required code changes to the indexer in order to get the following information, in descending order of priority:

  1. per-asset 30 day total volume (direct + swaps) on the DEX (only 24-hour volume is currently indexed)
  2. per-asset current value shielded, inclusive of the UM asset and native delegation tokens (current code filters the UM asset out due to a decision made during the construction of the insights page)
  3. per-asset cumulative value shielded, inclusive of the UM asset and native delegation tokens (see above)
  4. list of all IBC clients on the chain (this can currently only be approximated from the data in any existing view, by counting distinct Bech32 prefixes on IBC transfers)

These modifications could be made as enhancements to the DEX and IBC components of the indexer, tracking additional events and data.

@plaidfinch plaidfinch added A-IBC Area: IBC integration with Penumbra C-enhancement Category: an enhancement to the codebase E-easy Effort: Easy E-day A-dex Area: Relates to the dex A-indexing Area: Relates to event indexing. labels Nov 1, 2024
@github-actions github-actions bot added the needs-refinement unclear, incomplete, or stub issue that needs work label Nov 1, 2024
@plaidfinch plaidfinch changed the title Request: extra information relevant to new Penumbra homepage Request: index information relevant to new Penumbra homepage Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-dex Area: Relates to the dex A-IBC Area: IBC integration with Penumbra A-indexing Area: Relates to event indexing. C-enhancement Category: an enhancement to the codebase E-day E-easy Effort: Easy needs-refinement unclear, incomplete, or stub issue that needs work
Projects
None yet
Development

No branches or pull requests

2 participants