StartQuick Start
Quick Start
From zero to executing lending transactions in under 10 minutes
Prerequisites
| Dependency | Version | Required | Notes |
|---|---|---|---|
| Freighter Wallet | >= 2.0 | Yes | For signing transactions on Testnet. |
| Stellar Account | Testnet | Yes | Must be funded via Friendbot faucet. |
| ERGO Tokens | Any | Optional | Required only for Governance proposal fees. |
Step 1 — Connect Wallet
Open the Ergo Dashboard and click the **Connect Wallet** button in the upper right. Select your preferred provider (Freighter or Hana Wallet). Ensure your network is set to **Testnet** in the wallet preferences.
const wallet = await window.stellarFreighter.getPublicKey();
Step 2 — Supply Liquidity
Navigate to the **Lending Pools** tab, choose your asset (e.g. USDC or XLM), click **Supply**, and enter the amount. This triggers two transactions:
- An **Approve** call authorizing the Core Pool contract to draw the tokens from your account.
- A **Supply** call updating your positions and transferring the tokens on-chain.
Step 3 — Borrow Assets
Once you have supplied collateral, you will earn interest and increase your **Borrow Capacity**. You can then select a borrowable asset and execute a **Borrow** transaction. Keep an eye on your **Health Factor** to prevent liquidation.
