Flash loans on Instadapp: borrowing millions for fifteen seconds

A flash loan needs no collateral because it must be repaid before the transaction ends. Here is what that actually enables, what it costs, and where beginners lose money.

Written by Instadapp Handbook Editorial DeskLast reviewed:
Illustration of a flash loan borrowed and repaid inside a single blockchain transaction

The mechanism behind an Instadapp flash loan

A blockchain transaction either fully succeeds or fully reverts. Flash loans weaponise that property. A pool lends you any amount it holds with no collateral at all, on the sole condition that the borrowed sum plus a fee returns to the pool before the transaction ends. If it does not, the entire transaction — including the loan — is erased as though it never occurred.

Because the lender cannot lose money, creditworthiness is irrelevant. A wallet holding twenty dollars of gas can borrow millions, provided the actions in between generate enough to repay. Instadapp exposes this as a composable building block: the flash loan is one action in a bundle your smart account executes.

What people actually use flash loans for

The popular image is arbitrage, and arbitrage does exist, but it is dominated by professional searchers competing at the millisecond level. The realistic use cases for an individual are structural rather than speculative: migrating a loan between protocols, swapping the collateral backing a loan without closing it, and deleveraging a position in one step during a drawdown.

Consider the deleverage case. Your position is approaching liquidation and you have no spare capital. A flash loan repays part of the debt, the freed collateral is withdrawn and sold, and the proceeds repay the flash loan. You end with a smaller, safer position and you never needed liquidity of your own to get there.

Fees, gas and the profitability threshold

The typical flash loan fee is around nine basis points, or ninety dollars on a hundred thousand borrowed. Gas is the second cost and it does not scale with the loan size, which means large operations carry proportionally trivial overhead while small ones do not. Slippage is the third and usually the largest cost, because any swap inside the bundle moves the market against you.

Model with pessimistic assumptions. If the operation is profitable only at the quoted mid price, it is not profitable. A common beginner error is planning against a spread that a competing bot will have closed before the transaction is mined, leaving a reverted transaction and a gas bill.

Risks and misconceptions about flash loans

Flash loans are frequently blamed for exploits. The loan itself is not the vulnerability; it is a magnifier that lets an attacker supply the capital needed to stress a protocol whose oracle or accounting was already fragile. Removing flash loans would not have made those protocols safe.

For a user, the practical risks are bounded. You cannot end up owing money, because a failed repayment reverts everything. What you can lose is gas, repeatedly, by executing bundles whose economics were never sound. Simulate first, keep bundles as short as possible, and never sign a pre-built bundle you have not read.

How to plan a flash loan on Instadapp

  1. 1Define the outcomeState precisely what the transaction should achieve — a migration, a deleverage, a collateral swap — before touching the interface.
  2. 2Pick the liquidity sourceChoose a lending pool with enough depth for the amount you need and note its fee.
  3. 3Order the actionsSequence borrow, action and repay so that repayment is funded by the action itself.
  4. 4Model the economicsAdd the flash loan fee, gas and slippage, and confirm the result is positive under a pessimistic price assumption.
  5. 5Simulate, then executeRun the bundle in simulation first; a reverted transaction still costs gas even though it changes nothing.

Frequently asked questions

+Do I need collateral for a flash loan on Instadapp?

No. The loan is uncollateralised because repayment is enforced inside the same transaction; if repayment fails, the borrowing never happened.

+How much does a flash loan cost?

Commonly about 0.09 percent of the borrowed amount, plus gas and any slippage generated by swaps inside the bundle.

+Can I lose more than my gas on a failed flash loan?

No. A failed flash loan reverts the whole transaction, so the only permanent cost is the gas consumed by the attempt.

+Are flash loans legal and are they only used by attackers?

They are a standard protocol feature used routinely for migrations, collateral swaps and deleveraging. Their association with exploits comes from attackers using them to fund attacks on already-vulnerable systems.

+What is the largest flash loan I can take on Instadapp?

The limit is the available liquidity of the source pool at that moment, not your balance. Deep pools have supported loans in the hundreds of millions.

Related material