# GAMMA v2 - Hybrid CLMM

<figure><img src="/files/z5OATOed5TIEfAWezqEf" alt=""><figcaption></figcaption></figure>

## What’s New in GAMMA v2?

* **Hybrid CLMM Architecture**\
  Automatically switches between CPAMM and CLMM depending on which curve offers better pricing based on oracle and pool price data.
* **Passive Management**\
  LPs don’t need to adjust ranges, positions are auto-rebalanced based on volatility and utilization.
* **Dynamic Fees**\
  Fees scale with volatility and imbalance, maximizing returns during volatile markets.&#x20;

  1. We also add a drift factor, this is an extra fee we can charge if the pool's spot price goes X% distance away from last known oracle price. This prevents stale quotes.&#x20;

  &#x20; 2\.  If the oracle price itself is stale but users wish to swap, we add a very small dynamic fee -   considered a volatility fee.&#x20;
* **Built-in Arb Protection**\
  Our smart-contract protects LPs from most arbitrageurs. We reject any swaps that try to do arb and can cause any potential losses to LPs.&#x20;
* **Idle Capital Optimization (Fusion 2.0)**\
  Out-of-range liquidity is automatically deposited into borrow/lend protocols (e.g. Kamino) to earn yield until reactivation.
* **Revenue Sharing for** [**GOFX Stakers**](/tutorials/how-to-stake-unstake-gofx.md)\
  Earn daily USDC payouts if you stake GOFX through our stake rewards program. This helps offset any IL (impermanent loss) through real yield.&#x20;

### How Does the Hybrid CLMM Work?

1. **Swap Execution**
   * GAMMA compares pool price and oracle price.&#x20;
   * If the oracle offers better price execution, GAMMA concentrates the liquidity via its CLMM.&#x20;
   * Otherwise, it routes through the default CPAMM structure for better depth and price.
2. **Auto-Rebalancing**
   * Pool positions are auto rebalanced through our algorithm.&#x20;
   * Range rebalancing happens automatically based on liquidity distribution, trade volume, and oracle price.
3. **Yield Enhancements**
   * Dynamic fees increase LP earnings in volatile conditions.
   * Arbitrage profits are recycled into the pool.
   * Idle funds are deployed for additional yield (Kamino, Drift, etc.).

### Why It Matters

* **Less price impact** → More swap routes/volume
* **More yield** → From both fees + external yield
* **Less management** → LP once, let GAMMA handle the rest


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.goosefx.io/goosefx-amm/clmm.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
