Yield Slippage and the Equimarginal Allocation of Capital Across Decentralized Lending Pools
A static, single-period model for optimizing capital allocation across risk-free decentralized lending pools, accounting for yield slippage and token incentives through a marginal-yield framework. Protocol risk is introduced as a structural placeholder, with a full risk-aware treatment deferred to future work.
Abstract
This article investigates the optimization of capital distribution across Decentralized Lending Protocols (DLPs) to maximize aggregate portfolio yield. In decentralized finance, interest rates are endogenous functions of pool utilization; consequently, large capital injections dilute the effective interest rate—a phenomenon we term yield slippage.
We formalize a unified yield function that aggregates supply interest, token incentives (priced via a scalar ), and a structural risk parameter introduced to mark the conceptual location of protocol risk in the framework. The optimization itself is solved under the assumption of risk-free markets (); a full risk-aware treatment is deferred to future work. By defining a Net Yield Function and applying a constrained optimization framework, we derive the equilibrium condition where the marginal yield is equalized across all active pools.
Introduction
The emergence of Decentralized Finance (DeFi) has reshaped capital markets by replacing traditional intermediaries with autonomous smart contracts. Central to this ecosystem are Decentralized Lending Protocols (DLPs), such as Aave and Compound, which employ algorithmic interest rate models to facilitate the lending and borrowing of cryptocurrency assets with no expiry duration.
Lenders who supply digital assets to these protocols are referred to as Liquidity Providers (LPs). Assets supplied by LPs are pooled together and can be borrowed by users who lock collateral. In traditional shared-pool models, multiple digital assets are accepted as collateral for a single loanable asset. Consequently, even with Over-Collateralized Debt Positions, LPs are exposed to cross-asset contagion, where the failure of a single volatile collateral asset can impact the entire liquidity pool.
To address this, newer protocols utilize isolated markets where each pool accepts only one specific asset as collateral. While this limits contagion risk, it leads to liquidity fragmentation. DLPs such as Morpho and Euler Finance solve this by layering vaults on top of isolated markets. In this system, Lenders deposit capital into a single vault, and professional risk strategists, known as Risk Curators, strategically deploy this capital across multiple pools to optimize yield while minimizing exposure to tail risks.
A key challenge for vault risk curators is the yield slippage effect. In DLPs, the Annual Percentage Yield (APY) of a pool is a direct function of pool utilization. When a large deposit increases the pool supply, utilization—defined as the ratio of borrowed capital to total supplied capital—mechanically falls, causing the effective interest rate to decline. Consequently, a naive strategy that chases the highest instantaneous APY can produce suboptimal returns when the deployed capital is large enough to materially dilute the pool’s yield dynamics.
This article develops a static, single-period model for capital allocation and rebalancing across lending pools. Our contributions are threefold:
- Unified Yield Framework: We formalize a comprehensive yield model that aggregates Supply Yield, Token Incentives (priced via a custom scalar ), and a placeholder for Protocol Risk (via a parameter ). Risk is introduced structurally; the optimization is solved under risk-free markets, with a full risk-aware treatment left for future work.
- Marginal Yield Derivation: We define the Yield Slippage Effect and derive an explicit closed-form decomposition of the Marginal Yield of a deposit. This decomposition quantifies the endogenous dilution of both interest rates and incentive rewards caused by large capital injections.
- Equimarginal Equilibrium: Under a Diminishing Marginal Returns assumption, we establish that the Karush–Kuhn–Tucker (KKT) conditions for the constrained maximization problem are both necessary and sufficient, and that the unique global optimum is characterized by equalization of the Marginal Yield across all active pools.
Pools
Pools create a lending and borrowing market for a Base Asset (e.g., USDC) within DLPs. For instance, distinct markets exist such as the Aave USDC pool and the Compound USDC pool across various blockchain networks. Lenders in a pool allocate capital of the base asset, while borrowers borrow this asset primarily by creating an Over-Collateralized Debt Position using another approved asset as collateral.
Interest accrues over time on the debt position. To redeem their collateral, the Borrower must repay the principal amount plus the accrued interest. A portion or the entirety of this repaid interest is then distributed to the Lenders proportional to their deposit size.
Incentivized Pools
Lending in certain pools is incentivized externally to attract capital. We denote these as Incentivized Pools. In such markets, specifically within DLPs like Compound, Lenders earn a secondary yield component in the form of an Incentive Asset (e.g., COMP), in addition to the standard interest accrued on the base asset. These rewards are typically distributed pro-rata based on the lender’s share of the total pool deposits.
Pool Risk
Participants in Decentralized Lending Protocols (DLPs) are exposed to distinct categories of structural and systemic risk. Following the standard industry classification of CryptoEQ, we organize these risks into three primary vectors:
Smart Contract Risk. This refers to the vulnerability of the protocol to software bugs, logic errors, or re-entrancy attacks. Despite rigorous auditing processes, the immutability of the blockchain means that exploited vulnerabilities often result in irreversible loss of funds.
Oracle Risk. Lending protocols rely on external data feeds (oracles) to determine asset prices and calculate account health. Oracle risk arises when these feeds provide inaccurate data—whether due to manipulation, latency, or compromised sources—potentially leading to unjust liquidations or bad debt accrual.
Governance Risk. Most DLPs are managed by Decentralized Autonomous Organizations (DAOs) which control critical parameters such as collateral factors and interest rate models. Governance risk encompasses the potential for malicious upgrades, capture of voting power, or mismanagement of risk parameters during periods of high market volatility.
These three vectors are aggregated into a single scalar Risk Parameter in the Yield Decomposition below. A formal mapping from the underlying risk channels to —and the dynamics that govern it—is left to future work.
Principal and Accrued Balance
Definition (Principal Balance). A Lender’s Principal Balance at time , denoted by , is the capital basis upon which interest is calculated.
Definition (Accrued Balance). A Lender’s Accrued Balance at time , denoted by , is the sum of the Principal Balance and the net value accrued over the interval (comprising interest, priced incentives, and risk cost; decomposed explicitly in the Yield Decomposition section):
where denotes the time of the last Balance Realization event.
Definition (Balance Realization). Balance Realization is a discrete event at time where the Accrued Balance is converted into the new Principal Balance. This effectively resets the basis for future interest calculations (). Specifically, the updated Principal Balance becomes:
where denotes the pre-realization principal (the left-limit of at ).
Following this event, any interest calculation for a subsequent interval uses this updated basis.
Assumption (Principal Consistency Constraint). To preserve the integrity of the accrual basis, withdrawals are bounded by available principal. Any withdrawal at time either (i) is capped at the existing Principal Balance (), leaving the accrued component unrealized and the time basis unchanged; or (ii) is preceded by a Balance Realization (, ), permitting withdrawal up to .
Pool Yield
Definition (Pool Yield). The Pool Yield, denoted , represents the expected return per unit of principal balance over the interval . It is defined as the conditional expected net earnings accrued by a lender, normalized by their capital basis:
where is the lender’s Principal Balance at time , and denotes the expected net change in value due to interest, incentives, and risk factors.
Remark. The term represents the Net Earnings. To avoid ambiguity, this expectation is calculated under the strict assumption of No External Flows (i.e., the lender does not deposit or withdraw additional capital during the interval ). Under this assumption, strictly quantifies the value generated by the protocol (interest + incentives − risk cost) rather than changes in user principal.
Yield Function
The Pool Yield defined above is a snapshot quantity, evaluated at the lender’s current principal balance. To reason about discrete capital changes—the central object of this article—we promote it to a function of the injection size.
Definition (Yield Function). We define the Yield Function, denoted , as the effective yield for a discrete capital injection to the principal balance at time :
Consequently, the expected earnings can be expressed as:
The snapshot Pool Yield is recovered as the special case , corresponding to no capital change.
Supply Yield
Definition (Supply Yield). The Supply Yield, denoted , is defined as the interest accrued over the interval per unit of Principal Balance. It represents the component of pool yield derived exclusively from borrower interest payments:
where is the lender’s Principal Balance at time , and denotes the interest accrued on that balance over .
Definition (Supply Yield Function). Analogously, the Supply Yield Function is defined as:
where denotes the effective interest accrued over given the adjusted principal basis .
Remark. Both and are strictly decreasing, positive-valued functions due to the Yield Slippage Effect defined below.
Definition (Yield Slippage Effect). The Yield Slippage Effect is the endogenous dilution of the per-unit yield with respect to capital injection: formally, the property that
for all in the feasible region. It is the structural feature that distinguishes liquidity provision in algorithmically priced DLPs from the constant-rate idealization of traditional fixed-income allocation, and is the central inefficiency this article seeks to optimize against.
Example: The Aave/Compound Kinked Rate Model
To ground the abstract Supply Yield Function in a concrete protocol primitive, we instantiate it under the standard kinked utilization rate model used by Aave and Compound.
Let denote the total outstanding borrows in the pool (treated as fixed over the interval ), the total pool supply immediately preceding the injection (i.e., the sum of the lender’s existing principal and the balances of all other lenders), and a target utilization, referred to as the kink. Following a capital change , the pool utilization becomes:
The borrow interest rate is piecewise linear in utilization:
where is the base rate, the pre-kink slope, and the post-kink “jump” slope designed to penalize illiquidity. The supply rate received by lenders, net of the protocol reserve factor , is given by:
Assumption (Single-Regime Operation). We assume that the magnitude of the capital change is bounded such that the resulting utilization remains within a single regime of the piecewise-linear borrow curve—that is, the operation does not cross the kink . This preserves the smoothness of and admits a closed-form Marginal Yield without invoking subgradient methods at .
Under this assumption, taking the pre-kink regime () for concreteness, admits the closed form:
which is manifestly strictly decreasing in , recovering the Yield Slippage Effect from a microfounded protocol primitive. Should the pool operate in the post-kink regime () for the duration of the interval, an analogous closed form is obtained by substituting the post-kink branch of .
Incentive Function
Definition (Pool Incentive). For incentivized pools, we define the Pool Incentive at time , denoted , as the quantity of the Incentive Asset earned per unit of Principal Balance over the interval :
where is the principal balance at time , and denotes the total quantity of incentive tokens accrued on that balance over the interval .
Assumption (Incentive Predictability). We assume the pool operates under a predictable incentive mechanism: for any given principal balance at time , the quantity of incentives to be received is a calculable function of the pool state at time .
Definition (Incentive Function). We define the Incentive Function, denoted , as the effective incentive rate for a principal balance adjusted by a capital change :
Example: Pro-Rata Incentive Distribution
A common mechanism, exemplified by the COMP distribution on Compound, allocates a fixed pool-level reward rate (incentive tokens per unit time) to lenders pro-rata by share of total supply. Under this model, the quantity of incentive tokens accrued by a lender with principal over the interval is:
where is the total pool supply preceding the injection. Substituting into the definition of yields the closed form:
which is manifestly strictly decreasing in , recovering an incentive-slippage effect structurally analogous to the supply-side yield slippage on .
Remark. This completes the slippage picture introduced earlier: the Yield Slippage Effect extends to the incentive channel via , in symmetry with the supply-side slippage .
Incentive Pricing
Since the incentive asset is typically distinct from the base asset, rational allocation requires normalizing these rewards into a common numéraire. We introduce a pricing scalar to perform this conversion.
Definition (Incentive Value Scalar). Let be a scalar conversion factor representing the value of one unit of the Incentive Asset in terms of the Base Asset over the interval . The total value of incentives received, denominated in the base asset, is given by:
Remark. The scalar represents an effective execution price for the accrued incentives. Relying solely on the spot price at time may be insufficient due to volatility during the accrual interval. In practice, may represent a time-weighted average price (TWAP) or a hedged price secured via an external derivatives market.
Assumption (Incentive Price Exogeneity). We treat as exogenous to the lender’s position size: the realized execution price of the incentive token is independent of the quantity that the lender must liquidate. This is a deliberate limitation. The framework captures endogenous dilution on both the supply rate () and the incentive emission share (), but does not capture market-impact slippage from selling the accrued incentive token into its secondary market. For modest positions—where the accrued incentive quantity is small relative to the depth of the incentive token’s market—the assumption is innocuous. For vault-scale operations it may not be, and a position-dependent execution price would be required. This extension is deferred to future work.
Yield Decomposition
The expected net earnings for a Principal Balance over the interval is composed of two positive yield streams (Interest and Incentives) and one negative risk factor.
First, considering only the gross yield components:
where is the accrued interest and is the quantity of incentive tokens.
To account for protocol safety, we introduce a Risk Parameter , a non-negative scalar representing the expected loss per unit of capital over the interval (e.g., due to smart contract failure or bad debt). The Net Expected Earnings becomes:
Remark. The parameter serves as a rigorous measure of the “cost of safety.” For theoretical Risk-Free markets, . For risky markets, , effectively acting as a discount rate on the raw APY.
Remark (Notation: vs ). It is important to distinguish the two accrual quantities used throughout this article. The increment denotes the interest component alone—the deterministic supply-yield contribution—while denotes the net value accrued, comprising interest, priced incentives, and risk cost. They are related by the identity
In the special case of risk-free, non-incentivized markets (, ), the two quantities coincide.
The Decomposed Yield Function
Substituting the definitions of the Supply Yield Function and Incentive Function into the expectation above, we derive the general form of the Yield Function for any capital injection :
Proof. By definition, . Expanding the terms:
Dividing both sides by , we obtain:
Net Yield for Multiple Pool Allocation
Having decomposed the single-pool yield function as , we now lift the construction to a portfolio. By analogous construction, each pool admits a Supply Yield Function , an Incentive Function , and a risk parameter . Because pools may distribute distinct incentive tokens (e.g., COMP from Compound, MORPHO from Morpho), each carries a corresponding incentive price denominated in the base asset. The pool-level Yield Function is
Consider a portfolio with capital allocation across pools denominated in the same base asset at time . Let denote the expected earnings for the -th pool over the interval .
The Net Yield of the portfolio, denoted , is the weighted average of the individual pool yields:
Definition (Net Yield Function). Suppose a total capital amount of the base asset is distributed across the pools via a vector of capital changes such that . We define the Net Yield Function, denoted , as the effective yield of the portfolio immediately following these discrete changes:
This function evaluates the portfolio efficiency for any specific distribution of the total capital . The pre-injection Net Yield is recovered as the special case .
Remark (Equivalence with Total Earnings). Under the Budget Constraint , the denominator of collapses to a constant independent of the specific allocation:
Consequently, the rate-form objective and the Total Expected Earnings share the same argmax:
In the optimization that follows we work with for analytic convenience; all results carry over verbatim to the rate-form objective .
Generalized Optimal Capital Allocation
Assumption (Risk-Free Markets). For the remainder of this article we restrict attention to risk-free pools, formally for all . The risk parameter is retained as a structural placeholder in the decomposition of to mark the conceptual location of protocol risk in the framework. Modeling the functional form and dynamics of —including its interaction with utilization, leverage cycles, and inter-pool contagion—is non-trivial and is left to future work.
Assumption (Frictionless Rebalancing). We abstract from the on-chain transaction costs of executing the allocation —gas fees, MEV exposure, and any base-asset swap slippage incurred on entry or exit. Real-world implementations will require a no-trade band around the equimarginal equilibrium to suppress rebalances whose expected gain is dominated by the cost of the transaction. We defer this extension to future work.
We generalize the optimization problem by defining as the Net Portfolio Capital Change. This allows us to model capital injections (), neutral rebalancing (), and withdrawals () using a single unified framework.
The objective is to find the vector of individual allocations that maximizes the Total Expected Earnings of the final portfolio state. Under the Risk-Free Markets assumption, the objective function is:
Constraints and Modes
The problem is subject to two primary constraints:
- Budget Constraint: The sum of individual changes must equal the net capital change.
- Solvency Constraint: No pool can have a negative balance.
Based on the value of , the optimization naturally adapts to three distinct modes:
- Capital Injection (): New capital enters the portfolio. The solver distributes to pools with the highest Marginal Yields, potentially pulling capital from lower-performing pools () to boost best performers (Hybrid Injection/Rebalancing).
- Pure Rebalancing (): No external capital is added. The solver moves capital from low-marginal-yield pools () to high-marginal-yield pools () until equilibrium is reached.
- Capital Withdrawal (): Capital leaves the portfolio. The solver removes liquidity from pools with the lowest Marginal Yields first to minimize the loss of total earnings.
Optimization Framework (KKT Conditions)
To rigorously maximize the objective function subject to both the budget equality constraint and the solvency inequality constraints, we employ the Karush-Kuhn-Tucker (KKT) conditions.
Problem Formulation:
We define the generalized Lagrangian with multiplier for the budget constraint and a vector of multipliers for the solvency constraints:
KKT Necessary Conditions
The necessary conditions for optimality are:
- Stationarity:
- Primal Feasibility:
- Dual Feasibility:
- Complementary Slackness:
Derivation of Marginal Yield
We define the term as the Marginal Yield . By applying the product rule to the earnings term , we explicitly derive:
Diminishing Marginal Returns
The KKT conditions above are necessary for stationarity. To ensure that a stationary point is a global maximum, we impose the following structural assumption.
Assumption (Diminishing Marginal Returns). For each pool , the per-pool earnings function is strictly concave on the feasible region. Equivalently, the Marginal Yield is strictly decreasing in :
Remark. This assumption is the central structural requirement of the framework. It captures the economic intuition that each additional unit of capital is less productive than the last, and it can be verified directly for the kinked rate model introduced previously, provided the lender’s existing principal is small relative to the total pool supply —the typical regime of operation for an individual liquidity provider. Under this assumption, the aggregate objective is a sum of concave functions, the KKT conditions are both necessary and sufficient, and the equimarginal condition identifies the unique global optimum.
Interpretation: The Threshold Logic
The KKT conditions reveal two distinct regimes for optimal allocation:
-
Regime 1: Active Pools (Interior Solutions). For any pool that maintains a positive balance (), the Complementary Slackness condition requires . Substituting this into the Stationarity condition yields:
Conclusion: All active pools must share an identical Marginal Yield equal to the portfolio shadow price .
-
Regime 2: Empty Pools (Corner Solutions). For any pool that is fully drained (), the constraint is active, allowing . This implies:
Conclusion: A pool is emptied if and only if its maximum possible marginal yield (at zero balance) is strictly less than or equal to the portfolio equilibrium . Effectively, it is “too expensive” to keep active.
Remark. This result formally validates the “Water-Filling” heuristic: Capital flows into the highest-yield pools first, filling them until their marginal yield dilutes to match the next best pool. Pools with yield curves strictly below the equilibrium threshold receive zero allocation.
Conclusion
This article presented a static, single-period framework for optimizing liquidity distribution in decentralized lending markets. We identified yield slippage—the endogenous decay of interest rates caused by capital injection—as the primary inefficiency facing large-scale liquidity providers.
By deriving the Marginal Yield under the assumption of risk-free markets, we proved that the optimal portfolio state satisfies the Equimarginal Principle, where the marginal utility of the last unit of capital is identical across all active pools. Under the Diminishing Marginal Returns assumption, this characterization is both necessary and sufficient, identifying a unique global optimum.
For the vault risk curator introduced at the outset, this delivers a precise prescription: hold each active pool’s marginal yield at a common shadow price , and drain any pool whose maximum attainable marginal yield falls below it. The naive “chase the highest APY” heuristic is thereby replaced by a principled, slippage-aware allocation rule.