DeFi

Flash Loan

An uncollateralized loan that must be borrowed and repaid within a single blockchain transaction. Used for arbitrage, collateral swaps, and liquidation protection — if not repaid, the entire transaction reverts.

A flash loan lets you borrow millions of dollars with zero collateral — as long as you pay it back before the transaction closes. Not the next day. Not in an hour. Within the same block, which takes roughly 12 seconds on Ethereum.

That sounds like a loophole, but it's actually elegant engineering. The blockchain enforces repayment automatically: if the loan isn't returned plus fees by the end of the transaction, the entire sequence of events reverts as if it never happened. The lender never actually loses funds.

How It Works

Here's a concrete example. Say ETH trades at $3,000 on Uniswap and $3,045 on another DEX. You borrow $3,000,000 in USDC via a flash loan, buy 1,000 ETH on the cheaper exchange, sell it on the more expensive one, pocket the $45,000 spread, repay the loan plus a small fee, and keep the profit. Total time: one transaction.

Flash loans also power collateral swaps and liquidation protection. If your loan is approaching its liquidation threshold — say your LTV climbs toward 80% — a flash loan can swap your collateral from one asset to another in a single atomic step, without you ever needing to close the position manually.

Aave popularized the model and charges 0.05% per flash loan. The fee is small because the risk to the protocol is near zero — the smart contract guarantees repayment or reversion. There's no credit check because there's no credit risk.

Why It Matters

Flash loans keep DeFi markets efficient. Arbitrageurs using them close price gaps across exchanges faster than any human trader could. That benefits every user on those platforms by tightening spreads.

What is DeFi?

Decentralized Finance — financial services built on blockchain smart contracts that operate without intermediaries. DeFi lending allows users to lend and borrow directly through protocols rather than banks.

Full glossary entry

They also democratize capital. In traditional markets, executing a $3M arbitrage trade requires either $3M or a prime brokerage relationship most retail traders will never get. A flash loan hands that same leverage to anyone who can write the code.

Bill's Take

In 25 years of lending, the closest thing I've seen to a flash loan is an intraday repo — a short-term collateralized borrowing used by institutions to fund a trade and unwind it before settlement. But repo still requires collateral and a counterparty relationship. Flash loans require neither, because the blockchain enforces repayment in a way no human counterparty ever could. That's a genuine structural innovation, not just a gimmick.

What to Watch

Flash loans have been the tool of choice in some of DeFi's largest exploits. Attackers borrow enormous sums, manipulate an on-chain price oracle within the same transaction, drain a protocol, and repay the loan — all before the block closes. The loan itself isn't the vulnerability, but the capital it provides can amplify one.

What is Liquidation Threshold?

The LTV ratio at which a lending protocol will begin liquidating a borrower's collateral. For example, if the liquidation threshold is 80%, your collateral will be sold if your debt reaches 80% of its value.

Full glossary entry

As a borrower or depositor on a lending platform, you don't execute flash loans — but you're exposed to them. If the protocol you're using relies on a single price oracle that can be manipulated with a large enough position, a flash loan attack can drain the pool your funds sit in. Audit reports and oracle design matter more than the APY.

The Real Risk Isn't the Loan

Flash loans don't threaten well-designed protocols — they expose poorly designed ones. Before depositing into any lending pool, check whether the protocol uses time-weighted average prices (TWAPs) or decentralized oracle networks like Chainlink. A protocol that relies on a single spot price for liquidations is an open invitation for manipulation.

Master Crypto Lending

Get weekly deep-dives on concepts like flash loan, platform analysis, and market trends. Free, no spam.