DeFi

Leveraged Yield Farming: Loops, Health Factor, Liquidation

Leveraged yield farming explained: net APY formula, health factor, maximum leverage, liquidation price, managed vs self-managed loops, Stellar venues.

Leveraged yield farming explained: loops, net APY, health factor and liquidation price

Updated 9 October 2026: rates and TVL from DefiLlama, collateral settings from XOXNO's published configuration, Blend's formulas from its whitepaper and contracts, WhaleHub's vault status from its own repository.

Leveraged yield farming means borrowing against a yield-earning position to buy more of it. At 2x leverage you earn twice the yield and pay interest on an amount equal to your stake; your return on equity is L × yield − (L − 1) × borrow rate. The catch is the distance to liquidation, which shrinks fast as leverage rises.

The short version

Leverage multiplies the spread between what your collateral earns and what your debt costs, and it multiplies price moves. Track three numbers: net APY on equity, health factor, and the price at which you get liquidated. On Stellar you can loop on Blend V2 (where it is allowed) or XOXNO, by hand or with flash loans. If the borrow rate rises above the yield, leverage turns a profit into a loss.

Key takeaways
  • Net APY on equity = L × y − (L − 1) × r. Leverage only helps while y is above r.
  • Health factor = (collateral × collateral factor) ÷ (debt ÷ liability factor) on Blend; below 1 means liquidation.
  • Maximum loop leverage on Blend is 1 ÷ (1 − c × l); on LTV-based venues such as XOXNO, 1 ÷ (1 − LTV).
  • A 50/50 LP falls in value with the square root of the price, so at a starting health factor h the volatile asset can fall to 1 ÷ h² of its price before liquidation.

Leverage on Stellar by the numbers (October 2026)

MeasureValueSource
Blend V2 TVL / borrowed$146.6M / $43.8MDefiLlama, 9 Oct 2026
Blend Fixed Pool USDC supply APY6.67%DefiLlama yields
Blend Fixed V2 pool status"On ice": no new borrowingOn-chain read, 8 Oct 2026
XOXNO Lending TVL / borrowed$129K / $48KDefiLlama
XOXNO Aquarius LP collateral50% LTV, 60% liquidation threshold, 10% bonusXOXNO configuration
XOXNO USDC in Stables & FX spoke88% LTV, 92% thresholdXOXNO configuration

The headline is that Stellar's deepest lending market has paused new borrowing in its main pool, and the venue with the most leverage features is small. That shapes what is practical today more than any formula. Market overview: best lending protocols on Stellar.

How to choose

  • You want to understand a position before opening it: work out the three numbers below with your own rates, then halve the leverage you first had in mind.
  • You want leverage on an Aquarius LP: XOXNO accepts several Aquarius LP tokens at 50% LTV; see Aquarius LP tokens as collateral.
  • You want a stablecoin loop: it only pays if the supply rate plus rewards beat the borrow rate; check both live.
  • You do not want to monitor a position: do not use leverage. Unlevered auto-compounding, covered in auto-compounding explained, has no liquidation price.

What a loop is

A loop deposits an asset as collateral, borrows against it, converts the borrowed funds into more of the collateral, deposits that, and repeats. Each round adds less, because you can only borrow a fraction of each new deposit. A flash loan does all the rounds at once by borrowing the final amount upfront.

Take $1,000 of collateral at a 50% loan-to-value. Round one borrows $500 and deposits it; round two borrows $250; then $125. The total converges to $2,000 of collateral and $1,000 of debt, which is 1 ÷ (1 − 0.5) = 2x. Doing it by hand means several transactions, a fee and price impact on every swap, and a position that is briefly riskier between steps. Doing it with a flash loan is one transaction, checked once at the end; see what is a flash loan.

The maths of net APY

With equity E and leverage L (total collateral ÷ E), you earn the collateral yield y on L × E and pay the borrow rate r on (L − 1) × E. Net APY on equity is L × y − (L − 1) × r, before price moves, fees and rewards on the debt side.

Illustrative numbers: an LP earns 12% and borrowing costs 7%. At 2x, net is 24 − 7 = 17%. At 3x, 36 − 14 = 22%. Now let the borrow rate rise to 12%: 3x returns 36 − 24 = 12%, no better than not borrowing, with liquidation risk added. Above 12%, leverage loses money. Lending rates on Blend and XOXNO move with utilisation, so r is not fixed; the mechanics are in DeFi lending platforms.

Two corrections matter. Use APR, not compounded APY, for both sides, or convert consistently (APY vs APR). And if the collateral is an LP token, impermanent loss is part of y, and leverage multiplies it too.

The health factor

Blend's whitepaper defines borrowing capacity as the sum of each collateral position's value times its collateral factor, minus the sum of each liability's value divided by its liability factor. Expressed as a ratio, health factor = (collateral × c) ÷ (debt ÷ l). Below 1, a position can be liquidated.

Lenders that use loan-to-value and liquidation thresholds, as XOXNO does, compute it as collateral × liquidation threshold ÷ debt. Example on XOXNO: $2,000 of an Aquarius LP at a 60% threshold against $1,000 of USDC debt gives 2,000 × 0.6 ÷ 1,000 = 1.2. A health factor of 1.2 means the collateral can lose one-sixth (16.7%) of its value before liquidation.

Liquidation is not the end of the position, but it is expensive. Blend uses Dutch auctions in which the liquidator's terms improve block by block over about 200 blocks; XOXNO's configuration pays a 10% bonus on LP collateral. Either way, you lose more than the debt you shed.

Maximum leverage and liquidation price

For a loop where the borrowed asset buys more collateral, maximum leverage is 1 ÷ (1 − c × l) on Blend and 1 ÷ (1 − LTV) on LTV-based venues. Liquidation price depends on the collateral: a single volatile asset can fall by 1 − 1/h, while a 50/50 LP's volatile side can fall to 1/h² of its price.

Maximum leverage. On Blend with a collateral factor of 0.60 and a liability factor of 0.75, the limit is 1 ÷ (1 − 0.45) ≈ 1.82x. On XOXNO, an Aquarius LP at 50% LTV allows 2x, and USDC in its Stables & FX spoke at 88% LTV allows about 8.3x in theory. At the limit the health factor is already near 1, so the usable leverage is lower.

Liquidation price. If XLM is your collateral and USDC your debt, a health factor of 1.2 means XLM can fall 16.7%. If your collateral is a constant-product XLM/USDC LP, the LP's value moves with the square root of the XLM price, so XLM can fall to 1 ÷ 1.2² ≈ 69% of its starting price, a 30.6% drop, before the same health factor reaches 1. The LP cushions the move but adds impermanent loss. A worked Stellar example is in Aquarius LP tokens as collateral.

Managed vs self-managed leverage

Self-managed means you open the loop on a lending protocol and watch the health factor yourself. Managed means a vault opens and maintains it for depositors. Managed vaults save effort but add a contract, an operator and, depending on design, shared losses.

On XOXNO, positions are NFT accounts fixed to a mode and spoke, and its multiply and flash_position functions build Multiply, Long or Short accounts in one transaction. Each account carries its own health, so a liquidation touches only that account. On Blend you can attach supply, borrow and collateral requests to a flash loan for the same effect, where the pool allows borrowing.

Vaults differ in a way that matters. WhaleHub, the publisher of this article, is building a leveraged Aquarius-LP vault on Blend V2 that runs on testnet only. In its current design the vault holds one Blend position and gives each depositor shares of it, so interest and any liquidation are shared pro-rata across all depositors, including those who did not over-lever. Per-user isolation is planned, not built.

Stellar venues

Blend V2 is Stellar's largest lending protocol, with health-checked flash loans and isolated pools, but its main Fixed V2 pool was closed to new borrowing on 8 October. XOXNO Lending has more leverage tools (multiply, flash positions, LP collateral at 50% LTV) but held only about $129,000 on DefiLlama.

Blend: per-pool collateral and liability factors, Dutch-auction liquidations, a backstop that takes first loss, and a flash loan that opens debt only if the position ends healthy. Pools are isolated, so check the specific pool's status and oracle; see what is Blend. XOXNO: shared liquidity hubs with risk set per spoke, collateral-only RWA and LP markets, and flash loans at 0.09%; see XOXNO Lending on Stellar and Blend vs XOXNO.

How these fit together

The three numbers belong together. Net APY says whether the trade is worth doing, the health factor how close you are to the edge, and the liquidation price what market move pushes you over. Venue choice decides the parameters and the liquidation penalty; managed or self-managed decides who watches the position and who shares the losses.

The takeaway

Leverage turns a yield spread into a bigger yield spread and a price move into a bigger loss. Before looping, write down L, y and r, compute your health factor and liquidation price, and decide what you will do when rates or prices move against you. On Stellar today the deepest venue has paused new borrowing in its main pool and the most flexible one is small, so size positions accordingly.

Sources: Blend whitepaper; github.com/blend-capital/blend-contracts-v2 (pool flash_loan and submit code); github.com/XOXNO/rs-lending-xlm @ 598aa1f (configs/mainnet spokes.json and markets.json, skills/xoxno-lending-contracts positions.md and flash-loans.md); DefiLlama protocols and yields APIs, 9 October 2026; Blend Fixed V2 pool status read on 8 October 2026; WhaleHub leverage-vault source and design notes. Examples with round numbers are illustrative. WhaleHub is the publisher of this article.

Frequently asked questions

What is leveraged yield farming?

Borrowing against a yield-earning position to buy more of it, so you earn the yield on more capital than you put in. Your return on equity becomes leverage times the asset yield minus (leverage minus one) times the borrow rate, and a smaller price fall can trigger liquidation.

What is a health factor?

A ratio of how much your collateral can support to how much you owe. On Blend, collateral counts at its value times a collateral factor and debt at its value divided by a liability factor. Above 1 you are safe; below 1 you can be liquidated.

What is the maximum leverage on Blend?

For a loop with the same pricing on both sides, 1 / (1 - c x l), where c is the collateral asset's collateral factor and l the borrowed asset's liability factor. With c = 0.60 and l = 0.75, that is about 1.82x. In practice you should stay well below the limit.

Does WhaleHub offer leveraged farming?

Not on mainnet. WhaleHub, the publisher of this article, has a leveraged LP vault in testnet development only. Its current design holds one shared position, so liquidation losses would be shared by all depositors; per-user isolation is planned but not built.

WhaleHub Research
WhaleHub Research
Protocol research & education · WhaleHub

WhaleHub is a yield-optimization protocol on Stellar. We stake AQUA, aggregate ICE voting power, and auto-compound Aquarius rewards for stakers. This series explains the Stellar DeFi stack — and the wider market around it — in plain English.

Yield without a loop to manage

WhaleHub stakes AQUA and auto-compounds Aquarius rewards without leverage, and publishes how each part can fail.

Launch the app

This article is for education only and is not financial advice. Figures are taken from the sources linked in the text as of the date shown and change constantly. Verify them before acting.