Skip to content

feat: build per-token volume chart#90

Closed
newmattock wants to merge 3 commits into
Invoice-Liquidity-Network:mainfrom
newmattock:feat/per-token-volume-chart
Closed

feat: build per-token volume chart#90
newmattock wants to merge 3 commits into
Invoice-Liquidity-Network:mainfrom
newmattock:feat/per-token-volume-chart

Conversation

@newmattock
Copy link
Copy Markdown

Fixes #66

Summary

  • add a contract-backed per-token volume chart to the protocol analytics page
  • parse get_contract_stats() weekly or flat per-token volume fields into 30/90 day stacked Recharts data
  • add USD-equivalent summary totals for USDC, EURC, and XLM using oracle prices when present
  • add transformation tests and fix the Vitest @ alias to match tsconfig

Validation

  • npm test -- src/utils/tests/perTokenVolume.test.ts --reporter verbose
  • npx eslint app/analytics/page.tsx src/components/charts/PerTokenVolumeChart.tsx src/utils/perTokenVolume.ts src/utils/tests/perTokenVolume.test.ts vitest.config.ts
  • npm run build
  • git diff --check
  • local smoke: GET /analytics returned HTTP 200 on port 3014

Note: full-file lint for src/utils/soroban.ts still reports pre-existing no-explicit-any errors below this change.

@newmattock
Copy link
Copy Markdown
Author

Closing this older duplicate in favor of the newer clean branch in #120 for the same issue (#66). Keeping one active PR should make review easier.

@newmattock newmattock closed this May 26, 2026
@newmattock newmattock deleted the feat/per-token-volume-chart branch May 26, 2026 21:50
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.

Build per-token volume chart on protocol stats page

1 participant