Borrowing within an atomic operation
A conventional flash loan makes liquidity available to a receiver contract during one transaction, with repayment and any required fee enforced before completion. If the repayment condition is not met, the transaction reverts. Atomic execution is the key mechanism: the lender does not rely on an unsecured promise to repay tomorrow. The borrower still needs correctly implemented contract logic and enough resources to cover execution and fees, so temporary access to principal is not equivalent to cost-free capital.
1 source for this section
An illustrative use and its boundary
A contract might borrow an asset, perform a sequence that changes a collateral position, and repay within the same operation. Whether that sequence is feasible depends on available liquidity, approvals, market conditions, and the called protocols. Aave V3 distinguishes its simple single-reserve flash-loan flow from a broader flow that can, under specified conditions, open a backed debt position instead of immediate repayment. Documentation must identify which mode is being discussed; not every function bearing the flash-loan name has identical settlement options.
1 source for this section
Failure and protocol design
A reverted operation can still consume gas, so atomic repayment does not guarantee a profitable strategy. Flash liquidity can also amplify weaknesses in applications that trust a manipulable spot price or assume users cannot temporarily command substantial capital. The underlying security issue is then the vulnerable application's assumptions, not a general failure of repayment enforcement. For educational analysis, separate the source of temporary liquidity, the state transitions performed, the price data consulted, and the final repayment condition.
This makes a complex incident easier to explain without mistaking every flash loan for an attack.
3 sources for this section
The source notesEvidence & further reading4 sources
- Aave V3 flash loans Aave · Primary source · accessed 2026-09-22
- Ethereum transactions Ethereum.org · Primary source · accessed 2026-09-22
- Selecting quality data feeds Chainlink · Primary source · accessed 2026-09-22
- Uniswap v2 pricing Uniswap · Primary source · accessed 2026-09-22