What Is a Flash Loan?
A flash loan is an uncollateralized loan that begins and ends inside a single blockchain transaction. Borrow millions with no collateral, do something with it, repay plus fee, all atomically: if the repayment is not there by the end of the transaction, the whole thing reverses as if it never happened. Only smart contracts make this possible, and only DeFi has it.
How It Actually Works
- A contract borrows from a flash-loan provider (Aave popularized it), executes a scripted sequence, and repays within the same atomic transaction.
- No repayment, no transaction: the chain simply never records it. The lender cannot lose principal, which is why no collateral is needed.
- Legitimate uses are real: arbitraging price gaps between DEXs, refinancing collateral positions in one step, liquidation efficiency. Flash loans make markets tighter.
The Exploit Amplifier
Flash loans also hand any attacker a temporary war chest. The classic pattern: borrow huge, shove a thin market or manipulate a weak oracle, harvest a protocol's mispricing, repay, and pocket the difference, all in one block. The loan did not create the vulnerability; it democratized the capital to exploit it. "Flash loan attack" headlines almost always mean an oracle or logic flaw that the loan merely funded.
Risks and Common Mistakes
- For users: you will likely never take a flash loan, but every protocol you deposit into lives in a world where attackers have infinite momentary capital. Protocol design quality is your exposure.
- "Flash loan arbitrage bot" offers to retail are scams with excellent vocabulary. The people who can do this profitably do not sell courses in your DMs.
- Reading flash loans as inherently criminal. They are neutral plumbing; the crimes are in the flaws they reach.
When It Matters
Understanding DeFi risk honestly: protocols must be safe against adversaries with unlimited one-block capital, a bar traditional finance never had to clear. It is part of why my DeFi page insists yield always prices risk somewhere.
Related Terms
Glossary · Learn · Resource Library · Home