Independent discussion of crypto, wallets, cards and markets
Forum Home > DeFi & Yield > Lending & Borrowing > Flash loans: the primitive that enabled arbitrage and self-liquidation
Flash loans: the primitive that enabled arbitrage and self-liquidation8 replies · 318 views
Thread ToolsShow Printable Version · Subscribe to this Thread · Search Thread
Where to open an account: Open a Trustee account.

Flash loans: the primitive that enabled arbitrage and self-liquidation

A flash loan is a loan that exists for the duration of one transaction: the

lender hands over the funds, the borrower does something with them, and the

funds must be returned before the transaction ends - or the whole thing

reverts, as if it never happened. No collateral, no credit check, no counterparty

risk for the lender: the transaction's atomicity is the collateral. The

primitive sounds like a trick, and it reshaped lending, arbitrage, and

liquidation in the process.

How a flash loan works mechanically

  1. A borrower requests funds from a flash loan provider - a pool of liquidity

committed to the primitive

  1. The provider transfers the funds within the transaction
  2. The borrower executes its logic: arbitrage, refinancing, collateral swaps,

liquidation repayment

  1. Before the transaction ends, the borrower must repay the full amount plus

a fee

  1. If repayment fails, the entire transaction reverts - the loan, the trades,

everything. The lender never loses; the borrower loses only gas.

The atomicity is the entire design: either the loan is used profitably and

repaid, or it never happened.

What flash loans enabled

  1. Arbitrage at scale: price differences between venues can be exploited inside

one transaction - buy low on one market, sell high on another, repay the

flash loan - with no capital at risk beyond gas. Flash-loan-funded

arbitrage compressed spreads across venues faster than manual arbitrage

ever could.

  1. Collateral surgery: borrowers can swap collateral assets, move positions

between markets, or refinance debt - all within one transaction, without

first assembling the capital.

  1. Self-liquidation: the most borrower-friendly use. A position approaching

liquidation can be repaid and its collateral recovered inside one flash

loan - selling the collateral on the open market and repaying the debt

before any liquidation penalty applies. The borrower keeps the spread that

liquidators would otherwise capture.

  1. Capital-efficient market making and settlement: protocols use flash loans

for one-transaction settlement flows that would otherwise require parked

capital.

Why lenders participate

Flash loan providers earn the fee - typically a small percentage of the loan -

against zero principal risk, because reversion guarantees repayment or nothing.

The risk is not the loan; it is the protocol hosting the pool: a bug in the

borrower's logic cannot touch the lender's funds, but a bug in the provider's

own contracts can. Providers price the fee accordingly.

The limits that matter

  • One transaction only: flash loans solve in-transaction problems, not

multi-step strategies. Anything spanning blocks needs real capital.

  • Gas costs the failure: unsuccessful attempts still pay gas, and complex

flash-loan logic is gas-heavy.

  • Liquidity bounds the size: the loan can be at most what the pool holds, and

large loans move prices within the transaction itself.

  • Oracle dependence: flash-loan-funded strategies - especially self-

liquidation - depend on prices being available and truthful inside the

transaction.

The takeaway

Flash loans are atomic credit: funds borrowed, used, and returned inside one

transaction, with reversion as the collateral. They enabled frictionless

arbitrage, one-click collateral surgery, and self-liquidation that saves

borrowers the liquidation penalty. The primitive does not remove risk - it

moves it into transaction design, gas costs, and the provider's own contracts.

Understand the atomicity, and the trick becomes a tool.

Thread Statistics8 replies · 318 views