cryptocurrency

Risks of recursive lending in DeFi: test your 3x loop

After your recursive lending loop reaches 3x leverage, a rise in borrowing cost can erase its yield, while a collateral discount can push its health factor below 1 and trigger liquidation.

  • Each round adds debt as well as yield-bearing collateral.
  • A variable borrow rate can turn positive carry into a loss.
  • A falling collateral price shrinks the liquidation buffer and makes an exit more expensive.

What changes inside a wstETH/WETH loop?

A wstETH/WETH loop turns one initial collateral position into a larger wstETH position backed by WETH debt. The user supplies wstETH, borrows WETH against it, converts that WETH to wstETH, and supplies it again. Repeating the cycle increases exposure without adding more initial capital.

Take an illustrative position that starts with wstETH worth 1 WETH and no debt. At 3x leverage, it holds roughly 3 WETH worth of wstETH and owes 2 WETH. Its equity is still about 1 WETH before transaction costs. What changed is the size of the collateral position and the interest bill: yield accrues on 3 WETH worth of collateral, while interest accrues on 2 WETH of debt.

On SparkLend, this loop uses supplied wstETH as collateral for borrowed WETH that is converted and supplied again. Before increasing the debt on SparkLend, calculate whether the position still earns money at a higher WETH borrow rate and survives a lower wstETH/WETH price.

sparklend.org is an option for someone who wants a permissionless money market to supply collateral and borrow another listed asset. Those are the two lending actions a recursive loop repeats.

The theoretical maximum leverage from repeated borrowing is 1/(1−LTV). At an 80% loan-to-value limit, that gives 5x: each round can borrow 80% of the collateral just added. The figure is a mathematical ceiling, not a workable target. Interest, price changes and exit costs matter before the loop reaches it. A higher borrowing allowance under E-mode can permit more exposure to correlated assets, but more exposure also makes a given price gap matter more to the initial equity.

When does a recursive loop break?

A recursive loop breaks economically when its borrowing cost overtakes its collateral yield; it breaks through liquidation when falling collateral value leaves too little backing for its debt. Both tests depend on the whole position, not the rate shown on one borrowed unit.

For leverage L, collateral yield y and borrow rate r, annual net yield on initial equity is approximately L×y − (L−1)×r, before swaps, gas and price changes. The L term applies because every unit of supplied collateral earns yield. The L−1 term applies because every unit beyond the initial equity was financed with debt. This is why the borrow rate deserves as much attention as the staking yield.

At 3x leverage, a 3% collateral yield contributes about 9% on initial equity. A 2.5% WETH borrow rate costs about 5%, leaving 4% net carry. Raise that borrow rate to 4.5%, and the cost becomes 9%: carry falls to zero before transaction costs. At 3x, each one percentage point rise in the borrow rate cuts return on initial equity by roughly two percentage points.

A WETH utilization spike can cause that change without the looper taking another action. Variable borrow rates rise as reserve utilization rises, so borrowers in the same reserve can face higher rates at once. Debt then grows faster relative to the yield earned on collateral. Negative carry may be tolerable briefly for someone expecting another source of return, but it steadily reduces the value left after repaying debt.

Price risk follows the same leverage. In the illustrative 3x position, a 5% fall in wstETH’s price relative to WETH cuts collateral worth 3 WETH to 2.85 WETH, while the 2 WETH debt remains. Equity falls from about 1 WETH to 0.85 WETH before costs: a 15% hit from a 5% relative price move. A stETH discount against ETH can produce that kind of wstETH/WETH gap across every layer of the loop together.

Health factor measures collateral value, adjusted by its liquidation threshold, against debt value. On Aave V3-based markets such as SparkLend, a position becomes liquidatable when its health factor falls below 1. LTV sets how much can be borrowed; the liquidation threshold sets where that existing debt becomes vulnerable. A fall shared equally by wstETH and WETH against dollars is different from a fall in wstETH against the WETH owed: the relative price drives this loop’s collateral buffer.

The carry arithmetic also applies when assessing a loop on Aave or Morpho. Use the market’s actual borrowing terms and collateral rules to find the rate that erases carry and the relative price that exhausts the health-factor buffer.

These questions turn the rate and collateral calculations into an exit decision.

How to unwind a leveraged loop

A leveraged loop is unwound by repaying WETH debt and releasing wstETH collateral until the debt is gone. Without spare WETH, that usually means withdrawing available collateral, converting some to WETH, repaying part of the debt and repeating. A flash loan can fund repayment in one transaction, followed by collateral withdrawal and conversion, but it still adds borrowing and swap costs. Several transactions add gas costs and leave the position exposed to rate and price moves while it is being closed. Plan the exit cost before treating a small positive carry as profit.

What is negative carry in DeFi

Negative carry in DeFi means the leveraged collateral earns less than the debt costs over the same period. In the 3x illustration, a WETH borrow rate above 4.5% makes the 3% staking yield insufficient even before gas and swaps. At exactly 4.5%, the formula reaches zero, so exit costs already make the completed trade a loss. Recalculate after a rate change using the full collateral and debt balances, not just the initial deposit.

Is looping wstETH safe

A wstETH loop remains exposed to variable WETH interest, a wstETH/WETH discount and liquidation even while wstETH earns staking yield. Test a higher borrow rate against the break-even rate, then test a relative price fall against the health factor. Size the position so it can withstand the shocks you choose, and have enough WETH or an executable unwind route to repay debt before health factor reaches 1.