Skip to content

Lender: Supply page & Pending Offers #32

@ardier16

Description

@ardier16

Describe the feature

Description:
Implement lender dashboard showing supply stats and available pending offers to accept.

Acceptance Criteria:

  • YOUR SUPPLY stats card:
    • Balance in USDT with percentage change
    • Stats rows:
      • Supplied Loans (count)
      • Interest Outstanding (USDT)
      • # of Active Loans
      • Awaiting Liquidation (count)
    • "Repayment Available" alert banner (if claims pending)
    • Supply CTA button (→ Pending Offers table)
  • Pending Offers table:
    • Display all borrower offers with status=pending
    • Columns: Collateral (LBTC), Loan Amount (USDT), Earn (USDT), APR (%), Term Left, Status
    • Sortable by: APR (desc), Term Left (asc), Loan Amount (desc)
    • Pagination (10 per page)
    • Row click → Accept Offer modal (Lender: Loan actions #33)
    • Filter / search by collateral or APR range (optional enhancement)
  • Data from:
    • useOffers(status=pending) — all pending offers
    • useOffersByScript() — user's active supplied offers (separate section, optional)
    • useBlockHeight() — term left calculation
  • Loading states with skeleton
  • Manual test: Pending offers table populates, clicking row opens modal

Dependencies:

Notes:

  • Can be same page as borrower view (tab toggle) or separate route
  • Suggested: /dashboard shows both borrower + lender views with tabs
  • Default sort: APR descending (highest interest first)

Metadata

Metadata

Assignees

Labels

webWebsite-related issues

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions