What DeFi Risk Management Covers
Risk management in DeFi lending is the work of making sure lenders get their money back. In practice it has meant setting parameters for each market: which assets are accepted as collateral, how much can be borrowed against them, and at what point a position is liquidated.
That work is done at the level of the market, and it treats every borrower in a market identically. A wallet with five years of clean repayments and a wallet created this morning get the same terms. This guide describes a framework in four layers. The first two are standard practice. The last two bring in the borrower, which is where most protocols have room to improve.
The Risks, Briefly
| Risk | What goes wrong | Main defence |
|---|---|---|
| Market | Collateral falls in value faster than it can be liquidated | Loan-to-value limits, liquidation incentives |
| Liquidity | Collateral cannot be sold at its quoted price, or lenders cannot withdraw | Supply and borrow caps, utilisation targets |
| Oracle | The price the protocol sees is wrong or manipulated | Robust price feeds, conservative listing |
| Smart contract | A bug or exploit drains funds | Audits, limits, staged rollouts |
| Concentration | A few borrowers hold most of the debt | Per-borrower visibility and limits |
| Counterparty | The borrower is sanctioned, fraudulent, or one of many wallets run by the same actor | Screening before lending |
| Credit | The borrower does not repay | Collateral, and knowledge of the borrower |
The first four are market-level and well served by existing tools and risk teams. The last three are about who is borrowing, and they are the subject of the rest of this guide.
Layer 1: Market Parameters
Every lending market starts here. The loan-to-value limit sets how much can be borrowed against an asset. The liquidation threshold sets when a position becomes eligible for liquidation, and the liquidation bonus pays liquidators to act. Caps limit how much of any one asset the market will accept.
These parameters are set per asset from its volatility and liquidity, and they are deliberately conservative because they must hold for the worst borrower in the market. That conservatism is the cost that the later layers can reduce.
Layer 2: Position Health
The second layer watches individual positions. A position's health factor compares the value of its collateral, adjusted by the liquidation threshold, to its debt. Above 1, the position is safe. At 1, it can be liquidated.
How positions are distributed across health factors tells you how much of a market is at risk from a given price move. So does concentration: a market where ten wallets hold most of the debt behaves differently from one with thousands of small borrowers. Our Morpho Blue statistics page shows both distributions for a live protocol, along with its liquidation counts.
Layer 3: The Borrower
The third layer asks who is borrowing. Because wallet histories are public, it can be answered without asking the borrower for anything.
Screening
Before terms, eligibility. Is the address on a sanctions list, has it dealt with one, and does it behave like an independent user or one of a farm? These checks are cheap and belong at the front of any flow. Our wallet screening guide covers them in order.
Credit history
A wallet's record on other lending protocols is direct evidence of how it handles debt: how often it has borrowed, whether it repaid, and whether it has been liquidated. A credit score condenses that record, with the wallet's age, holdings and activity, into a number from 300 to 1000. The full report shows the loans themselves.
Using it
The simplest use is tiered terms: borrowers with a strong record get a lower collateral requirement, while the position stays over-collateralized.
const res = await fetch(
"https://api.credprotocol.com/api/v2/score/address/" + borrower,
{ headers: { Authorization: "Bearer " + process.env.CRED_API_KEY } }
);
const { score, provisional } = await res.json();
// A provisional score may not include every liquidation yet. Ask again before acting.
if (provisional) return retryShortly();
// Illustrative thresholds. Set yours from your own loss data.
if (score >= 920) return { collateralRatio: 1.10 };
if (score >= 840) return { collateralRatio: 1.25 };
if (score >= 750) return { collateralRatio: 1.40 };
return { collateralRatio: 1.50 };
Two cautions. The thresholds above are examples: start with small differences between tiers and widen them as your own data supports it. And a score is one input to a policy, not the policy. Combine it with per-borrower caps so that a single misjudged wallet cannot do much damage.
Layer 4: Monitoring
The first three layers describe a borrower at the moment of the loan. The fourth keeps that description current. What you want to know is what the borrower does elsewhere: a large new loan on another protocol, a liquidation on another protocol, a credit score that falls through one of your tiers.
Polling for this is expensive and slow. Monitoring webhooks push a signed notification when a watched address borrows, repays, is liquidated, or when its score changes, typically within five to ten minutes of the on-chain event. Credit monitoring vs credit reporting explains how the two fit together across the life of a loan.
The same approach works for any counterparty whose wallets you know, not only your own borrowers. Our guide to crypto counterparty risk covers that wider case.
Decide in advance what each alert triggers. A liquidation elsewhere might freeze further borrowing. A score moving down a tier might restore the standard collateral requirement at the next adjustment. An alert without a policy attached is noise.
Putting the Layers Together
- Set market parameters for the worst case, as today.
- Track position health and concentration to know how much is at risk.
- Screen every borrower, then use credit history to vary terms within safe bounds.
- Monitor borrowers you have exposure to, with a written response for each event.
Layers three and four do not replace the first two. They let a protocol be conservative where it has to be and efficient where the evidence allows it.
Limits Worth Stating
- Coverage. Cred reads wallet behaviour across ten EVM chains and indexes lending events on Ethereum and Base, from Aave, Compound and Morpho Blue. Borrowing elsewhere is not in the history.
- A new wallet has no record. No history is not a good history. Give it standard terms.
- Individuals. Cred's default delivery is commercial analytics, not a consumer report. Using a score to decide an individual's eligibility for credit requires the certified consumer-report delivery mode.
Next Steps
The capital-efficient lending guide has a fuller implementation of tiered collateral. To see what the data says about borrowers you already know, create an API key or book a demo.
