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).