What You Can Build
Lending Integrations
Supply liquidity to XLM or USDC pools. Read pool state (utilization, APY, exchange rate). Integrate vToken minting and redemption into your own interface.
Margin Account Apps
Create margin accounts on behalf of users, deposit collateral, issue borrows, and route capital to external protocols — all from your own frontend.
Liquidation Bots
Monitor health factors on-chain. Call
liquidate() when an account drops below 1.1x to earn the protocol fee. No special permissions required.Yield Aggregators
Compose Vanna’s vTokens with Blend, Aquarius, and Soroswap positions to build automated leveraged yield strategies.
Analytics & Risk Tools
Query position data, oracle prices, borrow rates, and health factors across all accounts. Build dashboards, alerting systems, or stress-testing tools.
Protocol Integrations
Add Vanna’s lending pools as a liquidity source in your own Soroban protocol. The pool interface is minimal:
lend_to() and collect_from().Use Case Quick Reference
| What you want to do | Entry point | Guide |
|---|---|---|
| Supply/withdraw liquidity | LendingPool.deposit_xlm() / redeem_vxlm() | Integrate Lending |
| Open a margin account | AccountManager.create_account() | Integrate Margin |
| Deposit collateral | AccountManager.deposit_collateral_tokens() | Integrate Margin |
| Borrow from a pool | AccountManager.borrow() | Integrate Margin |
| Deploy to Blend / Aquarius | SmartAccount.execute() | Integrate Margin |
| Build a liquidation bot | AccountManager.liquidate() | Liquidation Bots |
| Read contract events | Mercury indexer API | Events & Indexing |
| Get oracle prices | Oracle.get_price_latest() | Math Reference |
| Check health factor | RiskEngine.get_current_total_balance() | Risk Engine |
The Contract Stack
Vanna’s contracts are organized into four layers. You interact with the top layer; the layers below enforce safety and handle accounting.Network & Environment
All contracts are currently deployed on Stellar Testnet. Mainnet deployment is planned for a future release.| Parameter | Value |
|---|---|
| Network | Stellar Testnet |
| Network passphrase | Test SDF Network ; September 2015 |
| Soroban RPC | https://soroban-testnet.stellar.org |
| Horizon | https://horizon-testnet.stellar.org |
| Fixed-point precision | WAD — 10¹⁸ (all balances and prices in WAD unless noted) |
Documentation Map
Architecture
How the 14 contracts fit together. Call graphs and data flows for deposits, borrows, and liquidations.
Deployed Contracts
All testnet contract addresses, token addresses, and external protocol addresses.
Math Reference
WAD arithmetic, interest accrual, vToken exchange rate, borrow shares, health factor, and rate model formulas.
Contract Reference
Function-level reference for all 8 protocol contracts: parameters, return values, errors, and events.
TypeScript SDK
How to call Soroban contracts from TypeScript using Stellar SDK and Freighter wallet.
Integration Guides
End-to-end guides for lending integrations, margin account management, liquidation bots, and event indexing.

