Code Walkthrough Exchange

A comprehensive guide to Vyper smart contract development and its use with the Moccasin testing framework. The course covers the essential concepts of Vyper smart contracts, deploying them to various testnets, and writing efficient and effective tests using Moccasin.

1. Exchange Overview
A comprehensive guide to building a smart contract lottery using Vyper. This lesson covers the fundamental concepts of smart contracts, how to implement randomness, and the intricacies of creating a secure and functional lottery application. The video breaks down the steps of building a smart contract lottery, including setting up the contract structure, implementing entrance fee management, and designing a random winner selection mechanism. Duration: 1min
2. Code Outline Exchange
A comprehensive guide to Vyper smart contract development with Moccasin. The course covers the basics of setting up a Vyper development environment, deploying your first contracts, understanding the core features of Vyper, and testing your contracts using Moccasin. Duration: 2min
3. Code Walkthrough Exchange
A comprehensive guide to Vyper smart contract development and its use with the Moccasin testing framework. The course covers the essential concepts of Vyper smart contracts, deploying them to various testnets, and writing efficient and effective tests using Moccasin. Duration: 7min
4. Code Walkthrough Fee
A comprehensive guide to learning about dynamic fees in Vyper Smart Contracts. This lesson dives into the `_fee` function and covers how fees are calculated dynamically based on the token balances in the smart contract. Additionally, the lesson provides an in-depth analysis of the `reduction_coefficient` function, explaining how it leverages geometric and arithmetic means to adjust fees. Duration: 6min
5. Graph Fee
A dynamic and interactive guide to understanding the Vyper fee multiplier - a key concept in smart contract development. This lesson demonstrates how the fee changes when we adjust the parameters of the mid fee, out fee, and fee gamma. Duration: 4min
6. Exercise 1 Get Dy
A comprehensive guide to building smart contracts using Vyper. The lesson covers the basics of Vyper syntax and structure, deployment to Remix, and using AI prompts for development. It also includes local development and testing using tools like Moccasin and Titanoboa, as well as a crash course in Python for beginners. This hands-on course also delves into building an ERC20 token and a raffle smart contract. Duration: 1min
7. Solution 1 Get Dy
A comprehensive guide to using the getDY function in Vyper smart contracts. The lesson covers how to call the getDY function, understand its parameters, and interpret the output. Duration: 2min
8. Exercise 2 Exchange
A beginner's guide to building a vyper smart contract lottery or raffle. The lesson explains how to create a weak randomness lottery using on-chain randomness, or, for a secure solution, how to utilize Chainlink VRF 2.5. It also covers how to write tests for the contract and how to deploy it to a blockchain. Duration: 1min
9. Solution 2 Exchange
A comprehensive guide to deploying your Vyper smart contract on a local network using moccasin, titanoboa, and web3py. The lesson explores the different ways to deploy a Vyper smart contract, and explores the process of writing unit tests for your contract. Duration: 2min

Course Overview

About the course

What you'll learn

AMM math for Curve Cryptoswap

How liquidity is concentrated

Price-repegging

How function calls interact with the AMM

Curve Cryptoswap state variables

How the function exchange works

How to swap tokens

How to add and remove liquidity

Math for Curve Cryptoswap’s internal price oracle

Implicit differentiation

Course Description

Who is this course for?

  • Software Engineers
  • Web3 Developers
  • Finance Developers
  • AI Developers
  • Smart Contract Security Researchers

Potential Careers

Smart Contract Auditor

$100,000 - $200,000 (avg. salary)

Blockchain Financial Analyst

$100,000 - $150,000 (avg. salary)

DeFi Developer

$75,000 - $200,000 (avg. salary)

Smart Contract Engineer

$100,000 - $150,000 (avg. salary)

Web3 developer

$60,000 - $150,000 (avg. salary)

Web3 Developer Relations

$85,000 - $125,000 (avg. salary)

Meet your instructors

Tasuku Nakamura

Tasuku Nakamura

Founder at smartcontract.engineer

Smart contract engineer and educator.

Last updated on August 11, 2025