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
Proof of Work
FoundationsA consensus mechanism requiring computational effort to validate transactions and create new blocks, used by Bitcoin.
Automated Market Maker
FoundationsA decentralised exchange protocol that uses algorithmic pricing instead of traditional order books.
Decentralised Finance
FoundationsFinancial services built on blockchain technology that operate without traditional intermediaries like banks or brokerages.
Interoperability
Protocols & NetworksThe ability of different blockchain networks to communicate, share data, and transfer value between each other.
Soft Fork
FoundationsA backward-compatible upgrade to a blockchain protocol where old nodes still recognise new blocks as valid.
Layer 1
FoundationsThe base blockchain protocol layer that handles consensus, data availability, and transaction settlement.
Cross-Chain Bridge
Protocols & NetworksInfrastructure enabling the transfer of assets and data between different blockchain networks.
Byzantine Fault Tolerance
FoundationsThe ability of a distributed system to reach consensus despite some nodes acting maliciously or failing.