0/5
# Tracking the Spot Price in Uniswap V3 In Uniswap V2, the amount of tokens inside a contract determines the spot price. In Uniswap V3, the spot price and liquidity are tracked by the smart contracts. In addition, the price ranges are tracked in Uniswap V3 and used to calculate the amounts of tokens locked in specific price ranges. The spot price is tracked in Uniswap V3 using the following formula: ```javascript p = 1.0001^t ``` In the formula above, p is equal to the spot price, and t is the current tick. The smart contract tracks the current tick, and then calculates the price from it. When the tick is equal to zero, the price will be equal to one. If the tick is negative, then the price will be less than one. When the tick is positive, the price will be greater than one. If we slide the tick over to negative values we see the price moves to a smaller value. The price approaches zero as we move the tick further toward the negative numbers. Alternatively, as the tick moves from zero to higher values, the price will increase, and will approach infinity as the tick value increases. This is because the formula being used to calculate the spot price is an exponential function. When the tick slides to negative infinity the price approaches zero. And when the tick slides to positive infinity, the price approaches infinity.
A simple guide to Uniswap V3's Tick System. The lesson covers the formula that Uniswap V3 uses to calculate the current price of a token and shows how the price can range from 0 to infinity, approaching 0 with a negative tick and approaching infinity with a positive tick.
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