Leveraged positions on decentralized lending platforms
Bastien Baude, Vincent Danos, Hamza El Khalloufi
TL;DR
This paper addresses optimizing leveraged staking strategies across multiple DeFi lending markets with deterministic, white-box interest-rate models. It introduces a convex reformulation that decomposes each position into an unleveraged and a maximally leveraged component, enabling closed-form solutions under linear, kinked, and adaptive borrow-rate models and accounting for transaction costs. The authors validate the framework via backtests on Morpho wstETH/WETH markets on Ethereum and Base, showing up to 6.2% APY for small budgets versus 3.1% for simple staking, with results highly sensitive to capital size and rebalancing frequency. The work provides a rigorous, transparent basis for automated DeFi portfolio optimization and exposes practical considerations such as liquidity constraints and fee-induced dynamics. Overall, the methodology offers a tractable, mathematically grounded approach to exploiting rate differentials in multi-market DeFi lending.
Abstract
We develop a mathematical framework to optimize leveraged staking ("loopy") strategies in Decentralized Finance (DeFi), in which a staked asset is supplied as collateral, the underlying is borrowed and re-staked, and the loop can be repeated across multiple lending markets. Exploiting the fact that DeFi borrow rates are deterministic functions of pool utilization, we reduce the multi-market problem to a convex allocation over market exposures and obtain closed-form solutions under three interest-rate models: linear, kinked, and adaptive (Morpho's AdaptiveCurveIRM). The framework incorporates market-specific leverage limits, utilization-dependent borrowing costs, and transaction fees. Backtests on the Ethereum and Base blockchains using the largest Morpho wstETH/WETH markets (from January 1 to April 1, 2025) show that rebalanced leveraged positions can reach up to 6.2% APY versus 3.1% for unleveraged staking, with strong dependence on position size and rebalancing frequency. Our results provide a mathematical basis for transparent, automated DeFi portfolio optimization.
