Math Equations For X And Y

A simple explanation of the equations for x and y in Uniswap V3. This lesson will show you how to get the equations for X and Y based on Liquidity and Price using the constant product formula, and also how to calculate what X and Y should be for a given price range.

DeFi Developer

Uniswap V3

1. Math Equations For X And Y
A simple explanation of the equations for x and y in Uniswap V3. This lesson will show you how to get the equations for X and Y based on Liquidity and Price using the constant product formula, and also how to calculate what X and Y should be for a given price range. Duration: 3min
2. Math Curve Real Reserves
A complete guide to understanding the Uniswap v3 Curve of Real Reserves - This lesson explores the real reserves of Uniswap v3 and explains the relationship between the constant product curve and the curve of real reserves. Duration: 11min
3. Math X And Y In Price Range
A simple introduction to Uniswap V3's liquidity provision. This lesson covers how to calculate the amounts of tokens held in liquidity between price ranges. You'll learn how to utilize two key equations for liquidity provision in Uniswap V3. Duration: 8min

Course Overview

About the course

What you'll learn

Concentrated liquidity and derive its equations

Uniswap V3 math

How to calculate the spot price of tokens

Single and multi position swapping

Factory contract architecture

How to calculate liquidity requirements

Uniswap V3 fee algorithm

Flash loans

TWAP price oracle

Course Description

Who is this course for?

  • Software Engineers
  • Financial Analysts
  • Web3 Developers
  • Finance 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 May 15, 2025