Lending and Borrowing in DeFi: How Aave, Compound, APYs, Collateral, Health Factor, and Liquidations Work
Lending and borrowing in DeFi allows users to supply assets into pooled money markets, earn variable yield, and borrow against collateral without using a traditional bank. Protocols such as Aave and Compound use smart contracts, algorithmic interest rates, collateral rules, liquidation thresholds, and oracle prices to keep markets functioning. The opportunity is real, but so is the risk. Before clicking deposit or borrow, users need to understand utilization, receipt tokens, loan-to-value, health factor, rate spikes, liquidations, stablecoin risk, smart contract risk, and how quickly leverage can become dangerous during market stress.
TL;DR
- DeFi lending protocols let suppliers deposit assets into shared pools and earn variable APY from borrowers who pay interest.
- Aave uses aTokens as receipt tokens. Compound uses cTokens. These tokens represent a user’s claim on supplied assets plus accrued interest.
- Borrowers must post collateral and stay within protocol limits such as loan-to-value, liquidation threshold, and health factor.
- Health factor is a solvency meter. If it falls to 1 or below, the position can be liquidated.
- Utilization controls APYs. When a market is heavily borrowed, borrow rates rise and supply rates usually rise too.
- Liquidations protect the lending pool but punish risky borrowers through collateral seizure and liquidation penalties.
- Users should start small, avoid max borrowing, keep a wide health factor buffer, monitor rates, and understand every collateral asset before using leverage.
DeFi borrowing normally requires users to deposit more value than they borrow. The protocol does not trust the borrower’s identity or credit score. It trusts collateral, oracle prices, liquidation rules, and automated risk parameters. If the collateral value falls too much or debt grows too large, liquidators can step in.
Markets, APYs and utilization
Protocols such as Aave and Compound operate pooled money markets. Suppliers deposit assets into a shared liquidity pool. Borrowers draw liquidity from that same pool and pay interest. The interest paid by borrowers funds the yield earned by suppliers, after protocol rules and reserve factors are applied.
Interest rates are usually algorithmic. They respond to utilization, which measures how much of a pool’s available liquidity has been borrowed. The formula is simple in concept:
When utilization rises, liquidity becomes scarcer. Borrow rates increase to discourage excessive borrowing and attract more supply. When utilization falls, liquidity is abundant and rates usually decrease.
Many lending markets use a kinked interest rate model. Below the kink, rates rise gradually. Above the kink, rates rise sharply. The kink exists to protect liquidity. If too much of the pool is borrowed, withdrawals become harder and the protocol must make borrowing more expensive.
Supply APY is variable. Borrow APY is also variable unless the protocol offers a slower-moving stable-style rate. This means users should not treat displayed APY as fixed. Rates can change quickly when utilization spikes, especially during volatility, liquidations, stablecoin demand, or market-wide stress.
| Market condition | Utilization | Borrow APY | Supply APY |
|---|---|---|---|
| Lots of idle liquidity | Low | Usually low | Usually low |
| Healthy borrowing demand | Moderate | Rises gradually | Rises with borrower demand |
| Near kink utilization | High | Can rise quickly | Can become more attractive |
| Stress or liquidity shortage | Very high | Can spike sharply | Higher, but withdrawal liquidity may be tighter |
Receipt tokens: aTokens and cTokens
When a user supplies assets to a DeFi lending protocol, the protocol issues a receipt token. This receipt token proves the user’s claim on the pool and tracks interest accrual.
On Aave, suppliers receive aTokens. For example, a user who supplies USDC receives aUSDC. The aToken balance increases over time as interest accrues, depending on protocol mechanics and market conditions.
On Compound, suppliers receive cTokens. The cToken balance may stay constant, but each cToken becomes redeemable for more of the underlying asset as the exchange rate increases. The user’s claim grows through the exchange rate rather than a visibly increasing balance.
Receipt tokens can sometimes be used in other DeFi applications. This composability is powerful, but it also stacks risk. If a user supplies assets to a lending protocol and then uses the receipt token elsewhere, they now depend on both the original lending market and the second protocol.
Collateral, LTV and health factor
Borrowing in DeFi usually requires collateral. A user deposits an asset, enables it as collateral, and then borrows another asset within the protocol’s risk limits. Not every supplied asset should automatically be treated as safe collateral. Each asset has its own parameters.
Loan-to-value, often shortened to LTV, defines how much a user can borrow against collateral under normal conditions. If an asset has a 70 percent LTV and the user deposits $10,000 of collateral, the suggested maximum borrow value may be around $7,000.
The liquidation threshold is the more dangerous boundary. It defines when the position becomes eligible for liquidation. It is usually higher than LTV because the protocol needs a buffer between recommended borrowing and liquidation.
Health factor combines collateral value, liquidation thresholds, and debt value into a single solvency metric. A simplified version is:
Health factor above 1 means the position is not liquidatable. Health factor at or below 1 means liquidations can occur. Many users keep health factor above 1.5 to 2.0, and conservative users may target even higher buffers during volatile markets.
Example: ETH collateral and USDC debt
A user deposits $10,000 worth of ETH. The liquidation threshold is 80 percent. The user borrows $6,000 USDC. The simplified health factor is $10,000 multiplied by 0.8, divided by $6,000. That equals 1.33.
At 1.33, the position is not immediately liquidatable, but it is not very conservative. If ETH drops 20 percent, the collateral value becomes $8,000. The new simplified health factor becomes $8,000 multiplied by 0.8, divided by $6,000. That equals 1.07. The position is now close to liquidation.
A further decline can push health factor to 1 or below. That is when liquidators can repay part of the debt and seize collateral at a discount.
| Scenario | Collateral value | Debt value | Approximate health factor |
|---|---|---|---|
| Initial position | $10,000 | $6,000 | 1.33 |
| ETH drops 20 percent | $8,000 | $6,000 | 1.07 |
| ETH drops further | $7,300 | $6,000 | Below or near liquidation risk |
Liquidations: how and why they happen
Liquidations exist to protect the lending pool. If a borrower’s collateral no longer safely covers their debt, the protocol allows liquidators to repay part of the borrower’s debt and claim part of the borrower’s collateral at a discount.
This process reduces the risky debt and improves the position’s health factor. But for the borrower, it is painful. They lose collateral, pay a liquidation penalty indirectly, and may be left with a smaller position.
Liquidation systems usually include a close factor and liquidation bonus. The close factor controls how much of the debt can be repaid in one liquidation action. The liquidation bonus is the discount or reward liquidators receive for taking action.
Borrow mechanics: rates, caps and modes
DeFi borrowing involves more than headline APY. Mature lending markets use multiple risk controls to manage liquidity, collateral quality, rate volatility, and protocol solvency.
Variable rates move with utilization. If utilization rises after a user borrows, the borrow APY can increase. Some markets offer stable-style borrowing rates that move more slowly, but these may cost more upfront and may not be available for every asset.
Supply caps and borrow caps limit how much of a specific asset can enter or leave the market. These caps help contain risk for volatile, new, illiquid, bridged, or less trusted assets.
Isolation modes restrict how riskier collateral assets can be used. Efficiency modes, sometimes called e-mode, can allow higher borrowing power for closely correlated assets such as similar stablecoins or liquid staking tokens, depending on protocol design.
Flash loans and credit delegation are advanced borrowing features. Flash loans allow borrowing without upfront collateral if the loan is repaid in the same transaction. Credit delegation allows one user to borrow against another user’s delegated credit line. These are powerful, but they are not beginner tools.
End-to-end workflow: deposit, borrow, repay
The basic DeFi lending workflow starts with choosing the right protocol, network, and asset. Users should prefer deep, battle-tested markets with strong liquidity, robust oracles, transparent risk parameters, and clear documentation.
First, the user deposits funds. This usually requires an approval transaction followed by a supply transaction. After supplying, the user receives receipt tokens such as aTokens or cTokens.
Second, the user may enable the supplied asset as collateral. This should not be done casually. If an asset is used as collateral, it can be seized during liquidation if the borrow position becomes unsafe.
Third, the user sizes the borrow. Conservative borrowers do not max out LTV. They simulate drawdowns, rate spikes, and stablecoin depeg scenarios before borrowing. A common safety habit is to check whether the position survives a 20 percent, 30 percent, or even 50 percent collateral drop while keeping health factor above 1 with room to spare.
Fourth, the user monitors the position. Borrowing is not set-and-forget. Collateral prices move, debt accrues interest, utilization changes, and APYs can spike. Users should set alerts for health factor, collateral price, borrow rate, utilization, and oracle-related risk.
Finally, the user repays the loan plus accrued interest, disables collateral if needed, and withdraws the supplied asset by redeeming receipt tokens.
Practical borrowing workflow
- Choose a reputable lending protocol and supported network.
- Review asset LTV, liquidation threshold, liquidation penalty, caps, and oracle source.
- Deposit the collateral asset and verify the receipt token position.
- Enable collateral only for assets you are willing to risk.
- Borrow below the maximum limit and keep a wide health factor buffer.
- Simulate collateral drawdowns before borrowing.
- Set alerts for health factor, prices, utilization, borrow APY, and liquidation risk.
- Repay early or add collateral before stress becomes urgent.
- When finished, repay debt, withdraw collateral, and revoke unnecessary approvals.
Key risks in DeFi lending
The main risk for borrowers is liquidation. If collateral value falls, debt grows, or the oracle price changes against the borrower, health factor can fall quickly. Borrowing stablecoins against volatile collateral is popular, but drawdowns can compress health factor faster than beginners expect.
Oracle risk is another major issue. Lending protocols depend on price feeds to determine collateral value and liquidation eligibility. If an oracle is stale, manipulated, delayed, or poorly designed, users can face wrongful liquidations or protocol insolvency.
Smart contract risk also matters. Aave and Compound are battle-tested protocols, but no smart contract system is risk-free. Bugs, governance mistakes, integration issues, oracle failures, or market parameter errors can still create loss.
Stablecoin risk appears when users borrow, supply, or collateralize stable assets. A depeg can affect collateral value, debt value, liquidation math, and user exit liquidity. Stable does not mean riskless.
Rate risk matters because borrow costs can surge when utilization spikes. If a user borrows at a low variable rate and utilization later jumps above the kink, the loan can become expensive quickly.
Composability risk appears when receipt tokens are used in other protocols. If a user supplies assets to Aave, receives aTokens, and then uses those aTokens in another DeFi strategy, the risk stack becomes larger.
| Risk | What it means | Who it affects | Mitigation |
|---|---|---|---|
| Liquidation risk | Health factor falls to 1 or below | Borrowers | Borrow less, keep large buffers, add collateral early |
| Price volatility | Collateral value drops quickly | Borrowers using volatile collateral | Simulate drawdowns and avoid max LTV |
| Oracle risk | Bad or delayed price feeds affect health factor | Borrowers and suppliers | Use markets with robust oracle design |
| Stablecoin risk | Stable assets depeg or face issuer problems | Borrowers and suppliers | Diversify and understand each stablecoin |
| Rate risk | Borrow APY rises during high utilization | Borrowers | Model worst-case rates and repay proactively |
| Smart contract risk | Protocol code or integration fails | All users | Use battle-tested markets and size positions prudently |
| Composability risk | Receipt tokens are reused in other protocols | Advanced users | Avoid unnecessary stacking unless risk is understood |
Monitoring health factor and market risk
Borrowing positions should be monitored continuously. A borrower who only checks health factor once after opening a position can be surprised by fast market moves, changing APYs, or collateral volatility.
Useful monitoring signals include health factor, collateral price, debt growth, utilization, borrow APY, liquidation threshold, stablecoin peg status, and protocol-specific risk announcements. Users should also monitor whether their collateral asset is becoming less liquid or more volatile.
On-chain analytics platforms such as Nansen can help users research wallet flows, token activity, and broader DeFi market behavior before taking lending or borrowing positions. This does not remove risk, but better data can help users avoid blind decisions.
Wallet security and approvals
Lending protocols require wallet approvals and contract interactions. Users may approve collateral tokens, supply assets, borrow, repay, and withdraw. Each signature should be reviewed carefully because malicious front ends, fake protocol links, and approval-draining scams are common in DeFi.
For larger lending positions, users should separate long-term storage from active DeFi wallets. A hardware wallet such as Ledger can reduce private key exposure, but users still need to verify the protocol, contract, chain, transaction details, and approval scope before signing.
After repaying and withdrawing, users should review token approvals. Leaving unlimited approvals open forever increases exposure if a router, approval target, or front-end flow is compromised later.
Tax and accounting records
DeFi lending can create complex records. Supplying, borrowing, claiming rewards, repaying interest, receiving receipt tokens, using collateral, getting liquidated, or moving positions across protocols may all matter for tax and accounting depending on jurisdiction.
Users should keep records of deposit dates, withdrawal dates, borrowed assets, repaid interest, reward tokens, liquidation events, gas fees, and wallet transfers. Tools such as CoinLedger or Koinly can help organize crypto transaction history for reporting workflows.
Risk mitigation checklist
Before using DeFi lending markets
- Use battle-tested lending protocols with deep liquidity and transparent risk parameters.
- Check LTV, liquidation threshold, liquidation bonus, borrow caps, supply caps, and oracle source.
- Never borrow the maximum allowed amount.
- Keep health factor comfortably above 1, preferably with a wide volatility buffer.
- Simulate 20 percent, 30 percent, and 50 percent collateral drawdowns before borrowing.
- Understand whether the borrow rate is variable or stable-style.
- Monitor utilization because high utilization can push borrow rates sharply higher.
- Do not use highly illiquid or extremely volatile assets as collateral unless you fully understand the risk.
- Diversify collateral where appropriate instead of depending on one volatile asset.
- Repay or add collateral before health factor becomes urgent.
- Watch stablecoin peg risk if borrowing or supplying stable assets.
- Use strong wallet security and revoke unnecessary approvals after closing positions.
Quick check
Use these questions to confirm the core concepts before using a lending protocol.
How does utilization affect supply and borrow APYs?
Higher utilization usually increases borrow APY and supply APY because liquidity is scarcer. Lower utilization usually reduces both rates because more liquidity is idle.
What do aTokens and cTokens represent?
They are receipt tokens that represent a user’s claim on supplied assets in a lending pool. Aave aTokens generally grow through balance mechanics, while Compound cTokens grow through an increasing exchange rate.
What does health factor mean?
Health factor measures whether a borrowing position has enough collateral relative to debt. If health factor falls to 1 or below, liquidation can occur.
How can borrowers reduce liquidation risk?
Borrow less than the maximum, keep a wide health factor buffer, monitor collateral prices, add collateral early, repay debt proactively, and avoid overusing volatile assets as collateral.
Final recommendation
DeFi lending and borrowing can be useful, but it should be treated with respect. Supplying assets to earn APY is not the same as earning a guaranteed fixed return. Borrowing against collateral is not the same as free liquidity. The system is governed by utilization, oracle prices, risk parameters, interest accrual, and liquidation incentives.
Aave and Compound helped define overcollateralized DeFi lending, but users still need to understand the mechanics before using them. Receipt tokens track supplied assets. Utilization drives rates. Collateral settings determine borrowing power. Health factor determines liquidation risk. Liquidators protect the pool when borrowers become unsafe.
The safer approach is simple: start small, borrow conservatively, avoid maximum LTV, monitor health factor, understand every collateral asset, prepare for rate spikes, and never assume a stablecoin or blue-chip asset is risk-free. If a position cannot survive a major drawdown, it is too aggressive.
Research before you deposit, borrow, or approve
Before using a DeFi lending market, review token risk, wallet approvals, health factor exposure, collateral volatility, oracle quality, tax records, and whether your position can survive market stress.
FAQs
What is DeFi lending?
DeFi lending lets users supply assets into smart contract money markets so borrowers can borrow from pooled liquidity and pay interest.
What is DeFi borrowing?
DeFi borrowing allows users to borrow assets against posted collateral, usually with overcollateralization and automated liquidation rules.
What is utilization?
Utilization measures how much of a lending pool’s supplied liquidity has been borrowed. Higher utilization usually raises borrow rates and supply rates.
What are aTokens?
aTokens are Aave receipt tokens that represent supplied assets and accrue interest according to Aave’s market mechanics.
What are cTokens?
cTokens are Compound receipt tokens. Their exchange rate to the underlying asset increases as interest accrues.
What is loan-to-value?
Loan-to-value is the maximum borrowing power assigned to collateral under normal risk parameters.
What is health factor?
Health factor is a solvency metric that compares weighted collateral value against debt value. If it falls to 1 or below, liquidation can occur.
What is liquidation?
Liquidation happens when a borrower’s position becomes unsafe. A liquidator repays part of the debt and receives collateral at a discount.
Can DeFi lending APY change?
Yes. Supply and borrow APYs are usually variable and respond to utilization, market demand, risk parameters, and liquidity conditions.
Is borrowing stablecoins against ETH safe?
It can be useful but risky. If ETH falls sharply or debt grows, health factor can drop quickly and trigger liquidation.
References
Official documentation and reputable sources for deeper reading:
- Aave Docs
- Compound Docs
- Ethereum.org: Oracles
- Chainlink Data Feeds Documentation
- DeFiLlama: DeFi Markets, TVL, and Protocol Data
- TokenToolHub: Token Safety Checker
- TokenToolHub: Approval Allowance Checker
- TokenToolHub: Blockchain Technology Guides
This guide is for educational DeFi research only and is not financial, investment, legal, tax, or security advice. DeFi lending and borrowing can result in loss of funds due to liquidations, smart contract exploits, oracle errors, stablecoin depegs, rate spikes, governance actions, bridge failures, token volatility, or protocol failure. Always verify current protocol documentation and evaluate your own risk before supplying collateral or borrowing assets.