Balancer V3 Weighted Pool

Explain Balancer V3 Weighted Pool mechanics, including weight handling and invariant calculations.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Balancer V3 Weighted Pools enable flexible, efficient on-chain asset allocation by supporting customizable token weights and invariant-based pricing, which simplifies the design and analysis of liquidity-provision strategies.

Core Features & Use Cases

  • Weighted math for price calculation with 2-8 tokens
  • Immutable, deploy-time token weights
  • Factory patterns for pool deployment and liquidity management
  • Use cases include creating 80/20 pools, rebalancing, and gas-efficient liquidity provision

Quick Start

Ask to summarize how a Balancer V3 weighted pool operates and outline its main components for a deployment scenario.

Frequently Asked Questions about Balancer V3 Weighted Pool

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

FAQPage Schema
How do Balancer V3 weighted pools calculate swap prices?

Balancer V3 weighted pools calculate swap prices using WeightedMath invariant calculations based on customizable, immutable token weights set at deployment. This mechanism enables efficient on-chain asset allocation for 2-8 tokens.

How do I deploy a Balancer V3 weighted pool with custom token weights?

To deploy a Balancer V3 weighted pool, you use factory patterns for pool deployment and liquidity management. Token weights are immutable and configured at deploy-time, allowing you to easily create pools like 80/20 asset allocations.

Can I use Balancer V3 weighted pools for gas-efficient liquidity provision?

Yes, you can use Balancer V3 weighted pools for gas-efficient liquidity provision. The contract structure and WeightedMath calculations are designed to support flexible, efficient on-chain asset allocation and rebalancing strategies.

What are the constraints for token weights in Balancer V3 weighted pools?

Balancer V3 weighted pools support between 2 and 8 tokens, with weights being immutable after the initial deployment. You must configure these weighting constraints at deploy-time using the pool factory interfaces.

When should I audit smart contracts using Balancer V3 weighted pool logic?

You should audit smart contracts using Balancer V3 weighted pool logic when designing, deploying, or auditing DeFi liquidity pools. The audit process involves reviewing WeightedMath calculations, swap logic, contract structure, and pool factory interfaces.