Skip to content

feat: build LP portfolio dashboard#111

Open
newmattock wants to merge 3 commits into
Invoice-Liquidity-Network:mainfrom
newmattock:feat/lp-portfolio-dashboard
Open

feat: build LP portfolio dashboard#111
newmattock wants to merge 3 commits into
Invoice-Liquidity-Network:mainfrom
newmattock:feat/lp-portfolio-dashboard

Conversation

@newmattock
Copy link
Copy Markdown

Fixes #26

Summary

  • add a dedicated /dashboard/lp route for LP portfolio overview
  • add LP stats cards for deployed capital by token, total earned, active positions, and average yield
  • add an active funded invoice position table with pagination and Transfer Position CTAs
  • wire the page to get_lp_portfolio_stats() and list_invoices_by_lp() contract reads for the connected wallet
  • add focused rendering and pagination tests
  • include current-main build fixes for governance Vetoed status/deferred refresh, federation typing, evidence hashing, TokenSelector typing, and existing soroban transaction typings

Validation

  • npm test -- app/dashboard/lp/tests/LPPortfolioDashboard.test.tsx --reporter verbose
  • npm run lint -- app/dashboard/lp/page.tsx app/dashboard/lp/tests/LPPortfolioDashboard.test.tsx src/components/LPStatsCards.tsx src/components/LPPositionTable.tsx src/utils/soroban.ts app/governance/page.tsx src/utils/federation.ts src/utils/evidence.ts src/components/TokenSelector.tsx
  • npm run build
  • git diff --check
  • local HTTP smoke: HEAD /dashboard/lp returned 200 on port 3026

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 the LP portfolio overview dashboard

1 participant