feat: add PoVW reward rate graph - #25
Merged
Merged
Conversation
Preview deployment
The branch alias URL always points to the latest commit on this PR. |
mintybasil
reviewed
May 7, 2026
mintybasil
left a comment
Member
There was a problem hiding this comment.
Looks great. Please can we add another data series to the graph - Reward Rate (USD/MHz). Once implemented, we should remove the (ZKC/MHz) from the graph title.
Add povwRateUSD (povwRate * zkc_price_usd) as a second data series alongside the existing ZKC/MHz rate. Convert the chart to dual-axis (ZKC left, USD right) matching the established Grinding Rewards pattern. - Add povwRateUSD to EpochPoint interface and mergeEpochData - Dual Y-axes: ZKC/MHz (cyan/left) and USD/MHz (amber/right) - Legend showing both series - Tooltip differentiates ZKC vs USD values - Title simplified to 'PoVW Reward Rate' (removes ZKC/MHz qualifier)
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.
Summary
Adds a PoVW Reward Rate AreaChart to the PoVW Cycles page.
Closes #23
Changes
src/components/tabs/PovwCycles.tsx: Added a dual-axisAreaChartafter the Grinding Rewards chart that plots:povwRateon the left Y-axis (cyan)povwRateUSDon the right Y-axis (amber)X.XXXXX ZKC/MHzor$X.XXXXX/MHzwith epoch labelpovwRateandpovwRateUSD(povwRate * zkc_price_usd) computed inmergeEpochDataVerification
tsc --noEmit)npm run build)