Lend

Lend lets you supply spot assets into SomniaLend — the Somnia ecosystem's lending protocol — and borrow against them, without leaving dreamDEX. Supplied assets earn a variable yield from lending-market activity while they sit idle between trades; enabled as collateral, they also unlock borrowing. Open it from the Lend tab in the top navigation, or go directly to app.dreamdex.io/lend (the earlier /earn address redirects there).

Lend is supported on both Somnia mainnet (chain ID 5031) and Shannon testnet (50312), each against that network's own SomniaLend deployment. Whether the Lend tab is shown on a network is controlled by a feature flag.

Lend covers the full position lifecycle — supply, withdraw, enable or disable collateral, borrow and repay — against the same on-chain pools as SomniaLend's own app. The Browse all markets on SomniaLend link on the page opens the full protocol UI for anything beyond that.

What you can supply and borrow

Any asset that is both an active SomniaLend reserve and tradable on dreamDEX spot markets appears in the Supply assets and Borrow assets tables, plus the native token. The current mainnet roster (on testnet the native reserve is STT, held as WSTT):

AssetNotes
SOMI (STT on testnet)Native gas token — wrapped/unwrapped for you automatically
USDsoSomnia's native stablecoin
USDC.eBridged USD Coin
WETHWrapped Ether
WBTCWrapped Bitcoin

The list is discovered from the lending pool on-chain, so newly listed reserves show up without an app update. A reserve the protocol has paused or frozen shows a disabled action with the reason on hover.

How it works

Lend uses the same Privy-backed smart wallet as the rest of dreamDEX. Supplies and repayments are funded from your smart wallet balance — not from funds you have deposited into spot pool vaults for trading — and borrowed assets land in that same wallet. If the Wallet column shows zero, fund your smart wallet first — use the in-app Deposit button (see Making Your First Deposit), or send the asset directly to your smart wallet address from the wallet menu.

Supplying

  1. Click Supply on an asset row, enter an amount (or use Max / the percentage slider), and confirm.
  2. For ERC-20 assets, the first supply bundles a one-time token approval together with the deposit in a single confirmation. Later supplies of the same asset skip the approval.
  3. Native SOMI is routed through a wrapped-token gateway that wraps it and deposits in one call — you always see and enter plain SOMI amounts.

You can also start from the Balances tab on the Portfolio page or the spot Trade page: every asset there that has a live Lend market and a balance you can supply carries a Lend button, which opens the Lend page with the Supply dialog already open on that asset. On a phone the button sits in the row's details — tap the row to expand it.

Interest starts accruing the moment the transaction lands. Your supplied balance grows in place; there is no claim step. The first supply of an asset is enabled as collateral automatically (see below).

Earnings

The Earned column on each supplied position, and the All-time earnings card at the top, show the interest your supplies have produced since you first used the market: everything your position is worth today, plus everything you have ever withdrawn, minus everything you ever put in. Because the figure is computed from your full history rather than from a locked balance, it stays exact no matter how often you supply and withdraw. USD values use current prices.

The figure shows — whenever the app cannot state it with certainty — while your history is loading, or when tokens moved in or out of your position by means the pool does not record (a direct transfer of the interest-bearing token, for example). Earnings on native SOMI are not tracked yet and show —; the All-time card says so when that affects your total.

Collateral and borrowing power

Each supplied position has a Collateral switch. Enabled, the position backs your borrows and counts toward your borrowing power at the asset's Max LTV (loan-to-value) — at 80% LTV, $100 supplied unlocks up to $80 of borrowing. Disabled, it still earns yield but backs nothing. Some assets cannot be used as collateral on this market; their switch is off and locked.

Disabling collateral that currently backs debt lowers your health factor, so the confirmation shows the resulting number before you sign, and the switch is blocked outright if turning it off would push you below the liquidation threshold.

Borrowing

Click Borrow on a Borrow assets row. The Available column is the most you can take of that asset right now — the smallest of your remaining borrowing power, the pool's un-borrowed liquidity, and the reserve's borrow cap. Borrow rates are variable and update with pool utilisation. Native SOMI borrows are delivered unwrapped, ready to pay gas or trade.

Every borrow shows the health factor you will have afterwards. Borrowing that would land below 1 is blocked; landing between 1 and 1.25 asks you to acknowledge the risk explicitly before the button enables.

Health factor

The health factor measures how safe your borrows are: the value of your collateral, weighted by each asset's liquidation threshold, divided by your debt. It is shown on the overview card with a gauge, and every action that changes it previews the new value.

If your health factor drops below 1 — because your debt has grown with interest or your collateral has fallen in price — part of your collateral can be liquidated by third parties to repay your debt, with a penalty. Keep a buffer, watch the gauge, and repay or add collateral when it trends down. See SomniaLend's liquidation FAQ.

Repaying

Repay from the Your borrowed assets card, funded from your smart wallet. Max repays the entire debt, including the interest that accrues while the transaction confirms; if your wallet holds less than the debt, Max repays what you have and the modal shows the debt that will remain. Repaying raises your health factor and frees borrowing power immediately.

Withdrawing

Withdraw any amount up to your supplied balance from the Your supplied assets card — partial or Max, straight back to your smart wallet. Native SOMI positions are unwrapped automatically on the way out (the first native withdrawal includes a one-time approval, bundled into the same confirmation).

When a position backs debt, the withdrawable amount is capped so your health factor stays safely above 1; the modal says so and previews the result. Withdrawals are also subject to the reserve having sufficient un-borrowed liquidity at that moment — the same availability rule as any pooled lending protocol.

Rates

Supply and borrow rates are variable and update every block with pool utilisation: the more of a reserve is borrowed, the higher both rates. The APYs shown are compounded effective rates, the convention major lending UIs use. Net APY on the overview card is your supply earnings minus your borrow costs, as a rate on your net position (supplied minus borrowed); it turns negative once borrow costs outweigh yield.

Gas

Lending transactions are not gas-sponsored, unlike spot-pool trades. Gas is paid from a small native-token float (SOMI on mainnet, STT on testnet) your account keeps for its own transactions, and that float is refilled from your smart wallet, so the smart wallet is the only thing that can top it up. To keep it from being drained, Lend holds back 0.1 SOMI (0.1 STT on testnet) whenever you supply or repay the native token: Max stops at your balance minus the holdback, a typed amount above that is rejected, and the Supply and Repay buttons stay disabled while your wallet holds 0.1 SOMI (0.1 STT) or less. The modal names the holdback whenever it is what limits the amount. ERC-20 assets are unaffected.

Good to know

  • Same pools as SomniaLend. Positions live in the SomniaLend protocol contracts on Somnia — dreamDEX is a front-end surface over the shared on-chain pools, not a separate vault. A position opened here is visible in SomniaLend's own app, and vice versa.
  • Positions are per-wallet. Your position belongs to your dreamDEX smart wallet and is managed from the Lend page.
  • Protocol risk. Supplied assets are held by the SomniaLend smart contracts and earn yield from borrowers; rates can go to zero when nothing is borrowed, withdrawals depend on available reserve liquidity, and borrowed positions can be liquidated. See Risks for the general risk overview.

Disclaimer

Lending markets accessible from this page are provided by SomniaLend and are subject to its separate terms of service. For more information, visit SomniaLend. Displayed rates are variable, may change at any time, and may fall to zero. Borrowing carries liquidation risk.