Flash Loan
A loan that must be borrowed and paid back in the same transaction - usually within seconds. No collateral needed if you pay it all back.
Example
Borrowing $10 million to take advantage of a price difference between two exchanges, profiting, and repaying - all in one transaction.
Advanced Concepts
⚙️How It Works
- 1
Borrow
Request any amount of tokens from a flash loan provider (like Aave)
- 2
Execute
Use the borrowed funds for arbitrage, liquidations, or collateral swaps
- 3
Profit
Complete your strategy and collect any profits
- 4
Repay
Return the full borrowed amount plus a small fee (typically 0.09%)
- 5
Atomic
If repayment fails, the ENTIRE transaction reverts as if nothing happened
⚠️Risks & Warnings
- •Flash loans have been used in many DeFi exploits and hacks
- •They can amplify governance attacks by providing temporary voting power
- •Complex flash loan strategies can fail, wasting gas fees
- •Oracle manipulation attacks often use flash loans for initial capital