Skip to content

feat: add PoVW reward rate graph - #25

Merged
mintybasil merged 2 commits into
mainfrom
zeroklaw/povw-reward-rate-graph
May 7, 2026
Merged

feat: add PoVW reward rate graph#25
mintybasil merged 2 commits into
mainfrom
zeroklaw/povw-reward-rate-graph

Conversation

@zeroklaw

@zeroklaw zeroklaw commented May 6, 2026

Copy link
Copy Markdown
Member

Summary

Adds a PoVW Reward Rate AreaChart to the PoVW Cycles page.

Closes #23

Changes

  • src/components/tabs/PovwCycles.tsx: Added a dual-axis AreaChart after the Grinding Rewards chart that plots:
    • Reward Rate (ZKC/MHz)povwRate on the left Y-axis (cyan)
    • Reward Rate (USD/MHz)povwRateUSD on the right Y-axis (amber)
  • Y-axes formatted to 5 decimal places; tooltip shows X.XXXXX ZKC/MHz or $X.XXXXX/MHz with epoch label
  • Consistent styling with existing charts (dark card background, legend, dual-axis pattern matching Grinding Rewards)
  • Uses povwRate and povwRateUSD (povwRate * zkc_price_usd) computed in mergeEpochData
  • Title simplified to "PoVW Reward Rate" (per review feedback — dual series makes unit qualifier redundant)

Verification

  • TypeScript type-check passes (tsc --noEmit)
  • Production build succeeds (npm run build)

@github-actions

github-actions Bot commented May 6, 2026

Copy link
Copy Markdown

Preview deployment

URL
Latest commit https://3b119df6.boundless-profit-explorer.pages.dev
Branch alias https://head.boundless-profit-explorer.pages.dev

The branch alias URL always points to the latest commit on this PR.

@mintybasil mintybasil left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)
@mintybasil
mintybasil merged commit d75fd06 into main May 7, 2026
1 check passed
@mintybasil
mintybasil deleted the zeroklaw/povw-reward-rate-graph branch May 7, 2026 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add PoVW reward rate graph

2 participants