DeFi is a connected system of blockchain protocols for trading, lending, borrowing, managing yield and coordinating decisions without relying on traditional intermediaries. Its building blocks include decentralized exchanges, lending markets, yield aggregators, oracles, derivatives, DAOs and composable smart contracts.
Each design has distinct trade-offs. Automated market makers price trades against liquidity pools, while lending protocols rely on collateral and liquidations to protect pooled funds. Yield aggregators automate strategy routing but add contract and strategy risks. Oracles supply external data that can affect prices and liquidations, and derivatives bring leverage and margin mechanics. Composability makes it possible to combine these tools, but a failure in one component can affect others.
A swap illustrates the mechanics: a user trading ETH for USDC through an AMM trades against a pool funded by liquidity providers. The contract adjusts the pool’s reserves and calculates the output, with larger trades relative to available liquidity potentially facing more slippage. DeFi’s key trade-off is that automation and open integration replace some traditional intermediaries with code, data feeds, liquidity and governance systems, each of which carries its own risks.
Frequently asked questions
-
How does an AMM handle a DeFi trade?
An automated market maker executes a trade against a liquidity pool. Its smart contract adjusts the pool’s reserves and calculates the output; a trade large relative to available liquidity may face more slippage.
-
Why do DeFi lending protocols require collateral?
Borrowers pledge collateral to secure loans. If a position becomes unsafe, the protocol can liquidate it to protect the lending pool.
-
What risks do yield aggregators add?
They automate strategy routing, but add exposure to smart contracts and strategy decisions, as well as fees, governance and automation systems.
-
Why are oracles important to DeFi?
Oracles supply external data, including prices, to smart contracts. Inaccurate, delayed or manipulated data can affect trading, collateral valuations and liquidations.
-
How can composability spread risk between protocols?
Protocols often rely on shared contracts, oracles, collateral or governance systems. A failure in one component can affect other connected applications.
TheBlock