Overview
Direct Answer
A flash loan is an uncollateralised loan in decentralised finance (DeFi) that must be borrowed and repaid within a single atomic blockchain transaction, with no intermediary risk management or upfront collateral requirement. The loan is automatically reversed if repayment plus fees is not executed before the transaction completes.
How It Works
Flash loans operate through smart contract logic that executes three sequential steps within one transaction: funds are transferred to the borrower, the borrower executes arbitrary logic (such as arbitrage or collateral swaps), and the original amount plus a protocol fee is returned to the lender. If any step fails or the repayment condition is not met, the entire transaction reverts atomically, protecting the lender without requiring collateral upfront.
Why It Matters
Flash loans reduce friction in capital-constrained DeFi operations by eliminating collateral requirements and enabling participants to execute complex transactions with temporary liquidity. They are economically significant for arbitrage optimisation, liquidation strategies, and protocol testing, driving efficiency in decentralised markets where traditional credit mechanisms are impractical.
Common Applications
Flash loans are utilised in decentralised exchange arbitrage, collateral swaps across lending protocols, and liquidation of undercollateralised positions. They have also been employed for protocol auditing and exploit testing by security researchers.
Key Considerations
Flash loan attacks have exploited price oracle vulnerabilities and insufficient validation logic in receiving smart contracts, highlighting the necessity for robust transaction validation and decentralised price feeds. The mechanism's utility depends entirely on transaction atomicity and the receiver contract's ability to enforce repayment conditions.
Cross-References(1)
More in Blockchain & DLT
Blockchain
FoundationsA distributed, immutable digital ledger that records transactions across a network of computers without a central authority.
Hot Wallet
FoundationsA cryptocurrency wallet connected to the internet for convenient but less secure asset management.
Immutability
FoundationsThe property of blockchain data that prevents alteration or deletion once recorded on the ledger.
Token Standard
Tokens & AssetsA technical specification defining the interface and behaviour of tokens on a blockchain, such as ERC-20 for fungible tokens and ERC-721 for non-fungible tokens.
Blockchain Forensics
FoundationsThe analysis of blockchain transaction data to trace asset flows, identify illicit activity, and support regulatory compliance using graph analysis and clustering techniques.
Utility Token
FoundationsA blockchain-based token that provides access to a specific product, service, or platform functionality, rather than representing ownership or investment rights.
Maximal Extractable Value
FoundationsThe maximum profit that can be extracted from block production by reordering, inserting, or censoring transactions, a fundamental economic phenomenon in blockchain networks.
Rollup
Protocols & NetworksA Layer 2 scaling solution that executes transactions off-chain and posts compressed transaction data to the main chain.