One protocol, two ways to flashbank
Keep custody of your funds. Pick the tool that fits the job.
Flash Loans
Atomic, same-transaction liquidity for arbitrage, liquidations and MEV. Lenders commit WETH straight from their wallet — no deposits — and earn a fee on every loan.
- · Repaid in the same transaction, or the whole thing reverts
- · Funds never leave the lender's wallet until a loan executes
- · 0.02% configurable fee, split with the protocol
P2P Term Loans
Fixed-term, collateral-backed loans agreed directly between two people. A single flat fee instead of interest, settled purely on time — no pools, no price oracle, no liquidations to watch.
- · Repay principal + a flat fee before the deadline
- · Miss it and the lender claims the collateral
- · Held by a neutral on-chain escrow
Flash Loans
Provide WETH liquidity from your wallet, or run the live Sepolia demo end-to-end.
WETH liquidity overview
Total committed
0 WETH
Active providers
0
Fee
0 bps
Wallet balances
ETH: 0
WETH: 0
Allowance: 0 WETH
Provide liquidity
Router not approved yet. The button below will approve and then set your commitment.
How flash loans work here
For lenders (you earn fees)
- 1.Wrap some ETH to WETH (or use existing WETH).
- 2.Approve the FlashBankRouter to access your WETH.
- 3.Set a commitment limit (or unlimited) — WETH stays in your wallet.
- 4.Earn a fee every time borrowers use your liquidity.
- 5.Pause or change limits anytime — instant effect.
For borrowers (MEV / arb bots)
- 1.Implement the
IFlashLoanReceiverinterface. - 2.Call
flashLoan(token, amount, toNative, data). - 3.The router pulls WETH from providers, all in one tx.
- 4.Your contract receives WETH or native ETH.
- 5.Run your arbitrage / MEV logic.
- 6.Repay principal + fee, or the entire tx reverts.
Key difference: traditional flash-loan protocols make you deposit funds into their contract. FlashBank lets you keep WETH in your own wallet and just approve the router — full custody until the moment a loan executes.
Demo flash loan
Success demo
Borrows WETH from the pool → unwraps to ETH → passes through the counter (proving you used others' funds) → proves funds on-chain → repays the router. Transaction succeeds.
Fail demo
Borrows WETH → unwraps → passes through the counter → attempts to keep the funds. The router detects the missing repayment and reverts the entire transaction. Funds are safe.
Most wallets reject this before sending because they simulate it and detect the revert. If your wallet blocks it, that's expected. See example test transaction.
Demo requirements
The demo borrows from the pool, not your personal commitment.
Estimated fee: 0 ETH