> For the complete documentation index, see [llms.txt](https://docs.rujira.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rujira.network/core-products/rujira-amm/dynamic-concentrated-liquidity-dcl-w-omm.md). Agents can also search and read this documentation through its [MCP server](https://docs.rujira.network/~gitbook/mcp).

# Dynamic Concentrated Liquidity (DCL) w/ OMM

> **Coming soon:** This guide is provisional. DCL is still being tested and modified, and its behavior and parameters may change before release.

### Overview

Dynamic Concentrated Liquidity is an automated market-making strategy on RUJI Trade. It distributes your assets across buy and sell price ladders, adjusting its quotes using THORChain’s enshrined oracle and the selected strategy mode.

Unlike CCL, which operates between fixed price boundaries, DCL does not require you to choose permanent support and resistance levels. Its ladders can adapt as the oracle, available inventory and applicable pricing reference change.

DCL offers two modes:

* **AEP Anchored:** Uses the position’s Average Entry Price (AEP) to constrain buy and sell prices, with optional re-anchoring to help adapt to changing markets.
* **Oracle Market Making:** Quotes around the current oracle without using AEP to constrain prices. ***Highly experimental and risky, this mode is probably not suited for most users***.

Both aim to capture trading margins by providing liquidity. Neither guarantees continuous trading, protection of capital or an overall investment profit.

### Choosing a mode

<table data-header-hidden data-search="false"><thead><tr><th></th><th></th><th></th></tr></thead><tbody><tr><td></td><td><strong>AEP Anchored</strong></td><td><strong>Oracle Market Making</strong></td></tr><tr><td>Pricing reference</td><td>Oracle, constrained by AEP-based margin limits</td><td>Oracle-based margin limits</td></tr><tr><td>Role of AEP</td><td>Constrains eligible buy and sell prices</td><td>Informational accounting datapoint only</td></tr><tr><td>Main objective</td><td>Market making with cost-based trading constraints</td><td>More responsive quoting around the current oracle</td></tr><tr><td>Main trade-off</td><td>Can remain inactive when AEP constraints keep quotes away from the market</td><td>Can sell below acquisition cost as the market falls</td></tr><tr><td>AEP re-anchoring</td><td>Optional sellout and downside controls</td><td>Not applicable</td></tr><tr><td>Status</td><td>Coming soon; under testing</td><td>Highly experimental / risky</td></tr></tbody></table>

#### AEP Anchored

Without re-anchoring, the strategy’s sell prices must cover its current accounting Average Entry Price (AEP) plus the configured margin, after the RUJI Trade protocol fee. Its buy prices are also capped below AEP.

These constraints provide a more conservative approach to trade pricing, preventing sales below the position’s current accounting cost basis. However, they do not prevent inventory from losing market value or guarantee an overall investment profit. They can also materially reduce trading activity when the market moves far from the position’s accounting reference.

Re-anchoring bridges the gap between this cost-constrained approach and Oracle Market Making. It allows AEP to reset at defined events, helping the strategy resume trading nearer the market while retaining an AEP-based constraint between resets.

The trade-off is that a reset can disconnect the reference from the original investment cost and permit sales below it, crystallising capital losses. Re-anchoring increases flexibility, but relaxes the strategy’s cost-based pricing safeguards.

#### Oracle Market Making

Oracle Market Making does not use AEP to decide whether a quote is acceptable. It places its buying and selling ladders around the current oracle, subject to the configured margin, depth and available inventory.

The objective is to maintain more responsive market participation, rather than wait for prices to satisfy a historical cost reference.

> **High-risk experimental mode:** Oracle Market Making is highly experimental and risky, and may not be suitable for regular users. It can buy during a decline and subsequently sell at lower prices. Positive trading margins may be outweighed by inventory losses, adverse execution and protocol fees. It should not be treated as a validated investment strategy or a routine liquidity-provision option.

Neither mode literally trades at all times: both need executable inventory and matching demand.

### Understanding the position

For **BTC/USDC**:

* **Base asset:** BTC—the asset the strategy buys and sells.
* **Quote asset:** USDC—the asset used to price and purchase BTC.
* **Oracle price:** The BTC/USDC reference derived from THORChain’s enshrined oracle prices.
* **Deployable principal:** BTC and USDC available to fund orders.
* **Claimable profit:** Trading-margin income set aside separately and not used to fund orders.
* **Average Entry Price (AEP):** The accounting cost basis of deployable BTC divided by its quantity.

#### Example: creating a position

With BTC initially at **100,000 USDC**, a **10,000 USDC** position using a **50/50 allocation** starts with:

* **0.05 BTC**, worth 5,000 USDC.
* **5,000 USDC**.
* **Initial AEP: 100,000 USDC per BTC**.

Initial AEP uses the oracle price at creation.

> Examples are illustrative, not recommended settings. Fee examples assume a **0.025% AMM maker fee**; the actual fee depends on the pair’s configuration. Prices are shown before FIN price-level rounding. See [RUJI AMM fees](https://docs.rujira.network/core-products/ruji-amm#fees-and-fee-sharing-with-thorchain-base-layer).

### A simple comparison

Suppose the initial AEP is **100,000 USDC**, the oracle falls to **95,000 USDC**, and the trading margin is **0.3%**.

Assuming a fresh ladder, sufficient inventory and the illustrative protocol fee:

| Indicative starting quote | AEP Anchored, without re-anchoring | Oracle Market Making |
| ------------------------- | ---------------------------------- | -------------------- |
| Best buy price            | 95,000 USDC                        | 94,691.32 USDC       |
| Best sell price           | 100,325.08 USDC                    | 95,308.83 USDC       |

AEP Anchored retains the higher selling threshold. Oracle Market Making can sell near the lower oracle—even below the BTC’s acquisition cost.

Downside re-anchoring can reset the AEP Anchored reference to the lower oracle, bringing its selling threshold closer to the market. This deliberately relaxes its original cost constraint.

### Strategy parameters

#### Starting allocation

Starting allocation determines the percentage of deposited value held in BTC and USDC, measured using the oracle.

**Example:** At 100,000 USDC per BTC, a 10,000 USDC deposit contains:

| Starting allocation | BTC deposited | USDC deposited |
| ------------------- | ------------- | -------------- |
| 25% BTC / 75% USDC  | 0.025 BTC     | 7,500 USDC     |
| 50% BTC / 50% USDC  | 0.05 BTC      | 5,000 USDC     |
| 75% BTC / 25% USDC  | 0.075 BTC     | 2,500 USDC     |

More BTC provides more initial selling capacity and greater BTC exposure. More USDC provides more initial buying capacity.

This is a **starting allocation**, not a ratio the strategy continuously rebalances back to. It changes as trades execute.

#### Deposit amounts

The linked deposit fields preserve your selected allocation. Available wallet balances determine the maximum deposit.

**Example:** Your wallet holds **0.2 BTC and 4,000 USDC**, and you select **50/50**.

At 100,000 USDC per BTC, the maximum matching deposit is:

* **0.04 BTC**, worth 4,000 USDC.
* **4,000 USDC**.
* **8,000 USDC total**.

USDC is the limiting balance. The remaining **0.16 BTC** stays in your wallet.

A single-sided allocation requires only the selected asset, but initially provides inventory for only one trading direction.

#### Bid depth

Bid depth controls how far the buying ladder extends below its applicable reference.

In **AEP Anchored**, that reference depends on both oracle and AEP. In **Oracle Market Making**, it is the current oracle.

**Example:** At an oracle of **100,000 USDC**, a **10% bid depth** extends an Oracle Market Making buying ladder down to **90,000 USDC**.

With AEP also at 100,000 USDC, the AEP Anchored terminal bound is approximately **89,977.50 USDC**, reflecting the fee-adjusted reference.

The first buy price is separately constrained by the trading margin.

**Trade-off:** Narrower depth concentrates buying capacity closer to the reference but can use up USDC inventory sooner as prices fall. Wider depth spreads purchases across a larger decline, with less liquidity near the reference.

#### Ask depth

Ask depth controls how far the selling ladder extends above its applicable reference.

In **AEP Anchored**, that reference depends on both oracle and AEP. In **Oracle Market Making**, it is the current oracle.

**Example:** At an oracle of **100,000 USDC**, a **10% ask depth** extends an Oracle Market Making selling ladder up to **110,000 USDC**.

With AEP also at 100,000 USDC, the AEP Anchored terminal bound is approximately **110,027.51 USDC**, reflecting the fee-adjusted reference.

The first sell price is separately constrained by the trading margin.

**Trade-off:** Narrower depth concentrates selling capacity closer to the reference but can sell out BTC inventory sooner as prices rise. Wider depth spreads sales across a larger rally, with less liquidity near the reference.

> Depth is measured from the applicable reference—not necessarily from the first executable order. Indicative oracle-based chart boundaries are not a guarantee of the position’s actual executable range.

#### Trading margin

The same underlying parameter is presented as:

* **Minimum profit** in AEP Anchored mode.
* **Oracle margin** in Oracle Market Making mode.

It sets the required margin against the mode’s pricing reference, after the FIN protocol fee.

**AEP Anchored: Minimum profit**

Before price-level rounding, the indicative starting prices of a fresh ladder are:

```
Best sell price =
MAX(Oracle, AEP × (1 + Minimum profit) ÷ (1 − Protocol fee))

Best buy price =
MIN(Oracle, AEP × (1 − Minimum profit) × (1 − Protocol fee))
```

**Example:** With oracle and AEP at **100,000 USDC**, Minimum profit at **0.3%**, and a **0.025% fee**:

* Indicative best sell: **100,325.08 USDC**.
* Indicative best buy: **99,675.08 USDC**.

The buying ladder is capped at **AEP × (1 − Minimum profit)**, with a further downward fee adjustment.

Without re-anchoring, sells must cover the current accounting AEP plus the margin. After re-anchoring, the constraint applies to the new AEP, which may be below the original investment cost.

**Oracle Market Making: Oracle margin**

The corresponding fresh-ladder starting prices are:

```
Best sell price =
Oracle × (1 + Oracle margin) ÷ (1 − Protocol fee)

Best buy price =
Oracle × (1 − Oracle margin) × (1 − Protocol fee)
```

**Example:** At an oracle of **95,000 USDC**, with the same margin and fee:

* Indicative best sell: **95,308.83 USDC**.
* Indicative best buy: **94,691.32 USDC**.

These prices follow the oracle, regardless of the position’s AEP.

**Trade-off in both modes:** A higher margin requires more favorable prices and may reduce activity. A lower margin places eligible quotes closer to the reference but captures less margin at the closest levels.

> Trading margin is not an overall profit guarantee. Existing ladder consumption can also place the next available quote farther from the reference than these fresh-ladder formulas suggest.

#### Liquidity skew

Liquidity skew controls concentration along each ladder:

* **1×:** Uniform liquidity density.
* **Above 1×:** More liquidity near the start.
* **Below 1×:** More liquidity near the far end.

```
Liquidity density at the end =
Liquidity density at the start ÷ Skew
```

**Example:**

| Skew | Relative liquidity density               |
| ---- | ---------------------------------------- |
| 2×   | Twice as much at the start as at the end |
| 1×   | Equal at the start and end               |
| 0.5× | Twice as much at the end as at the start |

This describes endpoint density. Individual order quantities also depend on price intervals, rounding and remaining inventory.

**Trade-off:** Concentrating liquidity near the start can increase activity around the reference but use inventory sooner. Concentrating it farther away reserves more capacity for larger moves.

#### Yielding versus compounding

Yielding determines how much trading-margin income is set aside for claiming. The remainder stays invested.

* **0% Yielding:** All remains in deployable principal.
* **25% Yielding:** One quarter becomes claimable.
* **50% Yielding:** Half becomes claimable.

**Example:** A sale generates **100 USDC of trading-margin income after the protocol fee**. At 50% Yielding:

* **50 USDC** becomes separately claimable.
* **50 USDC** remains invested, alongside recovered principal.

Claimable income is denominated in the asset received: **USDC after a sale**, and **BTC after a purchase**. The protocol fee is a separate cost paid by the strategy.

In AEP Anchored, this income is measured against AEP. In Oracle Market Making, it is measured against the trade’s oracle reference and can coexist with a loss against acquisition cost.

**Why is Yielding capped at 50% in the interface?**

The planned interface caps Yielding at **50%**, retaining at least half of trading-margin income for compounding. The contract permits up to 100%.

In **AEP Anchored**, retaining buy-side profit as deployable BTC also allows AEP to decrease when purchasing below its reference.

**Example:** A position holds **0.05 BTC** with a **5,000 USDC cost basis**, giving an AEP of **100,000 USDC**.

A buy spends **1,000 USDC including the fee** and receives **0.011 BTC**. Against AEP, 1,000 USDC represents 0.01 BTC, so the additional **0.001 BTC** is accounted for as trading profit.

| Yielding               | BTC profit set aside | Deployable BTC after buying | New AEP        |
| ---------------------- | -------------------- | --------------------------- | -------------- |
| 0%                     | 0 BTC                | 0.061 BTC                   | 98,360.66 USDC |
| 50%                    | 0.0005 BTC           | 0.0605 BTC                  | 99,173.55 USDC |
| 100% — comparison only | 0.001 BTC            | 0.0600 BTC                  | 100,000 USDC   |

At 100% Yielding, this buy does not lower AEP because all additional BTC profit is removed from deployable principal.

In **Oracle Market Making**, AEP does not constrain quotes, so this AEP-adjustment rationale does not govern trading eligibility.

**Trade-off:** More Yielding provides more separately claimable income. More compounding keeps capital working, but that capital remains exposed to market risk.

### AEP Anchored-only controls

These controls do not apply to Oracle Market Making.

#### Sellout re-anchor

When enabled, Sellout re-anchor resets AEP to the current oracle when a sale exhausts the position’s **executable BTC inventory**. A small non-executable remainder may still exist.

**Example:** A position has an AEP of **100,000 USDC** and sells out while the oracle is **110,000 USDC**.

* **Disabled:** AEP remains 100,000 USDC. With the illustrative margin and fee, the buy cap remains approximately **99,675 USDC**.
* **Enabled:** AEP resets to 110,000 USDC. The corresponding buy cap becomes approximately **109,643 USDC**.

The reset allows buying again after a smaller pullback from the higher market level.

**Trade-off:** It can help resume buying in a rising market, but may lead to repurchasing near a market peak.

This is a reset triggered by sellout—not continuous upward tracking while the position remains entirely in USDC.

#### Downside re-anchor

When enabled, Downside re-anchor resets AEP and its accounting cost basis after the oracle falls by the selected percentage below the current AEP.

```
Trigger price = AEP × (1 − Downside threshold)
```

**Example:** With AEP at **100,000 USDC** and a **5% threshold**, the trigger is **95,000 USDC**.

If the reset occurs at that oracle:

* AEP becomes **95,000 USDC**.
* For 0.05 deployable BTC, the accounting cost basis becomes **4,750 USDC**.
* With the illustrative margin and fee, the fresh minimum sell price becomes approximately **95,309 USDC**, rather than 100,325 USDC.

This enables selling after a smaller rebound, but potentially below the original investment cost.

The reset does not itself sell BTC or create a cash payment. It changes the accounting reference and rebuilds the ladders. Further declines can trigger additional resets against the new AEP.

**Trade-off:** A smaller threshold adapts sooner but permits earlier trading below the previous cost reference. A larger threshold preserves that reference longer but may prolong inactivity.

> **Re-anchoring bridges the gap between cost-constrained trading and oracle-following market making. It does so by relaxing the accounting anchor at defined events—not by eliminating risk. Re-anchoring can enable sales below your original entry price and crystallize capital losses.**

### Tightness Factor

Tightness Factor is a read-only indicator of configured depths:

```
Tightness Factor = (1 − Bid depth) ÷ (1 + Ask depth)
```

**Example:** With both depths set to 10%:

```
0.90 ÷ 1.10 = 81.82%
```

Higher values indicate tighter configured depths. It is not a measure of profitability, safety or the live bid–ask spread.

### Important behavior and risks

#### Both modes preserve consumed ladder levels

Consumed levels remain consumed while the same ladder remains applicable. A trade does not automatically refill them.

When applicable bounds change, the affected ladder can be rebuilt using available inventory. Oracle Market Making therefore does not continuously replenish every previously filled quote at an unchanged oracle.

#### AEP does not simply follow the oracle

In AEP Anchored:

* Buys can lower AEP when some buy-side profit remains invested.
* Ordinary sells reduce BTC and associated cost basis proportionally, normally leaving AEP unchanged.
* BTC deposits update AEP using the added BTC’s current oracle value.
* USDC deposits do not change AEP.
* Enabled re-anchoring can reset AEP.

In Oracle Market Making, AEP remains an accounting datapoint, but does not restrict quotes.

#### Positive oracle-margin income can coexist with capital losses

Suppose a position’s BTC has an accounting AEP of **100,000 USDC**, but the oracle falls to **95,000 USDC**.

In Oracle Market Making, a sale removing **0.01 BTC of gross inventory**, including the protocol fee, at the illustrative starting ask receives approximately **952.85 USDC**.

* Against the oracle value of that inventory, **950 USDC**, it records **2.85 USDC of trading-margin income**.
* Against its accounting acquisition cost of **1,000 USDC**, the sale realizes a **47.15 USDC loss**.

Both can be true simultaneously.

> **Oracle Market Making is highly experimental and risky. Claimable income or frequent trading must not be interpreted as evidence of overall profitability. This mode may be unsuitable for regular users.**

#### Why might a position stop trading?

Either mode may become inactive because:

* It has insufficient executable BTC or USDC inventory.
* Its remaining quotes are not competitive.
* The market does not reach eligible prices.
* Matching demand is limited.
* FIN execution is halted or market access is restricted.

AEP Anchored may also become inactive because its accounting reference keeps quotes away from the market.

For example, after selling out, it can remain in USDC if prices continue rising without returning to its buy levels—even with Sellout re-anchor enabled.

#### Overall risks

DCL can lose value, underperform holding the original assets, or accumulate one-sided inventory. Oracle deviations, limited liquidity, adverse selection and chain or application disruptions can affect outcomes.

Re-anchoring and Oracle Market Making may increase responsiveness, but neither guarantees higher trading coverage or better returns. More frequent trading can also mean more fees and more exposure to unfavorable execution.

**Evaluate the whole position—including inventory value, claimable balances, fees and realized losses—not trading income alone.**


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.rujira.network/core-products/rujira-amm/dynamic-concentrated-liquidity-dcl-w-omm.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
