FlashBank

One protocol, two ways to flashbank

Keep custody of your funds. Pick the tool that fits the job.

You're here

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
Provide liquidity or run the demo
Peer-to-peer

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
Open P2P Loans

Flash Loans

Provide WETH liquidity from your wallet, or run the live Sepolia demo end-to-end.

Router on Ethereum0x8b6c...B334
Verified code

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. 1.Wrap some ETH to WETH (or use existing WETH).
  2. 2.Approve the FlashBankRouter to access your WETH.
  3. 3.Set a commitment limit (or unlimited) — WETH stays in your wallet.
  4. 4.Earn a fee every time borrowers use your liquidity.
  5. 5.Pause or change limits anytime — instant effect.

For borrowers (MEV / arb bots)

  1. 1.Implement the IFlashLoanReceiver interface.
  2. 2.Call flashLoan(token, amount, toNative, data).
  3. 3.The router pulls WETH from providers, all in one tx.
  4. 4.Your contract receives WETH or native ETH.
  5. 5.Run your arbitrage / MEV logic.
  6. 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

Pool has ≥ 0.1 WETH committed (current: 0.0000 WETH)
You have ≥ 0 ETH for the fee

The demo borrows from the pool, not your personal commitment.

Estimated fee: 0 ETH