Flash Loan Economics
Why flash loans exist, the legitimate uses (arbitrage, collateral swaps, refinancing), and how the same primitive that enables capital-efficient DeFi also enables governance attacks and oracle manipulation.
The Magic of Flash Loans
A flash loan lets you borrow any amount of crypto with zero collateral, on the condition that you repay it within the same transaction. If you can't repay, the entire transaction reverts and it's as if the loan never happened. This is possible because Ethereum transactions are atomic — either everything succeeds or everything reverts. Aave, MakerDAO's Multi-Collateral DAI, Uniswap V3 (via flash swaps), and several other protocols offer flash loans. Fees are tiny (~0.05-0.09%); the only real cost is gas.
What People Use Them For — Legitimate Cases
**Arbitrage**: borrow $1M USDC, buy ETH cheap on DEX A, sell expensive on DEX B, repay loan + fee, keep profit. Capital-efficient because you used $0 of your own money. **Collateral swaps**: you have an Aave loan collateralised by ETH and want to switch to wBTC collateral — flash-loan wBTC, swap your ETH collateral for wBTC, repay the flash loan. **Self-liquidation**: instead of waiting for someone else to liquidate your CDP (and pay the penalty), use a flash loan to repay your own debt and close cleanly. **Refinancing**: move debt between lending protocols to capture better rates without needing the capital sitting idle.
What People Use Them For — Exploits
The same atomicity that makes flash loans useful also makes them an exploit amplifier. Most major DeFi exploits in the past few years used flash loans somewhere in the attack: bZx, Cream Finance (multiple times), Mango Markets, Euler Finance, Beanstalk. The pattern: borrow a massive amount, manipulate something (oracle, governance, price), profit from the manipulation, repay the loan, walk away with the profit. Flash loans turn 'attacker needs $100M of capital' into 'attacker needs gas money plus a vulnerable target.'
- Borrow with zero collateral; repay in the same transaction or it reverts
- Legitimate uses: arbitrage, collateral swaps, refinancing, self-liquidation
- Exploit uses: oracle manipulation, governance attacks, vulnerability amplification
- Fees are negligible (~0.05-0.09%) — the cost is gas plus opportunity
Key Takeaways
- Flash loans depend on transaction atomicity — repay or revert
- The legitimate use cases substantially improve DeFi capital efficiency
- Flash loans have amplified many of the largest DeFi exploits
- The primitive itself isn't the bug — the bug is in the target protocol
Related Content
Related Coins
Related Topics
More Topics
Browse all 179 topicsIntent-Based Architectures
Why CoW Swap, UniswapX, Across, and 1inch Fusion moved from 'sign a transaction' to 'sign an intent' — and how solver competition delivers better prices and MEV protection.
MEV-Share Mechanics
How Flashbots' MEV-Share lets users share metadata about their transactions in exchange for a cut of the MEV searchers extract — a structural shift from 'searchers prey on users' to 'searchers and users share value.'
Solver Networks
How solver markets shape DEX prices, the competitive structure across CoW Swap, 1inch Fusion, Hashflow, and other venues, and why solver consolidation is the central debate of 2025-2026 DeFi market structure.
Liquidation Cascades
The mechanical structure of cascading liquidations — Black Thursday, May 19 2021, August 2024 — what amplifies them, who profits, and why over-leverage creates correlated risk across the entire DeFi stack.
zkSync Era Architecture
How zkSync Era's prover (Boojum), native account abstraction, and unique EVM-compatibility-via-zkEVM design differ from competing rollups — and what the architectural choices mean for users and developers.
StarkNet Architecture
How StarkNet's Cairo VM, account-abstraction-native model, and STARK prover differ from EVM rollups — and what Madara, prover decentralisation, and the broader Starkware ecosystem mean for the network's future.
Arbitrum Nitro and Stylus
How Arbitrum Nitro evolved from Arbitrum One's custom architecture to running Geth-on-WASM, what BoLD fraud proofs change, and what Stylus's WASM extension brings (Rust/C/C++ smart contracts).
Optimism Bedrock and the Superchain
How OP Mainnet's Bedrock architecture, fault-proof rollout, and Superchain interop strategy reshape Optimism from a single rollup into the dominant modular L2 framework.
References & further reading
- primary
- secondary