What Is a Flash Loan and How Can It Be Used to Amplify a Sandwich Attack?

A flash loan is a type of uncollateralized loan in DeFi that must be borrowed and repaid within the same blockchain transaction. An attacker can use a flash loan to amplify a sandwich attack by borrowing a massive amount of capital to execute the 'buy' part of the sandwich.

This large, borrowed trade creates a huge price impact, maximizing the profit from the victim's trade. The attacker repays the loan in the same transaction, never needing to put up collateral.

What Are “Sandwich Attacks” and How Do They Relate to DEX Front-Running?
What Is a ‘Sandwich Attack’ and How Does It Utilize the Mempool?
How Does an Attacker Profit from a Successful Oracle Manipulation Using a Flash Loan?
How Does the “Same Transaction” Constraint of a Flash Loan Limit the Attack Vector?
What Are “Sandwich Attacks” in the Context of MEV?
How Is the Stock Borrow Fee Calculated and Charged?
What Is the Concept of ‘Liquidity Vacuum’ during a Flash Crash?
How Do Flash Loan Attacks Exploit Smart Contract Vulnerabilities?

Glossar