Skip to main content

What is a flash loan?

A flash loan is a unique type of loan that is borrowed and repaid atomically within a single transaction on the blockchain.

Flash loans allow anyone with access to the blockchain to borrow assets without the need for collateral, provided that the loan is repaid before the transaction ends. If the loan is not repaid, the entire transaction is reverted, effectively canceling the loan.

Flash loans are standardized in EIP-3156, but not all providers follow this EIP. Many smart contracts that hold significant amounts of funds allow users to draw on them in flash loans:

ProtocolFee PercentageERC-3156 CompliantDocumentation Link
Aave V30.5%*NoAave Flash Loans
Uniswap (FlashSwap)swap feeNoUniswap V3 Overview
Balancer V30%NoBalancer Flash Loans
MakerDAO0%YesMakerDAO DSS Flash
Euler0%Yes (via adapter)Euler Flash Loans
  • this fee could be potentially disabled

Key features

  • Uncollateralized: Unlike traditional loans, flash loans do not require any collateral, as they are designed to be repaid within the same transaction.
  • Transaction Reverts if Not Repaid: If the loan is not repaid in full, the entire transaction (including borrowing and usage of funds) is reverted to the initial state, ensuring no loss for the lender.
  • Instantaneous: Flash loans are executed and settled instantly. They are typically used for arbitrage, collateral swapping, or liquidity provision.
  • Using the Funds: The user can perform various actions with the borrowed funds during the same transaction block using pre/post-hooks, such as arbitrage, debt refinancing, or liquidating positions.

Getting started

Want to place a flash loan order? Check out our flash loan tutorial.