uniswap-math
CommunityMaster Uniswap liquidity math for precision.
Software Engineering#solidity#uniswap#concentrated-liquidity#fixed-point#decentralized-exchange#liquidity-math
Authorccashwell
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides precise fixed-point math and specialized libraries for Uniswap-style concentrated liquidity, enabling developers to compute prices, liquidity, and token amounts with high accuracy.
Core Features & Use Cases
- TickMath: compute sqrt prices and ticks for given inputs.
- SqrtPriceMath, SwapMath, FullMath: core arithmetic for swaps and liquidity.
- TickBitmap and LiquidityAmounts: manage liquidity ranges and amounts for positions.
- Position and related helpers: manage liquidity state and fees in a Uniswap-like system.
- Use Case: design and simulate concentrated liquidity pools, price ranges, and liquidity provisioning with deterministic math.
Quick Start
Integrate the Uniswap math libraries into your Solidity project and run a simple example to calculate liquidity for a given token pair.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: uniswap-math Download link: https://github.com/ccashwell/evm-cortex/archive/main.zip#uniswap-math Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.