Skip to main content
Important: We do not provide financial advice or custody funds. All transactions occur on third-party platforms.

Lending Markets from First Principles

Interest-rate models, liquidation engines, collateral factors — the mechanics behind Aave & Compound.

35 min · advanced · part of DeFi Deep Dive: Lending, AMMs & Yield

What an On-Chain Money Market Actually Is

Most people meet DeFi lending through a brand: "I deposit on Aave," "I borrow on Compound." The brands obscure a simple structure underneath. An on-chain money market is a smart contract that holds a pool of one asset (say USDC), lets one set of users supply that asset to the pool, and lets a separate set of users post unrelated collateral (say ETH) to borrow from the pool. The contract continuously computes an interest rate based on how much of the pool is currently borrowed, charges that rate to borrowers, and credits a (lower) share of it to suppliers. There is no loan officer, no credit check, no maturity date, and no counterparty matching. The pool itself is the counterparty. This pooled-liquidity design is the central innovation. Traditional peer-to-peer lending requires someone to want to lend exactly what someone else wants to borrow, for exactly the duration they need it. That coincidence-of-wants problem killed early P2P crypto lending products. Pool-based money markets eliminated it by making every supplier interchangeable: you do not lend to a specific borrower, you lend to the pool, and the pool lends to whoever shows up with collateral. Your funds are immediately fungible with every other supplier's funds, and you can withdraw at any moment (subject to a utilization constraint we will get to). Because there is no credit check, every loan has to be **overcollateralized**. If you want to borrow $1,000 of USDC, you have to post substantially more than $1,000 of some other asset as collateral. The protocol does not care who you are; it only cares that if your collateral value falls, it can liquidate it for enough to repay the loan plus a buffer. This is the entire trust model: not "we trust the borrower" but "we trust the math on the collateral." The rest of this lesson is about how the math works — interest rates, collateral factors, liquidation engines — and how the two largest implementations (Aave and Compound) actually deploy that math in production.

Also in this lesson

  • Interest-Rate Models: The Utilization Curve
  • Collateral Factors, LTV, and Liquidation Thresholds
  • Aave and Compound: Concrete Comparisons
  • Bad Debt and Why It Happens
  • What to Remember

Key terms

Money market
An on-chain protocol where pooled liquidity is supplied by lenders and borrowed against by users posting overcollateralized assets, with interest rates set algorithmically by utilization.
Utilization
The fraction of supplied assets currently borrowed (total borrows / total supply). It is the input to a money market's interest-rate model.
Kinked interest-rate model
An interest-rate curve with a gentle slope below a target utilization point and a steep slope above it, designed to keep utilization near optimum.
LTV (loan-to-value)
The maximum amount, expressed as a percentage of collateral value, that a user can borrow against a given collateral asset on a money market.
Liquidation threshold
The collateral-to-debt ratio at which a position becomes eligible to be liquidated. Always equal to or higher than LTV.
Health factor
On Aave, the ratio (collateral value × liquidation threshold) / total debt. A position with HF below 1 can be liquidated by anyone.
Liquidation bonus
The discount a liquidator receives on seized collateral when closing an unhealthy position. Typically 5-10% on Aave V3, paid out of the borrower's collateral.
Safety Module
Aave's explicit on-chain insurance backstop. AAVE holders stake into a slashable contract (up to 30%) to absorb shortfall events; in exchange they receive staking rewards and a share of protocol fees.
GHO
Aave's native stablecoin, launched 2023. GHO is minted directly by Aave borrowers, and the interest paid on GHO loans flows to the Aave DAO treasury.
Bad debt
Outstanding loans where the borrower's collateral is worth less than the debt, leaving the protocol with an unrecoverable loss. Caused by oracle issues, market gaps, or illiquid collateral.

Continue this lesson — 5 more sections in the CryptoBipto app.

Open lesson

Educational only — not financial advice.