StartQuick Start

Quick Start

From zero to executing lending transactions in under 10 minutes

Prerequisites

DependencyVersionRequiredNotes
Freighter Wallet>= 2.0YesFor signing transactions on Testnet.
Stellar AccountTestnetYesMust be funded via Friendbot faucet.
ERGO TokensAnyOptionalRequired 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:

  1. An **Approve** call authorizing the Core Pool contract to draw the tokens from your account.
  2. 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.