Dodoex PMM links token quotes to inventory through its price curve
Dodoex PMM raises a token’s quoted price as its pool inventory falls, provided its price curve uses a positive slippage factor and other pricing inputs stay fixed. That factor, k, sets the strength of the inventory response. PMM stands for Proactive Market Maker. Its quotes also depend on the guide price, trade size, and pool design. Understanding those inputs explains why a repeated swap request can return a different amount even when its token pair stays unchanged.
· last updatedIn short: A pool’s slippage factor sets price sensitivity, while a swap’s slippage tolerance sets an execution boundary.
Inventory pressure changes the quoted exchange rate
With a positive k and unchanged pricing parameters, declining inventory raises the PMM price of the scarce token. That adjustment encourages trades that replenish the depleted asset by making it more valuable to the pool. Replenishment requires someone to trade; a higher quote doesn’t itself replace missing tokens.
Token direction and price units
A higher price for the output token means each unit costs more of the input token. Keeping the input amount constant can therefore reduce the output shown for a purchase. Reversing the pair reverses the exchange-rate units, so the statement that a quote rose doesn’t identify which token became scarcer.
Inventory targets and pool balances
The V1/V2 PMM model measures balances against target inventory. A target describes the exposure around which the pool’s curve balances; equilibrium doesn’t require equal market values on both sides. The relevant imbalance concerns a token’s balance relative to its own target. Raw quantities of different tokens use different units, so their numerical size alone says little about balance.
The EVM implementation uses liquidity supply and consumption; it doesn’t place a separate replenishment order after every swap.
Pool designs require different readings of a quote
A pool’s identity determines which pricing details apply to its quote. DODO V1, V2, and V3 use PMM, while DODO AMM V2 and DODO AMM V3 use separate automated market maker (AMM) designs. Within V2, the pool type also matters. A private pool gives its creator control over parameters that can change the terms of later trades.
| Pool design | Pricing structure | Quote-relevant condition |
|---|---|---|
| DODO V1 | Oracle-guided PMM | Guide-price updates can move quotes. |
| DODO Vending Machine (DVM) | V2 PMM for long-tail tokens | Inventory affects the configured curve. |
| DODO Private Pool (DPP) | V2 PMM with creator-controlled parameters | The creator can adjust pricing parameters. |
| DODO Stable Pool (DSP) | V2 PMM for stablecoin pairs | A stablecoin peg alone doesn’t fix execution prices. |
| DODO V3 | Multi-asset PMM | Buy and sell liquidity are separate. |
| DODO AMM V3 | Concentrated AMM liquidity | Chosen price ranges determine liquidity placement. |
DODO AMM V2 also follows the AMM family, with its own trading-fee parameter. Its fee setting and AMM V3’s liquidity ranges describe different controls from PMM’s inventory-sensitivity factor.
The slippage factor controls inventory sensitivity
Holding the guide price and relative inventory position constant, a larger k makes a PMM curve more sensitive to inventory changes. A smaller positive k concentrates liquidity more closely around the guide price.
Flatter pricing near the guide price
A flatter curve supports more trading near its central price before the exchange rate moves as much. Available capital provides greater depth around that chosen price. This concentration explains PMM’s capital efficiency, while the pool’s actual inventory limits how much it can supply. A finite trade can still move across different prices along the curve.
The guide price and k perform different jobs: one anchors pricing, while the other controls the inventory adjustment.
The constant-price boundary
At k = 0, inventory changes don’t move the curve price while the guide price stays fixed. At k = 1, this PMM curve has the constant-product AMM form. Values between those boundaries concentrate liquidity more tightly around the guide price than that AMM curve. A particular pool’s configured value determines its actual inventory sensitivity.
Guide prices and inventory ratios explain different movements
For positive base inventory below its target, the V1/V2 two-token model uses
P = i * (1 - k + k * (B0 / B)^2)
. Here, i is the guide price, B is current base inventory, and B0 is its target. P expresses the marginal base-token price in quote-token units. The ratio compares the same token’s current and target quantities, so a smaller B increases the inventory adjustment when k is positive.
When positive quote inventory falls below its target, the corresponding relationship is
P = i / (1 - k + k * (Q0 / Q)^2)
. Q and Q0 describe current and target quote inventory. With positive k, quote-token scarcity lowers P because the quote token becomes more expensive relative to the base token. At equilibrium, P equals i. A change in i can move prices even when token balances stay unchanged.
These relationships describe the V1/V2 pair model. DODO V3 separates buy and sell liquidity, so its multi-asset pricing needs its own state construction.
Liquidity concentration leaves market exposure with the provider
Concentrating liquidity changes pricing near the guide price; it doesn’t make inventory immune to market moves. A provider’s holdings can change as traders exchange one asset for another, and those holdings can gain or lose market value. Fee income may offset losses, depending on trading activity and fee settings. A low-impact quote therefore describes an exchange at a particular pool state. It doesn’t establish that supplying the pool will outperform holding the tokens.
Routing and execution limits explain other quote changes
DODOX can draw on external pools and aggregator quotes alongside DODO liquidity. A different route can change the quoted amount without changing a particular PMM pool’s settings. Pool trading fees also affect the offered token amount, while network gas remains a separate execution cost. Comparing repeated quotes isolates inventory effects only when the pool, token direction, input amount, guide price, curve parameters, and fee treatment remain consistent. A routing change breaks that comparison.
Slippage tolerance controls the price difference that a swap will accept. It doesn’t change k or flatten the underlying curve. Raising that tolerance permits a wider execution range; it doesn’t improve the pool’s exchange rate. A direct PMM pool quote describes one pool’s terms. An aggregated DODOX quote may reflect several liquidity sources and their applicable trading costs, making it a different basis for judging the offered swap.
Common questions about Dodoex PMM
Where can an integration read a V2 pool’s current PMM state?
A V2 pool’s getPMMState function exposes its current pricing state, including the guide price, K, inventories, inventory targets, and balance state. K is the contract field for the slippage factor k. PMMHelper also provides pool-state information alongside token and fee details. These values describe a particular pool state, rather than a permanent quote for future swaps.
Can a single V2 swap cross the pool’s equilibrium point?
A V2 swap that replenishes a depleted token can reach equilibrium and continue onto the opposite side of the curve. The pricing code distinguishes amounts that stop before the target, reach it exactly, or pass it. Passing the target changes the branch that prices the remainder within the same swap calculation.
Which fee input can make V2 quotes differ between trader addresses?
A V2 pool query can apply a trader-dependent maintainer fee, so different trader addresses can receive different outputs from an otherwise matching pool state. The pool’s getUserFeeRate function accepts a user address and returns LP and maintainer fee rates. A fee comparison therefore needs the address used for the quote, as well as matching trade inputs.
Does token approval reserve the PMM price shown in the interface?
An ERC-20 approval gives a spender an allowance; it doesn’t reserve a PMM quote or execute the swap. Pricing still follows the relevant pool state when the trade executes. A wallet’s approval confirmation therefore doesn’t establish that the exchange has completed or that its earlier price remains available.
Is multiplying a V2 mid-price by the input enough to reproduce its swap quote?
A starting PMM mid-price generally isn’t enough to calculate a finite V2 swap’s output. The calculation follows the curve across the inventory change and applies the pool’s fees to the calculated output. Even a constant-price curve leaves fees, available inventory, and token units to account for.