Documentation
Overview
StellarLend is an over-collateralised lending market on Stellar. Users supply assets to earn interest and borrow other assets against their collateral. Core logic is implemented as Soroban smart contracts; this web app is the user interface.
Getting started
Risk parameters
Each asset has a loan-to-value (LTV) ratio. Your borrowing limit is the sum of collateral value times LTV. The health factor is borrowing limit divided by borrowed value; below 1.0 a position becomes liquidatable.
Architecture
Next.js 15 (App Router) front end, Freighter for signing, Horizon for balances, Soroban RPC for contract calls. Position state in this build is a local demo ledger; contract invocation is configured through environment variables.
Deployed contracts (testnet)
Environment variables
- NEXT_PUBLIC_STELLAR_NETWORK
- NEXT_PUBLIC_HORIZON_URL
- NEXT_PUBLIC_SOROBAN_RPC_URL
- NEXT_PUBLIC_LENDING_CONTRACT_ID