Repository navigation
feat(portfolio): chart share of all LPT with and without staking - #877
Open
adamsoffer wants to merge 1 commit into
Open
adamsoffer wants to merge 1 commit into
adamsoffer wants to merge 1 commit into
Conversation
The Network share tab now charts the portfolio's share of total LPT supply, next to what the same LPT deposited, unstaked, would be: new LPT is minted every round, so holding without staking is a shrinking share of the supply, and staking's rewards keep pace with it. Counted as the value chart is (LPT taken out counts as kept; deposits from the same per-round flows), with no prices needed. - Rounds carry the subgraph's totalSupply, and the series its supply. - Rounds whose supply is well below the next round's are left out: the subgraph's first Arbitrum rounds (before 2469) count about half the supply, the rest not yet bridged. - The tooltip keeps the share of active stake (voting weight) and shows the total supply and the LPT behind each line; a caption sums it up. - Without supply data, the tab falls back to share of active stake. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Stacked on #875 (value chart), which is stacked on #867. Review only this PR's own changes.
What
The Network share tab now charts the portfolio's share of all LPT, next to what the same LPT would be had it been held without staking. New LPT is minted every round, so holding without staking is a shrinking share of the supply, while staking's rewards keep pace with it. This is the case for staking in units that don't depend on price.
Late claimer
0x427d…55b6, Network share → All. Staked, its share grew from about 0.0065% to 0.0134% of all LPT; the same 1,624 LPT held without staking would now be 0.0027%.How it's counted
Changes
roundsnow fetchtotalSupply;RoundPointandSeriesPointcarry it (both optional), and the mock subgraph serves it.supplyShareSeriesinlib/portfolio/value.ts, with 4 new tests.components/portfolio/hero.tsx: two lines, the tooltip and a caption.Testing
🤖 Generated with Claude Code