ChainScore Labs
LABS
Guides

An Introduction to Money Markets in DeFi

A technical breakdown of decentralized lending and borrowing protocols, covering core mechanisms, risks, and real-world applications.
Chainscore © 2025
core-concepts

Core Components of a DeFi Money Market

An overview of the fundamental building blocks that enable decentralized lending and borrowing, allowing users to earn interest on deposits or access liquidity by using crypto assets as collateral.

01

Lending Pools

Lending pools are the foundational liquidity reservoirs where users deposit assets to earn interest. These are automated, smart contract-based pools that aggregate funds from many lenders.

  • Users deposit assets like ETH or USDC to become liquidity providers.
  • The pooled funds are then available for borrowers to take out loans.
  • Interest rates are typically algorithmically determined by supply and demand.
  • This matters as it creates a permissionless marketplace for capital, enabling platforms like Aave and Compound to function.
02

Collateralization

Collateralization is the process where borrowers lock up crypto assets as security for a loan. This mechanism protects lenders from default risk in a trustless environment.

  • Borrowers must over-collateralize, meaning the collateral value exceeds the loan value.
  • Common collateral assets include ETH, wBTC, and various LP tokens.
  • If the collateral's value falls below a certain threshold (the liquidation ratio), it can be automatically sold.
  • This is crucial for maintaining system solvency and enabling undercollateralized loans through innovative models.
03

Interest Rate Models

Interest rate models are algorithms that dynamically adjust borrowing and lending rates based on real-time pool utilization. They are essential for balancing supply and demand.

  • Rates often increase as more of a pool's liquidity is borrowed to incentivize more deposits.
  • Models can be linear, kinked, or adaptive, as seen in Compound's jump-rate model.
  • This automated pricing ensures efficient capital allocation and competitive yields for lenders.
  • For users, it means interest rates that reflect true market conditions without a central authority.
04

Liquidation Mechanisms

Liquidation mechanisms are automated processes that sell a borrower's collateral if its value drops too close to the loan value, ensuring lenders are always repaid.

  • Triggered when the collateral's health factor or collateralization ratio falls below a safe threshold.
  • Liquidators are incentivized with a discount or bonus to repay the bad debt and seize the collateral.
  • This process is critical for managing risk and maintaining the protocol's financial health.
  • For the ecosystem, it prevents systemic insolvency, as seen in MakerDAO's liquidation auctions.
05

Governance Tokens

Governance tokens are native assets that grant holders voting rights over a money market protocol's development and parameters, decentralizing its control.

  • Token holders can propose and vote on changes to interest models, supported assets, or fee structures.
  • Examples include AAVE for Aave and COMP for Compound.
  • Holding tokens often also provides fee-sharing or staking rewards.
  • This matters as it aligns the protocol's evolution with its community, moving away from centralized decision-making.
06

Oracles

Oracles are external data feeds that provide reliable, real-time price information for collateral assets to the smart contracts. They are the critical link between off-chain data and on-chain execution.

  • They supply accurate asset prices to calculate collateralization ratios and trigger liquidations.
  • Decentralized oracle networks like Chainlink are commonly used to prevent manipulation.
  • A failure in oracle data can lead to incorrect liquidations or undercollateralized loans.
  • For users, reliable oracles are essential for the security and fair operation of the entire system.

How a DeFi Money Market Operates

A step-by-step overview of the core processes in a decentralized finance money market protocol.

1

Depositing Collateral to Mint Assets

Users supply crypto assets as collateral to the protocol to borrow or earn yield.

Detailed Instructions

To participate, a user first connects their Web3 wallet (like MetaMask) to the protocol's front-end. They then deposit an accepted asset, such as ETH, into a smart contract vault. This action mints a collateralized debt position (CDP) or updates their collateral factor. The protocol uses price oracles to determine the value of the deposited asset. For example, depositing 10 ETH valued at $3,000 each provides $30,000 in collateral value.

  • Sub-step 1: Approve the asset. Authorize the protocol's smart contract to spend your tokens using a transaction.
  • Sub-step 2: Execute the deposit. Call the supply() function on the contract, specifying the asset and amount.
  • Sub-step 3: Receive a receipt token. The protocol issues a token (like cETH or aETH) representing your share of the pool and accruing interest.

Tip: Always check the loan-to-value (LTV) ratio limits for your collateral to understand your borrowing capacity.

2

Borrowing Against Collateral

Users take out loans in other assets by using their deposited collateral as security.

Detailed Instructions

Once collateral is supplied, users can borrow up to a percentage of its value, dictated by the maximum LTV ratio. For instance, if ETH has a 75% LTV, $30,000 in collateral allows borrowing up to $22,500 worth of a stablecoin like DAI. The borrowed amount accrues interest at a variable rate determined by supply and demand in the pool. The borrowed assets are transferred directly to the user's wallet.

  • Sub-step 1: Check borrowing power. Query the smart contract for your available borrow limit based on current collateral value.
  • Sub-step 2: Execute the borrow. Call the borrow() function, specifying the asset (e.g., the DAI token address 0x6B175474E89094C44Da98b954EedeAC495271d0F) and amount.
  • Sub-step 3: Monitor health factor. Your position's health factor must stay above 1.0 to avoid liquidation. It's calculated as (Collateral Value * Liquidation Threshold) / Total Borrowed Value.

Tip: Borrowing increases your risk. A falling collateral price or rising borrowed amount can quickly push your health factor below the safe threshold.

3

Earning Interest and Managing Positions

Lenders earn yield on supplied assets, and borrowers manage their debt positions.

Detailed Instructions

Suppliers earn passive income through supply APY, which is generated from the interest paid by borrowers. This yield is automatically compounded into their receipt token balance. Borrowers must pay the borrow APY on their loan. They can manage their position by repaying debt or adding more collateral to improve their health factor. Rates are typically calculated per block and can be queried from the protocol.

  • Sub-step 1: Track accrued interest. Your supplied token balance increases over time. Use the protocol's UI or query the contract's balanceOfUnderlying(yourAddress) function.
  • Sub-step 2: Repay debt partially or fully. To repay, call repayBorrow(assetAddress, repayAmount). You must first approve the protocol to spend the repayment token.
  • Sub-step 3: Add collateral. Call supply() again with more assets to increase your collateral value and health factor.

Tip: Use a dashboard or bot to monitor your health factor, especially during high market volatility, to prevent unexpected liquidation.

4

Liquidations and Risk Management

The protocol automatically liquidates undercollateralized positions to maintain solvency.

Detailed Instructions

Liquidation is a critical risk mechanism. If a borrower's health factor falls below 1.0 (e.g., due to collateral value dropping), their position becomes eligible for liquidation. Any user (often a bot) can act as a liquidator by repaying a portion of the borrower's debt in exchange for a discounted portion of their collateral. This liquidation incentive is typically a bonus of 5-10%. The process is executed via a smart contract call.

  • Sub-step 1: Identify unhealthy positions. Liquidators scan the protocol for positions with healthFactor < 1. They can use subgraphs or contract events.
  • Sub-step 2: Execute liquidation. Call the liquidateBorrow(borrowerAddress, repayAmount, collateralAssetAddress) function. For example: liquidateBorrow("0x1234...", 1000, "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2").
  • Sub-step 3: Receive seized collateral. The liquidator receives the borrower's collateral at a discount, ensuring the protocol remains overcollateralized.

Tip: As a borrower, maintaining a health factor well above 1.5 is advisable to create a safety buffer against market swings.

Comparing Major Money Market Protocols

An overview of key features and metrics for leading DeFi lending platforms as of Q4 2023.

ProtocolTotal Value Locked (TVL)Native TokenMajor Collateral AssetsUnique Feature

Aave

$6.2B

AAVE

ETH, wBTC, USDC

Risk Isolation via Portals

Compound

$2.1B

COMP

ETH, USDC, WBTC

Governance-Driven Upgrades

MakerDAO

$8.5B

MKR

ETH, wstETH, RWA

DAI Stablecoin Issuance

Euler Finance

$310M (pre-hack)

EUL

ETH, stETH, wBTC

Permissionless Listings

Morpho Blue

$1.4B

MORPHO

wETH, weETH, USDC

Optimized Capital Efficiency

Spark Protocol

$1.8B

SPK (planned)

DAI, ETH, stETH

MakerDAO Ecosystem Integration

Participant Perspectives and Strategies

Understanding the Basics

A money market in DeFi is a protocol that allows users to lend and borrow crypto assets algorithmically, without a traditional bank. Think of it as a global, permissionless savings account and loan system. Your deposited assets earn interest, while borrowers provide collateral to take out loans.

Key Points

  • Supplying Assets: You deposit tokens like USDC or ETH into a pool (e.g., Aave or Compound) to become a liquidity provider. In return, you receive interest-bearing tokens representing your share.
  • Borrowing Assets: To borrow, you must over-collateralize. For example, you might deposit $150 worth of ETH as collateral to borrow $100 of DAI, maintaining a health factor to avoid liquidation.
  • Earning Yield: Interest rates are set by supply and demand. High demand for borrowing an asset increases the supply APY for lenders.

Example

When using Aave, you would connect your wallet, deposit USDC into the protocol, and start earning a variable interest rate. You can see your growing balance in real-time and withdraw your funds plus interest at any time.

key-risks

Critical Risks and Mitigations

An overview of the primary vulnerabilities in DeFi money markets and the strategies employed to manage them, essential for informed participation.

01

Smart Contract Risk

Smart contract vulnerabilities are flaws in the code that powers lending protocols, which can be exploited to drain funds.\n\n- Reentrancy attacks where a function is called repeatedly before the first execution finishes.\n- Oracle manipulation feeding incorrect price data to trigger unfair liquidations.\n- Logic errors in interest rate models or collateral calculations.\nThis matters because users' deposited assets are directly at stake; a single bug can lead to catastrophic, irreversible losses, as seen in historical exploits.

02

Liquidation Risk

Liquidation risk occurs when a borrower's collateral value falls below the required threshold, triggering an automatic sale at a discount.\n\n- Volatility spikes can rapidly drop collateral value below the loan-to-value (LTV) ratio.\n- Liquidation penalties often result in users losing a portion of their collateral.\n- Network congestion may delay attempts to add more collateral or repay.\nThis is critical as it can quickly erase a user's position, emphasizing the need for conservative borrowing and active monitoring.

03

Oracle Risk

Oracle risk stems from reliance on external data feeds for asset pricing, which if inaccurate or manipulated, can destabilize the entire protocol.\n\n- Price feed lag during high volatility causing outdated valuations.\n- Flash loan attacks to artificially manipulate an asset's spot price on a DEX.\n- Centralized oracle failure creating a single point of failure.\nThis matters because faulty price data leads to improper liquidations, bad debt, and systemic insolvency, as was a factor in the Mango Markets exploit.

04

Governance and Centralization Risk

Governance risk involves the concentration of decision-making power, which can lead to changes that harm users.\n\n- Vote manipulation through token accumulation or delegation.\n- Admin key risk where a multi-sig or team can upgrade contracts or withdraw funds.\n- Proposal apathy leading to low voter turnout and centralized control.\nThis is vital because it threatens the decentralized ethos; users must trust that governance acts in the protocol's long-term health, not for short-term gain.

05

Interest Rate Risk

Interest rate risk refers to the volatility in borrowing and lending rates, which can unpredictably affect returns and costs.\n\n- Algorithmic rate models that can change rapidly with market supply and demand.\n- Negative real yield where inflation outpaces the earned interest on deposits.\n- Rate arbitrage opportunities that can dry up, leaving lenders with lower income.\nThis impacts users' profitability and planning, making it essential to understand the protocol's specific rate model and market conditions.

06

Counterparty and Insolvency Risk

Counterparty risk in DeFi is the chance that the other side of a transaction (like the protocol itself) becomes insolvent and cannot fulfill obligations.\n\n- Protocol insolvency from a cascade of bad debt after mass liquidations.\n- Over-collateralization requirements that may still fail in extreme market crashes.\n- Interconnectedness where one protocol's failure impacts others through integrated assets.\nThis is fundamental as it questions the ultimate safety of deposited funds, highlighting the need for audits, insurance, and diversification.

Frequently Asked Questions

A DeFi money market is built on several core components that enable permissionless lending and borrowing.

  • Liquidity Pools: These are smart contract-based reserves where users deposit assets to earn interest. For example, Aave and Compound hold billions in Total Value Locked (TVL).
  • Interest Rate Models: Algorithms, often dynamic, that adjust borrowing and lending rates based on pool utilization. A common model might start rates at 2% and scale up to 20%+ as the pool is depleted.
  • Collateralization: To borrow, users must over-collateralize their loans, often at 150% or more, to protect the protocol from price volatility.

For instance, depositing $150 of ETH might allow you to borrow up to $100 of DAI, with the loan being liquidated if your collateral value falls below the required threshold.