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
- Wallet adapter or Privy embedded wallet
- Anchor
Programfromidl/vanna_lending.json - Account reads (reserve, margin, Lite PDAs)
- Pyth Hermes or fork price refresh
- Jupiter quote proxy (
/api/jupiter/quote) simulateAndSend— simulate, then submit
/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

