Flashloan with Balancer V2
- 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.
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.
You can check out available tokens and their amounts that each vault holds on these networks below.
Install & Setup
Run the following command.
git clone https://github.com/yuichiroaoki/poly-flash.git
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.