0/5
### Graphing Tick on the Constant Product Curve In this lesson, we will explore how Uniswap V3 calculates the price and how that price interacts with the constant product curve. In the previous video, we saw that the price was calculated with the formula: ```javascript p = 1.0001^t ``` where t is some tick. In this video, we'll observe how the price is plotted on the constant product curve as we increase and decrease the tick. As a review: in Uniswap V2, we could calculate the spot price given the amount of tokens. However, in Uniswap V3, we can calculate the amount of tokens given the price and liquidity. Because we know the liquidity and price, we can determine where the amount of tokens should be on this curve, and we can plot this price as we change the tick. For example, if we increase the tick, we can see that the price increases. If we decrease the tick, we can see that the price decreases.
A visual demonstration of Uniswap v2 price calculation, showing the price as liquidity and tick change. This lesson focuses on the price calculation in Uniswap v2. The video demonstrates how price changes as the liquidity and tick are adjusted. It visually shows how price changes in the Uniswap v2 environment.
Previous lesson
Previous
Next lesson
Next
Give us feedback
Course Overview
About the course
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
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)
Last updated on May 15, 2025
DeFi Developer
Uniswap V3Duration: 3min
Duration: 35min
Duration: 25min
Duration: 22min
Duration: 1h 43min
Duration: 11min
Duration: 1h 03min
Duration: 12min
Duration: 51min
Duration: 41min
Duration: 10min
Duration: 7min
Course Overview
About the course
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
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)
Last updated on May 15, 2025