DeFi turns financial functions into programmable, composable protocols.
Instead of relying only on traditional institutions, DeFi protocols encode financial rules into smart contracts.
A decentralized exchange does not have to replicate the exact structure of a centralized order-book exchange.
The most important alternative is the AMM (Automated Market Maker).
In an AMM, users trade against a liquidity pool rather than always matching with a human counterparty on an order book.
A simplified AMM often follows:
Here, the price emerges from the relationship between the two reserves in the pool.
This means:
A useful way to think about AMMs is that they replace the logic of “matching with someone else’s resting order” with “moving along a reserve curve.”
Liquidity providers (LPs) supply assets to pools and earn fees generated by traders.
LPs are effectively providing inventory to the market.
They are not donating assets. They are taking market-making risk in exchange for fee revenue.
Slippage is the difference between the expected price and the realized average execution price caused by the trade’s own impact on the pool or market depth.
This is a core concept because many users confuse slippage with fees. It is distinct. Fees are explicitly charged. Slippage arises from execution against a finite liquidity curve.
Many systems that appear to allow users to provide one-sided liquidity are actually doing two steps under the hood:
LPs are not simply earning fees risk-free.
If the relative price of pool assets changes significantly, LPs can underperform a simple buy-and-hold strategy. This is called impermanent loss.
It is best understood as:
The mechanism is intuitive: as one asset appreciates, arbitrageurs remove it from the pool, leaving LPs with less exposure to the winning asset and more exposure to the lagging one.
DeFi lending protocols are typically collateralized lending systems.
Users:
Because crypto collateral is volatile, protocols generally require users to deposit more value than they borrow.
This creates a buffer against price drops.
The system usually cannot rely on identity-based collection or off-chain legal enforcement, so it relies on collateral logic instead.
If collateral value falls too far relative to debt, the position can be liquidated.
Liquidation is not moral punishment. It is a risk-management mechanism designed to protect lenders and preserve protocol solvency.
A liquidation system is effectively an automated collateral enforcement system.
Protocols need external price information to know whether collateral is still sufficient.
An oracle is the mechanism that brings external data, especially prices, into on-chain systems.
Oracle security is a critical dependency in DeFi.
The central challenge is not “getting data” but “getting data that is hard to manipulate and timely enough to be useful.”
Three broad sources:
Understanding which source dominates is essential.
DeFi is best understood as programmable finance with open access and visible rules, but every yield source and protocol design must be examined through the lenses of incentive structure, collateral logic, oracle dependence, and failure modes.
— Mar 25, 2026
Made with ❤ at Earth.