The Architecture of Decentralized Lending
Decentralized lending protocols represent one of the most successful use cases for smart contracts. Platforms like Aave, Compound, and Morpho collectively manage over $40 billion in total value locked (TVL), facilitating billions in lending activity without any centralized intermediary.
The core mechanism is elegantly simple: depositors supply assets to liquidity pools and earn interest; borrowers deposit collateral and borrow against it. All terms—interest rates, collateral ratios, liquidation thresholds—are enforced by immutable smart contracts rather than human underwriters.
The Interest Rate Model
Unlike traditional banks, which set rates based on credit committees and competitive dynamics, DeFi lending protocols use algorithmic interest rate models. The most common is the “kinked” utilization model:
- When utilization is below the optimal rate (typically 80%), rates increase gradually to incentivize more deposits
- When utilization exceeds the optimal rate, rates increase sharply to discourage borrowing and attract deposits
- The result is a self-balancing system that adjusts rates in real time based on supply and demand
This model has proven remarkably robust through multiple market cycles, though extreme volatility events have exposed edge cases in the liquidation engine.
Liquidation Mechanics
When a borrower’s collateral value falls below the required threshold, their position becomes eligible for liquidation. Third-party liquidators can repay a portion of the debt and claim the collateral at a discount (typically 5–10%).
The challenge is maintaining liquidation efficiency during market crashes. When prices fall rapidly, liquidators may be unable to profitably close underwater positions, leading to “bad debt” that must be socialized across the protocol. Innovations like partial liquidations, Dutch auction liquidators, and isolated margin markets are addressing these edge cases.