Skip to content

Show live asset prices on dashboard via Lens #91

@Miracle656

Description

@Miracle656

Background

The Veil dashboard shows token balances but no fiat-equivalent values. The Lens price oracle is already deployed and integrated into the AI agent — but the wallet UI doesn't use it. Users have no way to see what their portfolio is worth in USD/USDC without leaving the app.

What to build

Display a live price (in USDC) next to each token balance on the dashboard and token pages, using the Lens GET /price endpoint.

Key files

  • frontend/wallet/app/dashboard/page.tsx — token balance row to enhance
  • frontend/wallet/app/token/[code]/page.tsx — token detail page
  • frontend/wallet/lib/fetchPrice.ts — create this helper

Suggested execution

git checkout -b feature/dashboard-live-prices
  1. Create frontend/wallet/lib/fetchPrice.ts — calls GET https://lens-ldtu.onrender.com/price/{assetA}/{assetB} with x402 payment header
  2. On dashboard, after balances load, fire parallel price requests for each token
  3. Display price as a small muted text beside each balance (e.g. "120 XLM · $14.40")
  4. Handle: Lens timeout (show dash), unknown token (no price shown)
  5. Price fetches must not reset the inactivity timer

Example commit message:
feat(wallet): display live Lens prices alongside token balances on dashboard

Acceptance criteria

  • XLM and at least one other token show live USDC price
  • Graceful fallback if Lens is unavailable (no crash, just hide price)
  • Price fetches do not block balance rendering
  • x402 payment handled correctly

Drips Wave · Complexity: Medium · 150 points
Comment below to request assignment. PR must include Closes #[this issue].

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions