Skip to content

Fix: overview stats computed over all epochs instead of truncated set - #38

Merged
mintybasil merged 1 commit into
mainfrom
zeroklaw/fix-overview-stats-truncated-data
May 7, 2026
Merged

Fix: overview stats computed over all epochs instead of truncated set#38
mintybasil merged 1 commit into
mainfrom
zeroklaw/fix-overview-stats-truncated-data

Conversation

@zeroklaw

@zeroklaw zeroklaw commented May 7, 2026

Copy link
Copy Markdown
Member

Fix: overview stats computed over truncated data instead of all epochs

Closes #36

Problem

In PovwCycles.tsx, the overviewStats useMemo was operating on merged (capped to the last 100 epochs via .slice(-100)) instead of mergedAll. This meant "Total Grinding Rewards" and "Average % Market (All time)" only reflected the 100-epoch window shown on charts, not all available data.

Changes

  • src/components/tabs/PovwCycles.tsx: Changed overviewStats to depend on and compute over mergedAll instead of merged
  • Updated tooltip text from "last 100 epochs" to "all available epochs" to match the corrected behavior

The overviewStats useMemo was operating on  (capped to the
last 100 epochs) instead of , causing 'Total Grinding
Rewards' and 'Average % Market (All time)' to reflect only the
visible 100-epoch window rather than all available data.

Also updates the tooltip text from 'last 100 epochs' to
'all available epochs' to match the corrected behavior.

Closes #36
@github-actions

github-actions Bot commented May 7, 2026

Copy link
Copy Markdown

Preview deployment

URL
Latest commit https://e1d4ff80.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 merged commit f0c7e90 into main May 7, 2026
1 check passed
@mintybasil
mintybasil deleted the zeroklaw/fix-overview-stats-truncated-data branch May 7, 2026 18:24
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.

Fix: overview stats computed over truncated data instead of all epochs

2 participants