Skip to content

feat(volume): add 24h stats and percentage change#6

Open
syed-ghufran-hassan wants to merge 1 commit into
wkalidev:mainfrom
syed-ghufran-hassan:patch-4
Open

feat(volume): add 24h stats and percentage change#6
syed-ghufran-hassan wants to merge 1 commit into
wkalidev:mainfrom
syed-ghufran-hassan:patch-4

Conversation

@syed-ghufran-hassan

Copy link
Copy Markdown
Contributor

Enhances the useVolumeStats hook by introducing short-term analytics in addition to cumulative totals.

  • Calculates pool and bridge transaction volume for the last 24 hours
  • Computes percentage change compared to the previous 24h period
  • Maintains existing total volume metrics for backward compatibility
  • Uses lightweight client-side aggregation (no additional endpoints)

This improvement provides better insight into recent activity and protocol momentum, enabling more meaningful dashboard visualizations.

Enhances the useVolumeStats hook by introducing short-term analytics in addition to cumulative totals.

- Calculates pool and bridge transaction volume for the last 24 hours
- Computes percentage change compared to the previous 24h period
- Maintains existing total volume metrics for backward compatibility
- Uses lightweight client-side aggregation (no additional endpoints)

This improvement provides better insight into recent activity and
protocol momentum, enabling more meaningful dashboard visualizations.
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.

1 participant