Flashloan with Balancer V2

You can borrow tokens with zero fee on Balancer V2!

yuichiro aoki
2 min readOct 18, 2022


Balancer Flashloan contract


  • Flashloan fee on Balancer V2 is 0.0%.
  • Easy to use
  • Able to borrow a huge amount of tokens
  • Many kinds of tokens

Balancer V2 Flashloan

Balancer V2 might be the best for many mev bot operators in every aspect. This is like a protocol both Aave and Dodo are combined to but only good aspects of each protocol. In fact, according to the EigenPhi’s post, Balancer V2 had the highest flashloan trading volume in Q3 2022.

Twitter Thread | Official Docs

Easy to use

The contract interface is very similar to Aave flashloan and easy to use compared to DODOV2.

No flashloan fee

Surprisingly, Balancer V2 doesn’t change any flashloan fees! Considering Aave V3 charges 0.05 %, this is a great deal for any arbitrage mev searchers.

Of course, DODOV2 also doesn’t cost any fees for flashloan, but it’s less liquidity, which means you can borrow less amount of tokens. Plus, their contract interface is a little more complex.

Available Networks

You can check out available tokens and their amounts that each vault holds on these networks below.


Install & Setup

  1. Install Node.js & yarn, if you haven’t already.
  2. Clone This Repo

Run the following command.

git clone https://github.com/yuichiroaoki/poly-flash.git
cd poly-flash


1. Setup Environment Variables

You’ll need an ALCHEMY_POLYGON_RPC_URL environment variable. You can get one from Alchemy website for free.

Then, you can create a .env file with the following.