Back to Store

Flash Loan Visualizer

Borrow millions with zero collateral - repay in the same transaction or it never happened

Configure Flash Loan

Price Diff
2.50%
Loan Fee
9.00
Arb Profit
--
Net P/L
--

Profit / Loss Breakdown

Borrow10,000 tokens
Buy ETH on DEX A5.0000 ETH
Sell ETH on DEX B10,250 tokens
Gross Arb Profit250.00
Flash Loan Fee-9.00
Net Profit241.00
Configure parameters and execute

Transaction Flow

Lending Pool
100,000
Your Contract
0
DEX A (Cheap)
2,000/ETH
DEX B (Expensive)
2,050/ETH

Execution Steps

1
Borrow tokens from lending pool
No collateral needed - must repay in same TX
2
Buy ETH on DEX A (cheaper price)
Convert borrowed tokens to ETH
3
Sell ETH on DEX B (higher price)
Convert ETH back to tokens at profit
4
Repay loan + fee to lending pool
Keep the difference as profit
5
Transaction result
Success = profit kept. Failure = TX reverts entirely.

Why This Works

Flash loans exploit atomic transactions on blockchain. The entire operation (borrow + trade + repay) happens in a single transaction. If at any point the math doesn't work out (you can't repay), the entire transaction reverts as if it never happened.

No risk to the lender: Either they get repaid with fee, or the loan never existed. The borrower risks only the gas fee for a failed transaction.

The opportunity: Price differences between DEXs (arbitrage) can be exploited without any capital. Anyone with a smart contract can do it.