Skip to main content
Blockfront

Crypto markets, protocols and policy

Flash loan vs own capital: fund a DEX gap with the right route

Flash loan vs own capital for an arbitrage trade: borrow for a gap larger than your balance; use your funds for small trades you can execute from a wallet.

Blockfront Editorial

3 min read

Flash loan vs own capital: fund a DEX gap with the right route

For an on-chain arbitrage trade, use a flash loan when the gap needs more capital than you hold and you can deploy a contract; use your own capital for small wallet trades.

Take an illustrative case: a token is cheaper on SushiSwap than on Uniswap, and you hold only a small ETH balance. The price gap looks tradable, but your balance limits how much you can buy.

What happens with your own funds

With your own capital, you send one wallet swap to buy the token on SushiSwap, then a second to sell it on Uniswap. Those are separate transactions, so the second leg can face a changed price or thinner liquidity after the first swap completes.

If the Uniswap price moves before your sale, you may be left holding the token. Your result depends on the amount you can fund, the available pool depth, slippage on both swaps, and gas costs.

A larger balance could let you trade more, but it cannot make the gap bigger. The profit available is capped by the price difference and how much liquidity the pools can absorb at that price.

What changes with a flash loan

A flash loan lets a contract borrow the trade amount, swap on both DEXs, and repay the loan in one transaction. The loan must be repaid within that same transaction; otherwise, the whole transaction reverts.

The route can use more capital than your wallet holds, but the loan does not create extra profit. Borrowing beyond what SushiSwap and Uniswap can absorb adds slippage, which can consume the price gap. The loan fee and gas also reduce the remaining margin.

Aave and Balancer set their flash loan fees through protocol governance, so check the applicable fee when evaluating a route. You also need a contract that performs both swaps and repayment atomically.

Flashbots is an Ethereum research and infrastructure organization focused on MEV. Sending the contract call as a Flashbots bundle is a concrete example of MEV protection: a failed attempt is dropped instead of paying gas.

For this illustrative gap, choose the flash loan only if your balance is too small, the pools can handle the trade size, and you can deploy the contract. If the gap is small enough for your ETH balance, two wallet swaps avoid the contract requirement and loan fee, while leaving you exposed to the second leg moving.

  • Use a flash loan when the gap needs more capital and you can execute atomically in a contract.
  • Use your own funds for small wallet trades, accounting for the risk between swaps.
  • Pool depth and the price gap cap profit; extra borrowed size can add slippage.