cfmm-from-payoff

Official

Derive CFMM specs from payoffs.

Authorwvs-finance
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill automates the complex process of deriving a complete Constant Function Market Maker (CFMM) specification directly from a user-defined target payoff, ensuring mathematical rigor and adherence to established financial engineering principles.

Core Features & Use Cases

  • Interactive Derivation: Guides users through a series of mandatory questions to define the CFMM's properties, reserves, trading function, and fee structure based on foundational academic papers.
  • Mathematical Rigor: Ensures all derivations are grounded in the "Geometry of Constant Function Market Makers" and related works, producing verifiable LaTeX specifications.
  • Use Case: A DeFi protocol needs to launch a new AMM. Instead of manually coding and risking subtle mathematical errors, they use this Skill to interactively define the AMM's behavior based on a desired payoff profile, generating a precise mathematical specification for smart contract development.

Quick Start

Use the cfmm-from-payoff skill to derive a CFMM specification starting from the payoff max(S-K, 0).

Dependency Matrix

Required Modules

None required

Components

references

💻 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: cfmm-from-payoff
Download link: https://github.com/wvs-finance/ThetaSwap-core/archive/main.zip#cfmm-from-payoff

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.