Automated Market Maker (AMM)
An algorithm that automatically sets prices and facilitates trades in a liquidity pool without order books. AMMs like Uniswap and Curve enable the liquidity that DeFi lending depends on.
Traditional exchanges match buyers and sellers — two humans agreeing on a price. An AMM replaces that human negotiation with a mathematical formula. You trade against a pool of funds locked in a smart contract, and the formula adjusts the price automatically based on supply and demand.
If you're using DeFi lending platforms like Aave or Compound, AMMs are the plumbing underneath. They're how collateral gets liquidated, how interest rates get discovered, and how liquidity moves between protocols. You may never interact with an AMM directly — but it's working on your behalf every time you open or close a position.
How It Works
Most AMMs use a constant product formula: x × y = k. Say a pool holds 100 ETH and 200,000 USDC — k equals 20,000,000. If you buy 10 ETH, the pool must still equal k, so the USDC side rises and the price of ETH in that pool goes up. The math, not a market maker, sets the new price.
Liquidity providers — people who deposit funds into these pools — earn a share of trading fees in exchange for taking on the risk of holding both assets. On Uniswap v3, fee tiers range from 0.01% to 1% depending on the pool. Those fees are real yield, but they come with strings attached.
For lending protocols, AMMs matter most during liquidations. When a borrower's collateral drops below the required threshold, the protocol needs to sell that collateral fast. It routes through AMM liquidity pools to do it — no waiting for a buyer, no phone call, no negotiation. The smart contract just executes.
Why It Matters
Without AMMs, DeFi lending couldn't function at scale. There'd be no reliable way to price collateral in real time or liquidate positions instantly. The whole system — borrow rates, loan-to-value ratios, liquidation thresholds — depends on deep, accessible liquidity sitting in these pools.
What is Smart Contract?
Self-executing code on a blockchain that automatically enforces the terms of an agreement. All DeFi lending protocols operate through smart contracts that handle deposits, loans, interest, and liquidations.
Full glossary entryBill's Take
In 25 years of mortgage lending, I never once saw a loan get liquidated in under a minute. In DeFi, that's routine — and it only works because AMMs provide instant liquidity at a known price. Think of it like having a market maker on call 24/7 who never sleeps, never charges a spread, and can't be bribed. The trade-off is that the formula doesn't care about your circumstances. It just does the math.
What to Watch
Liquidity pools can be thin. A pool with $500,000 in it will move price dramatically on a $50,000 trade — that gap between the expected price and the actual execution price is called slippage. During volatile markets, slippage gets worse fast. If a liquidation hits a thin pool, the borrower's collateral sells at a worse price than expected, which can accelerate losses.
Impermanent Loss & Thin Liquidity
Impermanent loss is the other trap. If you deposit into a liquidity pool and the price of one asset moves sharply, you end up holding more of the losing asset and less of the winning one — compared to just holding both outright. The fees you earn may not compensate for that loss. It's not a scam; it's math. But a lot of people don't understand it until they've already felt it.
Master Crypto Lending
Get weekly deep-dives on concepts like automated market maker (amm), platform analysis, and market trends. Free, no spam.