Skip to content

feat: add LP risk summary panel#91

Open
newmattock wants to merge 1 commit into
Invoice-Liquidity-Network:mainfrom
newmattock:feat/lp-risk-summary
Open

feat: add LP risk summary panel#91
newmattock wants to merge 1 commit into
Invoice-Liquidity-Network:mainfrom
newmattock:feat/lp-risk-summary

Conversation

@newmattock
Copy link
Copy Markdown

Fixes #32

Summary

  • add an LP position risk panel above the funded positions table
  • compute positions at risk, capital at risk, and disputed position counts from LP positions
  • let metric clicks filter the positions table to at-risk or disputed invoices
  • refresh risk-time evaluation every 5 minutes and add pure metric/filter tests

Validation

  • npm test -- src/utils/tests/lpRisk.test.ts --reporter verbose
  • npx eslint src/utils/lpRisk.ts src/utils/tests/lpRisk.test.ts src/components/LPRiskPanel.tsx src/components/LPPortfolio.tsx
  • npm run build
  • git diff --check
  • local smoke: HEAD /lp returned HTTP 200 on port 3015

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.

Add LP position risk summary panel

1 participant