Lending and borrowing in DeFi: a pawn machine that only lends to people who don't need money
DeFi lending protocols pool deposits and lend them to borrowers who lock up more collateral than they borrow. The interest rate is set by a formula from how much of the pool is lent out, not by a loan officer.
Every boomtown had a pawnbroker. You brought in your watch, he looked you over, and he lent you less than the watch was worth. If you didn't come back, he sold it.
Now imagine the pawnbroker replaced by a machine. It doesn't look at you at all. It weighs what you put in, lends you less than that, and charges whatever its formula says that morning. The money it lends comes from other prospectors who left their coins in its drawer to earn interest.
That's DeFi lending. Depositors fill a pool, borrowers lock up more than they take out, and a formula sets the rate. Nobody asks what the loan is for, because nobody needs to.
What it is
A DeFi lending protocol is a set of smart contracts that takes deposits of tokens and lends them out. Aave describes itself as "a decentralized system of smart contracts for supplying and borrowing digital assets", where users "borrow against supplied collateral" (Aave).
The key word is collateral. Aave says DeFi relies on "over-collateralization": borrowers must "supply assets of greater value than the amount they wish to borrow". There is no credit check, no salary slip and no court to chase you. The machine's only protection is holding more than it lent.
How it works
Each token has its own pool. Depositors earn interest; borrowers pay it. The rate moves with one number: how much of the pool is lent out. Compound's documentation defines it plainly: "Utilization = TotalBorrows / TotalSupply" (Compound).
Both Aave and Compound use a curve with a bend in it. Aave calls its model one "based on two slopes": a gentle slope below the reserve's "optimal usage ratio" and a steep one above it (Aave). Compound calls the bend a kink, and its rates accrue every second (Compound). Aave and Compound are examples, not recommendations.
Here is a worked example with round numbers. The settings are made up for the example; each real market has its own, set by the protocol's governance.
The settings. Base rate 0%. Slope one 4%. Optimal usage 90%. Slope two 60%. The protocol keeps 10% of the interest, which Aave calls the reserve factor, "The reserve portion of the interest that goes to the treasury".
The pool. Depositors have supplied 1,000,000 dollar stablecoins. Borrowers have taken 800,000. Utilisation is 800,000 divided by 1,000,000: 80%.
The borrow rate. Below the bend, the rate is the base plus slope one times utilisation divided by optimal usage: 4% times 80 divided by 90, about 3.56% a year.
The deposit rate. Borrowers pay 3.56% on 800,000, about 28,444 dollars a year. The protocol keeps 10%, leaving 25,600 for depositors. Spread over the 1,000,000 deposited, that's 2.56%. Depositors earn less than borrowers pay because not all of the pool is lent and the protocol takes its cut.
Past the bend. Now borrowers take 950,000. Utilisation is 95%, 5 points past the bend, which is half of the 10 points left to 100%. The rate becomes 4% plus 60% times one half: 34% a year. The steep slope is the machine shouting: pay me back or bring more deposits.
Why it matters
The curve keeps the drawer from running empty. If almost everything is lent out, depositors can't withdraw, because their coins are with borrowers. A sharp rate jump pushes borrowers to repay and tempts new depositors in. It works most of the time. In a rush, depositors can still find the drawer briefly empty.
Overcollateralisation also changes who borrows. Only someone who already has money can borrow. A prospector with 10,000 dollars of ether who borrows 5,000 dollars of stablecoins keeps his ether and gets cash on top. If he spends that cash on more ether, he now owns more than he could pay for: that's leverage, the saloon's favourite drink.
And the collateral has to be watched. If its price falls, the machine sells it, through liquidators who are paid a bonus for the job (Aave). The next article shows the arithmetic.
Where people get it wrong
- "The deposit rate is fixed." It moves with utilisation, block by block. A rate shown in the morning is a reading, not a promise.
- "Depositors can always withdraw." Only what isn't lent out. At very high utilisation, withdrawals wait until borrowers repay or new money comes in.
- "Borrowing in DeFi is cheap credit." You must lock up more than you borrow. It's a way to get cash out of an asset without selling it, at the risk of losing the asset.
- "The interest is paid by the protocol." It's paid by borrowers. If nobody borrows, depositors earn almost nothing, unless reward tokens are added on top.
Check the utilisation before the rate
Before you deposit into a lending pool, look at its utilisation on the protocol's page or a dashboard, not just its rate. High utilisation means a high rate and a queue at the drawer if many depositors want out at once. Then check what collateral the pool accepts: you're lending to everyone who posted it.
A bank checks the borrower. The machine checks the watch. Make sure you trust the watches.
Frequently asked questions
How does lending and borrowing work in DeFi?
Depositors supply tokens to a pool run by smart contracts and earn interest. Borrowers lock up collateral worth more than their loan and pay interest to the pool. If the collateral loses too much value, it is sold to repay the loan.
Why do DeFi loans need more collateral than the loan?
Because the smart contract can't check who you are or take you to court. Its only protection is holding assets worth more than it lent. Aave calls this over-collateralisation.
How are DeFi interest rates set?
By a formula based on utilisation, the share of the pool that is lent out. Aave and Compound both use a curve that rises gently up to a set point and steeply above it. Rates change whenever deposits or loans change.
Why is the deposit rate lower than the borrow rate?
Depositors share the interest borrowers pay, but only part of the pool is usually lent out, and the protocol keeps a share of the interest. In a pool that is 80% lent out with a 10% protocol share, a 3.56% borrow rate pays depositors about 2.56%.
Can I lose money lending in DeFi?
Yes. The contract can be hacked, the collateral can crash faster than it can be sold, or withdrawals can be stuck when utilisation is very high. There is usually no deposit guarantee.

