Skip to content

feat: admin TVL/payout stats indicators, trend charts, and wallet auth - #1114

Merged
ONEONUORA merged 1 commit into
Fracverse:masterfrom
devjessica-cyber:feature/admin-tvl-payout-graphs-wallet
Sep 30, 2026
Merged

ONEONUORA merged 1 commit into
Fracverse:masterfrom
devjessica-cyber:feature/admin-tvl-payout-graphs-wallet

Conversation

@devjessica-cyber

Copy link
Copy Markdown
Contributor

Summary

This PR resolves three issues by enhancing the admin dashboard with richer analytics and on-chain wallet authorization.


Closes #1008 — TVL and Payout Statistics in Admin Indicators

Added a dedicated Payout Statistics section to the admin overview dashboard with four indicator cards:

  • Total Payouts Processed — lifetime disbursement count across all asset types
  • Payout Success Rate — percentage of payouts confirmed on-chain (97.3%)
  • Avg Batch Size (USDC) — average disbursement value per batch
  • Pending Payouts — count of payouts awaiting on-chain confirmation

Closes #1010 — Trend Graphs for TVL Growth and Yield Adjustments

Added a Vault Trend Charts section with two side-by-side Recharts graphs:

  • TVL Growth — AreaChart mapping total value locked over time (sourced from /api/yield/rates/history, with graceful fallback seed data when the API is offline)
  • Yield Rate Adjustments — LineChart mapping APY rate changes over time, letting admins visualise how yield settings have evolved

Closes #1011 — Browser Wallet Connection for On-Chain Vault Operations

Added a Vault Wallet Authorization panel to the admin overview that:

  • Uses the shared useWallet() hook from the existing WalletProvider context (lib/wallet-context.tsx)
  • Shows real-time wallet connection status (connected / connecting / restoring session / disconnected)
  • Exposes a Connect Freighter button (superadmin-gated) and a Disconnect button
  • Displays the connected public key, network, and an Authorized badge when connected
  • Shows a superadmin access notice for non-superadmin users

Files changed

  • dashboard/app/dashboard/page.tsx — all three features implemented here

…1008 Fracverse#1010 Fracverse#1011)

- Fracverse#1008: Add payout statistics admin indicators (total payouts, success
  rate, avg batch size, pending payouts) to the admin overview dashboard
- Fracverse#1010: Render TVL growth AreaChart and yield rate adjustment LineChart
  sourced from the yield rate history API with fallback seed data
- Fracverse#1011: Integrate Freighter browser wallet connection panel in admin
  overview using the shared WalletProvider/useWallet context for
  on-chain vault operation authorization
@drips-wave

drips-wave Bot commented Sep 30, 2026

Copy link
Copy Markdown

@devjessica-cyber Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@ONEONUORA ONEONUORA left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great job @devjessica-cyber

@ONEONUORA
ONEONUORA merged commit 9afd640 into Fracverse:master Sep 30, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants