Balancer recently launched StableSurge, the first production hook on V3 — an innovative directional fee mechanism that dynamically adjusts swap fees to help protect stable-asset pegs during volatility.
This article explores how Balancer V3 was leveraged to bring StableSurge to life, introduces the tech stack that powers it, and highlights how collaboration across multiple service providers transformed this novel concept into a fully deployed production feature.

Idea To Contract Made Easy
The BLabs Smart Contracts team implemented the code — the StableSurgeHook itself and the associated factory.
The Hooks architecture enables developers to focus on their core functionality without worrying about the complexities of the Balancer Vault, Pools, and other internals — these components simply “just work.”
To support developers, Balancer provides:
- Comprehensive developer docs for guidance
- Helpful periphery contracts for testing to streamline development.
- Scaffold starter kit for a quick and easy setup
Beyond development, audits can be faster and more cost-effective since the bounded scope reduces the risk of unintended issues. For example, StableSurge was fully audited in just one week.
The result? A shorter development cycle and faster time to market.
The final step for the SC team after Audits are complete are the production deployments to all networks supported by Balancer. This kicks off the final integration of the off chain components.
Operational Data
Balancer’s data teams focus on two key roles: operations and analysis. Operationally, on-chain data must be accessible in a way that enables consumers, such as the front-end, to utilize it effectively. Balancer achieves this through the Subgraph and its open-source API, run on in-house infrastructure.
Metadata
The Balancer Metadata repo serves as a central repository for storing critical information about pools, hooks, tokens, and more, all of which are utilized by the Balancer front-end. For example, the entry for StableSurge includes a description and deployment addresses, ensuring that the front-end can retrieve and display the correct details.
Subgraph
The Subgraph is a light weight data layer for V3 built by indexing onchain events. To add support for a new Hook/Pool the relevant config, addresses, abis, etc must be added (see StableSurge PR for reference). Any new, important parameters must also be identified and tracked, e.g. for StableSurge the following params were included: amp, maxSurgeFeePercentage, surgeThresholdPercentage.
API
The Balancer API builds on top of the Subgraph, transforming and augmenting data into a more usable format for other layers of the stack, including the SDK and front-end. To support a new Hook or Pool, the hook address must be added to the config, along with any new parameters. Some additional custom work may also be required, such as APR tracking or other specific calculations.
Integrations
Building and deploying the code is just the first step — adoption is what makes it valuable. The Integrations team ensure that a new product developed on Balancer’s platform is usable, accessible, and widely adopted. Packages are provided to make it easier to interact with the smart contracts and to replicate the core maths offchain. New hooks/pools are integrated into the swap router, and the team works closely with external aggregators to drive deeper ecosystem integration.
Balancer Maths
The Balancer maths repo contains reference mathematical implementations, in Javascript and Python, for supported Balancer pools and hooks. When we want to support a new hook type we add an implementation that should match smart contract code 100% (and similarly for a new pool type). You can see an exampe PR for adding the Python implementation of StableSurge here. The final step is to publish the updated NPM package which will be used in the SOR and aggregator integrations.
Smart Order Router
The Balancer Smart Order Router (SOR) identifies optimal swap paths for a given token pair and is accessible through the Balancer API. When a new pool/hook is created this must be integrated into the SOR. Swap results are calculated using the Balancer Maths package so that must be updated and any hook specific parameters must be passed appropriately.
SDK
The Balancer SDK is a Typescript/Javascript library for interfacing with the Balancer protocol. This includes common contract interactions such as adding and removing liquidity. The SDK leverages the API and the SC query functionality which means no changes are needed to support add/remove/swaps for new pool types or hooks (provided they work the Balancer Routers).
To support creation a small update is required whenever a new factory is developed. As StableSurge uses a dedicated factory a PR was made to add this.
Pool Creation
A Pool Creation UI is provided by Balancer to make the creation of new pools easy. Similarly to the SDK an update is required when a new factory is developed. Otherwise a pool can be configured to use a hook as detailed in the docs.
Aggregators

To maximize volume, we aim to expose Balancer V3 liquidity to as many aggregators and solvers as possible. We collaborate closely with these teams, each of whom has their own unique approach. Our efforts include:
- Providing aggregator specific docs
- Creating detailed pool/hook-specific docs with all necessary. information, such as the StableSurge reference as an example.
- Notifying teams of new launches and offering direct support.
- Contributing directly where possible, such as the Paraswap PR adding StableSurge support.
Bringing StableSurge to the Front End

The design and front-end teams play a crucial role in integrating StableSurge into the user experience, ensuring that all relevant hook information is accessible and intuitive. Their contributions include:
- Displaying key information by linking the selected pool, hook, and metadata.
- Designing and implementing UI elements such as banners, tags, and popovers.
- Providing transparency by adding risk information for the hook.
- Enhancing usability with an updated hook filter to improve discovery.
By building on the foundational work of the backend teams, the front-end and design teams ensure that StableSurge is not only functional but also user-friendly and informative.
Partnerships and Launch
In parallel with the technical development, the BizDev team has been actively identifying and collaborating with partners to prepare for launch. Partners who benefit from fee surging are naturally interested in improving pool performance for their liquidity providers while enhancing peg stability, making the value proposition clear.
The launch plan centered around key partners with an appetite for innovation and an interest in this particular product, including Aave, Treehouse, USDX, and emerging LST projects like Inception’s inwstETH and Loop’s slpETH. From an operations perspective, the Balancer Maxis team supported partners in creating and seeding pools, ensuring a smooth onboarding process.
A particularly strong collaboration emerged with Aave, where integrating GHO into a StableSurge pool with boosted features provided a comprehensive liquidity solution. Shortly after launch, the GHO/USDC Base pool quickly scaled to over $5 million TVL.

With the launch ongoing, data is being collected to fine-tune optimal surge thresholds, max fee settings, and other parameters like base fees and amplification. The surging mechanism enables a high-efficiency zone near the peg, while also acting as a backstop during volatility.
Next steps include:
- Further optimizing hook settings based on real-world data.
- Onboarding more stablecoins and ETH-based liquidity.
- Expanding to BTC-correlated pairs while integrating boosting via rehypothecation.
Data Analysis

The data team has developed a V3 Hooks dashboard to showcase curated hooks, featuring tailored visuals and key metrics that highlight the unique aspects of each hook. Meanwhile, other Balancer dashboards track overall key metrics and volume across the ecosystem.
Come Build With Us!
Building on Balancer V3 comes with a wide range of benefits, making contract development the primary focus for builders. The data layer, integrations, and front-end support are largely handled by Balancer’s infrastructure, reducing the overhead of building a complete ecosystem around a new feature.
With deep integrations into aggregators to drive volume, robust data tooling, and a well-supported front-end, developers can spend less time on infrastructure and more time innovating. Whether designing new hooks, optimizing swap mechanics, or experimenting with novel liquidity strategies, Balancer V3 provides a powerful, streamlined foundation to bring ideas to life and we’d love to help.