Flash Loan

An uncollateralized loan that must be borrowed and repaid within a single blockchain transaction, or the entire transaction is reversed.

Detailed Explanation

Flash loans exploit the atomic nature of blockchain transactions. A user can borrow millions of dollars with zero collateral, execute a series of operations (arbitrage, liquidations, collateral swaps), and repay the loan with profit, all within one transaction block. If the loan cannot be repaid, the entire transaction reverts as if nothing happened, meaning the lender faces zero risk. Aave and Balancer are among the protocols that offer flash loans.

Why It Matters

Flash loans let anyone use large amounts of capital for a single transaction, for example for arbitrage or to swap collateral. They have also been used in many DeFi exploits, where attackers manipulate prices across protocols within one transaction to extract value. Protocols must be designed to resist that kind of price manipulation.

Key Considerations

Flash loans require smart contract programming skills. A failed flash loan transaction still costs gas even though the loan is reversed. Sophisticated MEV bots dominate the competition, which makes flash loan arbitrage difficult for individuals.

Example

A trader spots ETH priced about 0.6% higher on one DEX than another. They borrow a large sum with a flash loan, buy ETH on the cheaper DEX, sell it on the other, repay the loan plus the lender's fee, and keep what is left after gas and slippage. If the trade does not cover the loan, the whole transaction reverts.

Related Terms

Frequently Asked Questions

What is Flash Loan?

An uncollateralized loan that must be borrowed and repaid within a single blockchain transaction, or the entire transaction is reversed.

Why is Flash Loan important in crypto?

Flash loans let anyone use large amounts of capital for one transaction.

Can anyone take out a flash loan?

Technically yes, as flash loans require no collateral or credit check. However, using them effectively requires smart contract development skills to create the borrowing, executing, and repaying logic within a single transaction. Several no-code tools and tutorials exist for beginners.