Hey there đź‘‹ I'm Krishang - NYU Philosophy alum and founding engineer at thirdweb.

Inventing Curve AMM Math
In this post, we'll invent Curve AMM as if for the first time.Here's the problem Curve wants to solve: how can we enable token trades [1] at a constant exchange rate and [2] without any slippage? For example, a trader wants to convert arbitrary amounts of USDC into DAI at the price of 1 USDC for 1 DAI. Consider a liquidity pool containing 1,000 USDC and 1,000 DAI for which trades must satisfy the Constant Sum invariant (CS):$$x + y = D$$G.1: graph of the Constant Sum invariant with ...

Inventing Curve AMM Math
In this post, we'll invent Curve AMM as if for the first time.Here's the problem Curve wants to solve: how can we enable token trades [1] at a constant exchange rate and [2] without any slippage? For example, a trader wants to convert arbitrary amounts of USDC into DAI at the price of 1 USDC for 1 DAI. Consider a liquidity pool containing 1,000 USDC and 1,000 DAI for which trades must satisfy the Constant Sum invariant (CS):$$x + y = D$$G.1: graph of the Constant Sum invariant with ...

Smart contract deep dive: Building smart wallets for individuals & teams
Hi Mirror 👋 Krishang here, founding engineer at thirdweb. This is my first Mirror post(!) and I plan on publishing many more. I wasn’t sure about how to kick things off, so we’re just going to dive into the deep end and see what comes out of this. You’re about to take a deep-dive into thirdweb’s smart contracts for ERC-4337 smart wallets! If you’re unfamiliar with “ERC-4337” or “Account Abstraction”, read this explainer blog to catch up. Now let’s get into it.A look at the smart wallets land...

Smart contract deep dive: Building smart wallets for individuals & teams
Hi Mirror 👋 Krishang here, founding engineer at thirdweb. This is my first Mirror post(!) and I plan on publishing many more. I wasn’t sure about how to kick things off, so we’re just going to dive into the deep end and see what comes out of this. You’re about to take a deep-dive into thirdweb’s smart contracts for ERC-4337 smart wallets! If you’re unfamiliar with “ERC-4337” or “Account Abstraction”, read this explainer blog to catch up. Now let’s get into it.A look at the smart wallets land...