All articles
Web3 FoundationsJuly 14, 202611 min read

How DeFi Lending Works: Collateral, Utilization, and Rates Set by Code

How Aave-style lending markets size loans with collateral instead of credit scores, why the interest rate is a thermostat rather than a price list, and who actually pays whom in DeFi lending.

By Carlos (Bloqarl)

TL;DR

  • A DeFi lending market is a pawnshop that never closes and never learns your name. It lends against the assets you leave on the counter, never against your story, your income, or your credit score.
  • Because it cannot chase a stranger who defaults, it always holds more than it lends. That habit is called overcollateralization, and it is both the superpower and the boundary.
  • Lenders never meet borrowers. Deposits fill one shared pool, borrowers draw from it, and one number, utilization, tells you how much of the pool is out the door.
  • No committee sets the interest rate. A pre-chosen curve with a sharp bend, the kink, moves the rate automatically: a thermostat, not a price list.
  • Who is paying? Borrowers pay the rate; lenders receive it, minus the protocol's cut. Nobody subsidizes the middle.

How does DeFi lending work?

A DeFi lending market is a pool of deposited assets that anyone can borrow from by locking up collateral worth more than the loan, with the interest rate set automatically by how much of the pool is currently lent out. No application, no credit score, no human decides anything. Aave and Compound are the two names most people know, and they are the same drawing with different handwriting.

If DeFi as a whole is still fuzzy, start with the primer on what DeFi is and come back. This article opens one specific machine.

Here is the situation the machine exists for. You hold ETH you believe in, and a bill that is due anyway. Selling feels like quitting, and a bank wants payslips and three weeks. Somewhere on-chain there is a counter that will lend to you in thirty seconds, at 3am, without ever learning your name.

The right mental model is a pawnshop with no shutters. A pawnshop does not care who you are or what you earn. It cares what you leave on the counter. Everything else in this article, the collateral rules, the shared pool, the strange self-moving interest rate, follows from taking that one idea seriously and removing every human from the building.

Why does the shop demand more collateral than it lends?

A bank sizes your loan from your story: income, payment history, a human saying yes. This shop has no humans, and your story never enters the building. So what sets your limit?

The only thing the code can see and hold: the collateral you deposit. Leave more on the counter, borrow more. Your name, your job, and your history all stay outside. Not because the protocol is being polite about privacy, but because none of that information would protect it. A lending market cannot chase you. There is no address to visit, no court to file in, no phone number to call. If a borrower vanishes, the protocol's entire recourse is what it is physically holding.

So it protects itself the only way left: it lends you less than your collateral is worth. If you walk away from the loan, the shop keeps your ETH and loses nothing. The counter pays your debt.

That habit of always holding more than it lends is called overcollateralization, and it is the load-bearing wall of the whole building. It is what lets total strangers lend to total strangers with no trust, no identity, and no lawyers. Hold on to it, because at the end of this article it will also tell you exactly what this machine cannot do.

What is loan-to-value, and why is it different per asset?

The fraction of your collateral's value you are allowed to borrow has a name: the loan-to-value ratio, or LTV. Function first: it is the safety margin between what the shop holds and what the shop lent, expressed as a rule.

The margin is not one-size-fits-all. It is set per asset, and the deciding question is how wildly the asset's price swings. Collateral that moves violently needs a wider safety margin, so the shop lends a smaller fraction against it. Collateral that barely moves can support a thinner margin. Governance chooses these fractions in advance, per asset; the code enforces them per second.

Why would anyone borrow against money they already have? Because selling ends the position. Borrowing unlocks cash while your ETH keeps riding, and in many places a loan is not a taxable event the way a sale is. Traders also borrow to go long or to run strategies that stack this machine with others, the composability trick covered in money legos.

So the person at the counter is usually not broke. They are keeping one hand on an asset while the other hand spends. Every loan here is somebody choosing not to sell.

Where does the borrowed money actually come from?

Here is the part that surprises people: nobody lends to you. No lender ever meets a borrower, reviews a borrower, or even knows a borrower exists.

Depositors pour their assets into one shared pool and earn from it. Borrowers draw from that same pool and pay interest into it. The shop's shelves are the pool, stocked by strangers. When you deposit into Aave or Compound, you are not funding a specific loan; you are restocking a shelf that any qualified borrower can draw from. This pooling is also why deposits here become a base layer other DeFi products build on, from liquid staking strategies upward.

Which makes one number the shop's pulse: how much of the pool is currently lent out. If nearly all of every hundred coins deposited are out the door, the shelves are nearly empty. If almost none are, the shelves are full and idle. Function first, as always; the name for this number is utilization.

Everything the protocol wants, from its lenders, from its borrowers, from the pool itself, gets expressed through that single number. Which raises the obvious question: expressed how?

How is the interest rate set with no committee?

This is the machine's heart. No committee sets the rate, no analyst updates it, no vote adjusts it week to week. A curve does, drawn in advance and consulted block by block.

Picture utilization running left to right and the borrow rate climbing with it. The shape has three zones:

  • The calm zone. Shelves well stocked, utilization low. The rate stays low to invite borrowers in, because a pool nobody borrows from pays its lenders nothing.
  • The kink. The designed danger line. Past this level of utilization, the pool is too empty for comfort, and the curve's slope snaps sharply upward. Its position is chosen per asset, in advance.
  • The vertical zone. The panic premium. Near-empty shelves send the rate rocketing, begging new lenders in and squeezing borrowers to repay, so the pool never quite runs dry. Lenders must always be able to exit, and this zone is what defends that promise.

Read the curve twice and the rate stops looking like a price at all. It is a thermostat. Pool too full: the rate falls and borrowing warms up. Pool too empty: the rate spikes and money rushes home. The set point is the kink, and nobody ever touches the dial. Governance chose the shape of the response once, in advance; from then on the machine steers itself.

Who pays whom in DeFi lending?

Ask the question that cuts through every DeFi pitch: who is paying?

Here the answer is unusually clean. Borrowers pay the interest rate. Lenders receive it, minus the protocol's cut for running the shop. That is the entire flow. Nobody subsidizes the middle.

Every unit of yield a depositor earns walked in the door as interest from someone borrowing on the other side. There is no sponsor, no token printer required to keep the lights on, no mystery source. This is worth appreciating, because much of DeFi cannot answer the question this crisply. When a lending market pays depositors, you can point at exactly who paid and why: a borrower, somewhere, valued cash today more than the interest it costs, usually because they refused to sell something.

It also means deposit yield is a signal, not a constant. When few people want to borrow an asset, its depositors earn little, and that is honest. The thermostat reports demand; it does not manufacture it.

What happens when everyone wants their money out at once?

Now live the tension the design creates. You deposited a stablecoin weeks ago; today you want it back, and utilization is sitting near the top of the curve. Say ninety nine of every hundred coins are out the door, walking around inside other people's loans. The shelves hold almost nothing, and your withdrawal wants more than remains.

First, what did not happen: the protocol was not hacked, and it is not insolvent. Every coin is accounted for, out on loan and attached to overcollateralized positions, exactly as the ledger promised when you deposited. Insolvent means the assets are gone. Here they are walking around, pulled by a leash.

What actually happens is that you may have to wait, while the thermostat runs at full blast. The vertical zone offers new lenders a screaming rate to refill the shelves and makes existing borrowers bleed until they repay. No treasury steps in, because the pool is the whole vault. No borrower gets their healthy loan forcibly closed to let you exit, because healthy loans belong to their borrowers for as long as the collateral holds up. The machine pressures with the rate, never with seizure.

And notice what nobody did. A borrow rate can triple overnight with no meeting, no email, no villain. The curve decided. Living calmly with machine-set rates is the real skill this desk demands.

Seizure does exist in this world, but it has a different trigger: collateral losing value while the loan is out. That is its own machine, with its own bots and bounties, covered in DeFi liquidations explained.

Does DeFi lending replace banks?

No credit checks, no paperwork, open all night. It is tempting to conclude this machine replaces banks. Here is the honest limit instead.

Two people walk up to the counter. One holds ETH and needs cash without selling. One holds nothing and needs a start. The shop serves exactly one of them.

A bank's loan desk mostly lends against your future: a salary, a business plan, a reputation. This shop cannot see a future. It lends only against what it can hold today, because holding things is its only protection. Overcollateralization is the superpower and the boundary in one move: it lets strangers lend to strangers with zero trust, and it locks out anyone with nothing to pledge. This machine replaces margin desks, not microcredit. Say that sentence to yourself whenever a pitch claims DeFi is banking the unbanked through lending markets; the mechanism itself, not the law around it, draws that line.

If you want to work this machine hands-on instead of reading about it, this article is checkpoint ten of Your First 90 Days in DeFi, a free interactive course where you run the pawnshop yourself, ledger by ledger. The first three checkpoints need no account.

Related questions

How does DeFi lending work without credit checks? The protocol never needs to trust you because it holds collateral worth more than your loan. If you disappear, it keeps the collateral and loses nothing. Your identity, income, and history are simply irrelevant to its safety.

Why do you have to deposit more than you borrow in DeFi? Because the protocol has no way to chase a defaulter: no courts, no identity, no recourse. Overcollateralization replaces all of that. The collateral is the promise, so it must always cover the debt with a margin for price swings.

What is utilization in a lending protocol? The share of a pool's deposits currently lent out. It is the number the interest rate curve reads: low utilization keeps rates low to attract borrowers, and very high utilization sends rates sharply up to pull money back into the pool.

Who sets the interest rate on Aave or Compound? No one, in real time. Governance picks a rate curve per asset in advance, including where its sharp bend (the kink) sits. From then on the rate moves automatically, block by block, as utilization moves.

Where does the yield for depositors come from? From borrowers. Interest paid by borrowers flows to depositors, minus a protocol fee. There is no other source, which is what makes lending yield one of the most honest yields in DeFi.

Can you lose access to your deposit in a lending pool? Temporarily, yes. If utilization is extremely high, your money is out on loan and you may have to wait while the spiking rate attracts fresh deposits and pushes borrowers to repay. Uncomfortable, but it is the mechanism working, not failing.

Where to go next

You can now sketch the machine yourself: a counter that holds collateral instead of asking questions, a limit set as a fraction of what you pledge, one shared pool stocked by strangers, and a rate that reads the shelves and moves on its own. Aave and Compound are this drawing, running in public, all night.

One question is still open, and it is the sharpest one. Your loan is backed by what sits on the counter, and what sits on the counter is volatile. What happens when its value falls while the loan is out? That is the machine that keeps the pawnshop solvent: DeFi liquidations, health factors, bounty bots, and all. Read that next, or take the interactive route below and open the machines in order.

Tagged

DeFiLendingAave