Cover photo

TheCarbonSwap🌱: Week 1 @ ETHIndia Fellowship

Introduction ✨

Howdy! The much-awaited ETHIndia Fellowship 3.0 has begun, and it’s time to BUIDL some dope stuff! As part of the Fellowship, I’ll be building ‘TheCarbonSwap’ or TCS, a StableSwap DEX that allows for the trading of carbon-backed assets such as BCT, NCT, MCO2, KLIMA, etc., and also to mint a pool-backed token that represents at least 1-metric tonne of CO2.

Week 1

The Dilemma

My first week involved understanding what exactly I wanted to build during these 8-weeks and plotting key milestones that would help me identify my progress. I’ve started to chart out the protocol’s architecture.

The first dilemma I am approached with is: Should I fork Curve’s repo for the StableSwap AMM (convert it into Solidity from Vyper - for my ease of use) or directly create a pool on Curve for the project and build my features around it.

Pros of forking are that it allows me flexibility on what features I want to add and changes the functions around such that it fits my use case of minting a pool-backed token. Con would be that converting Vyper to Solidity will be an extra step, and possibly time-consuming.

The pros of directly using Curve’s protocol are the ease of creating a pool on-chain right from the get-go. Con would be the lack of flexibility of my knowledge in interacting with Vyper as well as having to change the protocol architecture I have in mind right now to something that conforms with Curve’s architecture.

Understanding the StableSwap AMM

Whatever approach I do end up taking, I would need to have an in-depth understanding of the StableSwap AMM. So this week, I set out to learn about the StableSwap AMM.

I highly recommend reading through this article by Miguel Mota:

https://miguelmota.com/blog/understanding-stableswap-curve/

And if reading is not exactly your thing (idk what you’re doing reading this then lmao), but watching videos is up your ally, then this would be ideal to watch:

Play Video

What now?

The research was the primary area I focused on this week. Will be looking to maybe start some conversations on what the right approach is for the dilemma. And will finalize my approach by the end of next week.

Not exactly sure what I’m building? Fret not, I’ll be trying to write an article explaining the same once I have finalized the details. Why not subscribe and maybe even collect this post?

Subscribe

Let’s keep building! 🚀