lp-math

Community

Master AMM liquidity provision math.

Authoragiprolabs
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill demystifies the complex mathematics behind Automated Market Makers (AMMs) and Concentrated Liquidity Market Makers (CLMMs), enabling users to make informed decisions about liquidity provision.

Core Features & Use Cases

  • AMM Formulas: Understand constant product (xy=k) and concentrated liquidity models.
  • Price Impact & Slippage: Calculate how trades affect prices and estimate slippage.
  • LP Share & Fee Calculations: Determine LP earnings, impermanent loss, and optimal strategies.
  • Use Case: Before depositing funds into a new liquidity pool, use this Skill to calculate the potential fee APR, estimate impermanent loss for various price scenarios, and compare capital efficiency across different CLMM ranges to maximize your yield.

Quick Start

Calculate the capital efficiency for a concentrated liquidity position with a price range from $95 to $105.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 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: lp-math
Download link: https://github.com/agiprolabs/claude-trading-skills/archive/main.zip#lp-math

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.