uniswap-fundamentals
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseUniswap Fundamentals (Doppler-focused)
Uniswap基础(侧重Doppler场景)
When to use
适用场景
- You need math/context for Doppler pool parameters and pricing
- You are interpreting tick movement, liquidity ranges, or sqrtPriceX96 values
- You are debugging V4 hook lifecycle behavior
- 你需要了解Doppler资金池参数与定价相关的数学原理/背景知识
- 你要解读tick变动、流动性区间或sqrtPriceX96数值
- 你正在调试V4 hook的生命周期行为
Scope
适用范围
This skill is intentionally V3/V4-centric for current Doppler development.
本参考内容针对当前Doppler开发需求,专门围绕V3/V4版本设计。
Core concepts map
核心概念对照表
| Concept | Version | Reference |
|---|---|---|
| sqrtPriceX96 and tick math | V3+V4 | TICK-MATH.md |
| Liquidity formulas | V3+V4 | LIQUIDITY.md |
| Singleton + flash accounting | V4 | V4-ARCHITECTURE.md |
| Hook lifecycle and flags | V4 | V4-HOOKS.md |
| 概念 | 版本 | 参考文档 |
|---|---|---|
| sqrtPriceX96 and tick math | V3+V4 | TICK-MATH.md |
| Liquidity formulas | V3+V4 | LIQUIDITY.md |
| Singleton + flash accounting | V4 | V4-ARCHITECTURE.md |
| Hook lifecycle and flags | V4 | V4-HOOKS.md |
Doppler usage map
Doppler使用映射表
| Doppler skill | Uniswap concepts used |
|---|---|
| V3 tick spacing, range liquidity, far-tick exits |
| V4 hooks, epoch rebalancing, dynamic liquidity placement |
| V4 concentrated ranges, multicurve allocation |
| V4 hook permissions and callback integration |
| Doppler技能 | 用到的Uniswap概念 |
|---|---|
| V3 tick间距、区间流动性、远tick退出 |
| V4 hooks、周期再平衡、动态流动性配置 |
| V4集中区间、多曲线分配 |
| V4 hook权限与回调集成 |
Critical invariant
关键不变规则
Token ordering () drives:
token0 < token1- Tick direction interpretation
- Price direction assumptions
- Asset/numeraire orientation in calculations and migration logic
代币排序规则()决定了以下内容:
token0 < token1- Tick方向解读
- 价格方向假设
- 计算与迁移逻辑中的资产/计价单位定位
References
参考文档
- TICK-MATH.md
- LIQUIDITY.md
- V4-ARCHITECTURE.md
- V4-HOOKS.md
- TICK-MATH.md
- LIQUIDITY.md
- V4-ARCHITECTURE.md
- V4-HOOKS.md