On week 4 of my journey with ETHIndia Fellowship I thought to get my hand dirty with code, and start working with the Balancer SDK and figure out how I can create, join, and trade with Balancer’s Composable Stable pools (not sure what I’m talking about? read my previous post from Week 3 of the Fellowship).
I was assigned Sarang from Sushiswap as my mentor. I believe he could give me on a greater insight into what to consider and take care of when working with and building DEXes.
I started using balancer-sdk but quickly started running into problems when trying to work with its example files and forking goerli using hardhat.

I asked around on their discord to help me out with this. And I eventually got this working. But quickly realised I was running into trouble when I had to write hardhat scripts with TS to work with this based on the example scripts they provided. Pretty sure there is a JS-only way for this to work, but got another ping in the Balancer discord that suggested I use balpy (Balancer’s Python-based tool).
I quickly got onto working with balpy and it seems like a breeze working with python. But as fate has it, got stuck in another error.

I’m not entirely sure what the issue here is. The folks over at Balancer Discord couldn’t replicate my error. So I am a bit stumped. So far, I’ve deployed 3 ERC20 tokens on Goerli testnet and used those token addresses to create my pool. I’ll need to dig deeper into this issue and get this solved. And then get started on writing my own custom contracts for the extra features I am planning to add.
Why not subscribe and maybe even collect this post?

