Balancer V3 Stable Pool

Design and deploy 2-5 token Balancer V3 stable pools with StablePoolFactory.

Updated Nov 5, 2025
One-click install
npx skills add https://github.com/cyotee/crane --skill balancer-v3-stable-pool
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Balancer V3 Stable Pool
Source: https://github.com/cyotee/crane/tree/main/.claude/skills/balancer-v3-stable-pool
Command: npx skills add https://github.com/cyotee/crane --skill balancer-v3-stable-pool

SYSTEM DOCUMENTATION & REQUIREMENTS

Balancer V3 Stable Pool helps you understand how to design and implement stable-asset pools that trade near parity with minimal slippage by leveraging a specialized stable math approach.

What problem does it solve?

It provides a clear blueprint for modeling, deploying, and updating stable pools with 2 to 5 tokens, including how amplification parameters shape the curve and how to manage swaps and liquidity efficiently.

Core Features & Use Cases

  • Supports 2 to 5 tokens in a single pool, with adjustable amplification to tune slippage
  • Defines the StablePool contract, the StablePoolFactory for deployment, and the StableMath library for invariant and swap calculations
  • Describes how amplification updates are constrained over time and how swap fees influence trading dynamics

Quick Start

Start by deploying a StablePool via the factory with your token set and an initial amplification value.

Frequently Asked Questions about Balancer V3 Stable Pool

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement a stable pool in Balancer V3 with multiple tokens?

To implement a Balancer V3 stable pool, deploy the StablePool contract via StablePoolFactory using your desired 2 to 5 token set and an initial amplification value. The pool utilizes the StableMath library for invariant and swap calculations to enable near-parity trading.

How does the amplification parameter affect stable pool swaps in Balancer V3?

The amplification parameter shapes the stable pool curve to minimize slippage for assets trading near parity. Higher amplification enforces tighter price correlations, while lower values allow more price deviation between the pooled tokens during swap computations.

What are the constraints for updating the amplification parameter in a Balancer V3 stable pool?

Amplification updates in a Balancer V3 stable pool are constrained over time to prevent sudden curve manipulation. This gradual update mechanism ensures stable pool invariant calculations and liquidity dynamics remain predictable and secure for all pool participants.

Can I deploy a Balancer V3 stable pool for more than 5 tokens?

Balancer V3 stable pools support a maximum of 5 tokens in a single pool. This 2 to 5 token limit is defined within the StablePoolFactory creation parameters to ensure efficient invariant calculations and optimal swap fee dynamics.

What is the best way to calculate the invariant for a Balancer V3 stable pool?

The best way to calculate the invariant for a Balancer V3 stable pool is using the dedicated StableMath library. It computes the invariant based on the current token balances and the configured amplification parameter to determine precise swap outputs.

Why does my Balancer V3 stable pool experience high slippage?

High slippage in a Balancer V3 stable pool typically results from an improperly tuned amplification parameter or token prices diverging significantly from parity. Adjusting the amplification parameter can help tighten the curve and reduce slippage for near-parity assets.