


Gamma Strategies / gamma-univ4-limit-orders (Live)
Everything you need to learn Gamma’s limit order system for Uniswap v4 pools: 11 comprehensive code tours totaling over 200 steps, formulas presented in LaTeX, and a detailed glossary.
Cantina, 29 Apr - 06 May 2025
Everything you need to learn Gamma’s limit order system for Uniswap v4 pools: 11 comprehensive code tours totaling over 200 steps, formulas presented in LaTeX, and a detailed glossary.
Cantina, 29 Apr - 06 May 2025
Everything you need to learn Gamma’s limit order system for Uniswap v4 pools: 11 comprehensive code tours totaling over 200 steps, formulas presented in LaTeX, and a detailed glossary.
Cantina, 29 Apr - 06 May 2025
Scope
Everything in /src EXCEPT for LimitOrderLens.sol
LimitOrderManager.sol → main contract
LimitOrderHook.sol → hook contract
PositionManagement.sol → library
TickLibrary.sol → library
CurrencySettler.sol → library
CallbackHandler.sol → library
ILimitOrderManager.sol → interface
Tours
1.1: General Overview
2.1: Core LimitOrderManager: Overview
2.2: ILimitOrderManager.sol: Data Structures & Interface
2.3: LimitOrderManager.sol: Contract Structure & State
2.4: LimitOrderManager.sol: Order Lifecycle Functions
2.5: LimitOrderManager.sol: Execution & Keeper Logic
2.6: CallbackHandler.sol: Callback Handlers
2.7: CurrencySettler.sol: Settlement Abstraction
2.8: PositionManagement.sol: Size & Tick Storage
2.9: TickLibrary.sol: Tick & Price Utilities
3.1: LimitOrderHook Contract