DeFi Mechanics
Under the hood of decentralized finance: lending protocols, liquidity pools, yield strategies, and how DeFi primitives actually work.
What Is a Liquidation (DeFi Lending)?
A liquidation happens when your collateral value drops below the minimum required to support your loan, and the protocol automatically sells your collateral to repay the debt. On Aave, this triggers when your health factor falls below 1.0. On MakerDAO, when your collateralization ratio drops below the minimum (e.g., 150% for ETH). You lose your collateral plus a liquidation penalty (5-13%), and the protocol stays solvent.
What Is Concentrated Liquidity (Uniswap V3)?
Concentrated liquidity lets you provide liquidity within a specific price range instead of across all prices (0 to infinity). Your capital earns fees only when the market trades within your chosen range, but it earns proportionally more fees because it is not diluted across prices where trading never happens. It is like choosing which section of the highway to maintain rather than paving the entire continent.
What Is a Governance Attack?
A governance attack uses flash-borrowed or temporarily accumulated governance tokens to pass a malicious proposal that drains the protocol treasury or changes parameters in the attacker favor. The most famous example: the Beanstalk attack (April 2022) where an attacker flash-borrowed enough BEAN/governance power to pass a proposal stealing $182M from the treasury, all in one transaction.
What Is a Flash Loan Attack (Step by Step)?
A flash loan attack uses zero-capital borrowing to manipulate a protocol in a single transaction: borrow millions, manipulate a price oracle or exploit a logic flaw, extract profit from the manipulated state, repay the loan, and keep the difference. The entire sequence executes atomically. If any step fails, everything reverts and the attacker loses only the gas fee for the failed attempt.
What Is a Dutch Auction (For NFTs and Tokens)?
A Dutch auction starts at a high price and decreases over time until someone buys. For NFT mints, the price might start at 5 ETH and drop by 0.5 ETH every 10 minutes until it reaches a floor (say 0.5 ETH) or sells out. Buyers wait for a price they consider fair and then purchase. It eliminates gas wars (no need to spam transactions at a fixed low price) and lets the market find the true clearing price organically.
What Is Protocol-Owned Liquidity (POL)?
Protocol-owned liquidity means the protocol itself owns the trading pool liquidity rather than renting it from yield farmers through token emissions. Instead of paying mercenary LPs (who leave the moment rewards stop), the protocol buys its own LP tokens permanently. This makes liquidity a balance sheet asset rather than an ongoing expense, dramatically improving long-term sustainability.
What Is a Bonding Curve?
A bonding curve is a mathematical formula that automatically sets a token price based on its current supply. As more tokens are minted (bought), the price increases along the curve. As tokens are burned (sold back), the price decreases. There is no order book and no counterparty. You buy from and sell to the curve itself, with pricing determined purely by math. Early buyers get cheaper prices; later buyers pay more.