Skip to main content
Backend-Solana is the product UI.

Live screens

Navbar still shows labels inherited from the multi-chain app. On this build, Perps is /margin and Farm is /one-click.

Data path

  1. Wallet adapter or Privy embedded wallet
  2. Anchor Program from idl/vanna_lending.json
  3. Account reads (reserve, margin, Lite PDAs)
  4. Pyth Hermes or fork price refresh
  5. Jupiter quote proxy (/api/jupiter/quote)
  6. simulateAndSend — simulate, then submit
History uses /api/solana/history and /api/solana/spot-history (RPC / Alchemy-style parsing on the fork).

Limitations to document honestly

  • P&L and entry price for perps are derived from vaults, debt, and history grouping — not a dedicated position account
  • Hosted RPC may expose fork cheatcodes; treat the demo as a trusted-tester sandbox
  • Token-2022 fees can make “exact” UI numbers differ from vault deltas by a few units