Module IX·Article I·~3 min read

DeFi and Decentralized Exchanges

Current Trends in Financial Markets

Turn this article into a podcast

Pick voices, format, length — AI generates the audio

DeFi: Decentralized Finance
Decentralized Finance (DeFi) represents a radical alternative to traditional financial infrastructure. Instead of banks, exchanges, and clearinghouses—smart contracts on the blockchain execute financial operations automatically and without intermediaries. DeFi is not just technology; it is an attempt to rethink the architecture of the financial system.

Fundamental Principles of DeFi

Permissionless access: Access is open to any user with the internet and a crypto wallet. No KYC, no geographic restrictions, no minimum amounts. This is a radical difference from traditional finance with its barriers to entry.

Trustless execution: Smart contracts are executed automatically, without requiring trust in the counterparty. Code is law. If the conditions of the contract are met, the transaction occurs.

Composability (money legos): DeFi protocols can interact with each other. A token from one protocol can be used as collateral in another, which generates yield used in a third. This creates an ecosystem of innovation.

Transparency: All transactions and the state of protocols are visible on the blockchain. No opaque balances or hidden positions.

Key DeFi Primitives

Decentralized Exchanges (DEX): Exchange of crypto assets without a centralized intermediary.

Automated Market Makers (AMM): A model where liquidity is provided by pools, and the price is determined by a mathematical formula ($x*y = k$). Uniswap, Curve, SushiSwap are the largest DEXs.

Lending/Borrowing: Lending protocols allow you to lend crypto assets for interest or borrow against collateral. Aave, Compound are leaders.

Over-collateralization: Loans are secured by collateral of 150%+ of the value.

Liquidation: When collateral falls below the threshold, automatic sale occurs to cover the debt.

Stablecoins: Cryptocurrencies with stable value (usually $1).

Fiat-backed (USDC, USDT): Reserves held in banks.

Crypto-backed (DAI): Overcollateralized with cryptocurrency.

Algorithmic: Maintaining the peg through mechanisms of supply expansion/contraction (high risk, UST collapse 2022).

Derivatives: Decentralized derivatives—perpetual swaps, options, synthetic assets. dYdX, GMX, Synthetix. Enable exposure to any asset without actually owning it.

AMM vs Order Book

Traditional exchanges use an order book—a list of buy and sell orders. Market makers provide liquidity.

AMMs replace the order book with an algorithm. Liquidity Providers (LP) contribute pairs of tokens to a pool. The price is determined by the ratio of reserves.
The formula $x*y = k$ means that the product of reserves remains constant.

Advantages of AMM: simplicity, liquidity always available (for any trade size), permissionless listing of tokens.

Disadvantages: impermanent loss for LPs (loss from price divergence of tokens in the pair), slippage for large trades, capital inefficiency (liquidity spread across the entire price range).

Uniswap V3 introduced concentrated liquidity—LPs can focus capital in a narrow price range, increasing capital efficiency.

Yield Farming and Liquidity Mining

Yield farming: strategies to maximize returns through combinations of DeFi protocols.

Sources of yield: trading fees (portion of DEX commissions), interest (lending rates), token rewards (liquidity mining incentives).

Liquidity mining: distribution of governance tokens to liquidity providers. A way to bootstrap liquidity for new protocols.

Risks: smart contract risk (bugs, exploits), oracle manipulation, rug pulls (protocol creators walk away with the money), impermanent loss, token price collapse.

DeFi Risks

Smart contract risk: bugs in the code can lead to loss of funds. Even audited protocols have been hacked. $3B+ stolen from DeFi protocols in 2022-2023.

Oracle risk: DeFi protocols depend on oracles for off-chain data (prices, events). Oracle manipulation is an attack vector.

Systemic risk: Composability creates interconnectedness. A problem in one protocol can cascade through the entire ecosystem (UST/Luna collapse).

Regulatory risk: DeFi challenges securities laws, AML/KYC requirements. Regulators are initiating enforcement actions.

Institutional DeFi Adoption

Institutional DeFi—adapting DeFi for regulated participants.

Permissioned pools (Aave Arc): Pools for KYC’d participants.

Compliant stablecoins (USDC) with clear legal structure.

Custody solutions (Fireblocks, Anchorage) for secure key management.

Challenges: AML/KYC integration, fiduciary duty compliance, uncertainty in accounting standards.

§ Act · what next