August 3, 2022: Curve Vyper Tutorial π¦π΅π
How to Build a $CRV-backed Stablecoin from scratch using Vyper
Curve has launched a Vyper Tutorial, on the timely topic of how to launch a $CRV-backed stablecoin.
The multi-part series is rolling out over the course of several short 5-10 minute lessons accessible to beginners. The first three video tutorials are up, covering setup, contract creation, and state variables, with nearly a dozen lessons in the pipeline.
The focus of the tutorial is how to build and launch a $CRV-backed stablecoin from scratch using. If youβre impatient waiting for an official $crvUSD stablecoin, consider just following this tutorial and releasing a stablecoin of your own. Naturally, the stablecoin built using this tutorial is a simplistic design, and may be functionally quite different than whatever design chad Curve devs dream up. (NOTE: reworded for clarity)
This represents the fulfillment of the prophesied @CurveCap stablecoin.
Good news for $CRV death spiralooors as well. Even though this tutorial focuses on building a $CRV-backed stablecoin, the principles behind the stablecoin construction are applicable to any ERC-20 token. So one could create all variety of stablecoins by following through this tutorial using any ERC-20 token.
The tutorial comes with a companion Github repository so you can easily follow along with all the action at home. Lessons are broken down into unsolved
and solved
folders, with diffs to easily keep track of differences. The unsolved folders contain failing Brownie tests that will run correctly when the unit is complete.
Therefore, itβs recommended you have already installed Brownie and have a baseline understanding of how it works. Fortunately, we can recommend a Brownie Tutorial to get you up to speed:
This tutorial has been in the works for a few months now, months with particularly exciting Vyper action. The community got a well-deserved shoutout from Vitalik Buterin, which has fueled sudden interest in learning Vyper from scratch.
Vyper 3.4 officially got released over the past week.
The release includes a number of changes, though no module support yet. Among other great features, this release also ties in with a matching Titanoboa release.
Big thanks to @big_tech_sux for the review and @CFrogE1 for generating art used for the video depicting what a $crvUSD Bull would look like.
We hope you enjoy these lessons and those to come! Weβre certainly eager for your thoughts and feedback, and we hope it contributes to more people building and growing the Vyper and DeFi communities.