Tick Bitmap

A detailed explanation of how Uniswap V3 stores liquidity positions in a tick bitmap and how to read and write to it. The lesson covers the format of a tick bitmap, how to convert a tick into its corresponding word and bit positions, and how to add and remove a tick from the bitmap by using XOR operation with a specific mask.

1. Tick Bitmap
A detailed explanation of how Uniswap V3 stores liquidity positions in a tick bitmap and how to read and write to it. The lesson covers the format of a tick bitmap, how to convert a tick into its corresponding word and bit positions, and how to add and remove a tick from the bitmap by using XOR operation with a specific mask. Duration: 4min
2. Next Tick Algorithm
A detailed guide to understanding the Uniswap V3 next tick function. The lesson covers the following: * How a tick is broken down into its two parts: word position and bit position * How to find the next tick that is greater than or equal to the current tick * How to find the next tick that is less than or equal to the current tick 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 August 11, 2025