Problem
The homepage shows hardcoded stats. The stats should
pull live data from the API and update automatically.
What To Build
Create src/hooks/useProtocolStats.ts that fetches:
- Total pool value from GET /liquidity/pool
- Active loans count from GET /loans/stats (or health)
- Total vendors from GET /vendors?limit=1 (total count)
Show live stats in the hero section replacing the
hardcoded ones. Add a pulsing green dot next to
each live stat.
Show loading skeletons while fetching.
Show last updated timestamp below stats.
Files To Touch
- src/hooks/useProtocolStats.ts (new)
- src/pages/Home.tsx
Acceptance Criteria
Mandatory Checks Before PR
Problem
The homepage shows hardcoded stats. The stats should
pull live data from the API and update automatically.
What To Build
Create src/hooks/useProtocolStats.ts that fetches:
Show live stats in the hero section replacing the
hardcoded ones. Add a pulsing green dot next to
each live stat.
Show loading skeletons while fetching.
Show last updated timestamp below stats.
Files To Touch
Acceptance Criteria
Mandatory Checks Before PR