How to Build a DEX Like DODO, Step by Step
DODO prices trades with its Proactive Market Maker, which anchors pools to an oracle price. Learn how PMM works and how to build a DEX like it.
On this page
Short answer
A DODO-like DEX is a decentralised exchange that prices trades with the Proactive Market Maker algorithm, which anchors each pool to an oracle reference price and concentrates liquidity near it. That design lets providers deposit a single token, cuts slippage for traders and suits assets that already trade on larger markets.
What is DODO, and what makes its DEX different?
DODO is a decentralised exchange that launched on Ethereum in August 2020. Its difference is the Proactive Market Maker, or PMM, a pricing algorithm designed by co-founder Mingda Lei that anchors pool prices to an external reference instead of letting a constant-product formula set prices from the pool's own reserves.
Most early automated market makers price trades from the ratio of the two tokens in the pool. DODO instead asks an oracle for the market price, then concentrates liquidity tightly around it. The result is lower slippage for traders and better capital efficiency for providers, at the cost of depending on the oracle.
DODO has grown beyond its first exchange. Its V2 supports public and private liquidity pools, token launches through crowdpooling, routing and governance, and it runs on several EVM-compatible networks. The DODO token is the exchange's governance asset.
How does the Proactive Market Maker work?
The Proactive Market Maker treats liquidity as inventory to manage. When the quantity of an asset falls, the algorithm raises the price quoted for it, expecting to buy the missing inventory back from the market. When the quantity rises, it lowers the price to encourage selling.
The price curve is centred on the oracle price and its shape is set by a slippage factor. A smaller factor makes a flatter curve near the market price, which means larger trades with less slippage but less protection if the price moves. A larger factor makes a steeper curve, with more slippage but wider coverage.
If the pool price drifts from the oracle price, the algorithm guides it back. Trades toward the oracle price get lower slippage than trades away from it, which encourages arbitrageurs to rebalance the pool toward the market consensus. This self-correcting behaviour is what keeps PMM pools close to the wider market.
PMM vs AMM vs order book: which fits?
PMM, constant-product AMM and order book are three ways to price a trade. The right choice depends on whether the asset already has a reliable market price elsewhere.
| Model | Price source | Best for |
|---|---|---|
| PMM | Oracle reference price | Assets with a market price |
| Constant-product AMM | Pool reserves ratio | New tokens, no oracle |
| Order book | Maker orders | Deep, fast markets |
PMM suits tokens that already trade on larger venues, because the oracle gives a trustworthy reference. It also lets providers deposit a single token instead of a pair, which lowers the barrier to providing liquidity.
A constant-product AMM suits new tokens with no price history, because it needs no oracle. An order book suits professional markets where makers want full control over price and size. A DODO-like DEX can combine models: PMM pools for listed assets and a simple AMM for new launches.
What parts does a DODO-like DEX need?
A DODO-like DEX needs five parts. The PMM pool contracts are the core, and the rest of the product exists to make them usable and safe.
- PMM pool contracts. Hold the inventory, read the oracle price, apply the slippage factor and execute swaps. Pool creators set the parameters.
- Oracle feeds. Supply the reference price, usually from Chainlink or a similar provider. The feed must be fresh and hard to manipulate.
- Router. Finds the best path for a trade, splitting it across pools or other venues when that improves the price.
- Pool factory. Lets anyone create a pool with chosen parameters, including private pools where a professional market maker controls the settings.
- Frontend and governance. A trading interface, a liquidity dashboard and a way for token holders to vote on parameters and fees.
Crowdpooling is DODO's token-launch feature and deserves a decision early. It lets a new project raise funds through a pool with set price bounds, which suits launches but adds contract complexity and legal questions. Skip it in the first version unless launches are the product.
How to build it in 6 steps
Build the DEX in order, testing the pricing math on a testnet before any real funds move. The PMM curve is the part that needs the most testing.
- Pick the chain and the oracle. Choose an EVM-compatible chain with a reliable Chainlink feed for your first pairs. The oracle is a dependency, so check its update frequency and history.
- Implement the PMM curve. Write the pricing formula with the slippage factor as a parameter, and test it against many oracle prices and inventory levels.
- Build the pool contracts. Add deposits, withdrawals, swaps and fee collection, with pool creation through a factory contract.
- Add the router. Route trades through the best pool, and add smart routing across venues when it improves the price.
- Build the interface. Show the price, the slippage and the expected output before a user confirms, and warn clearly when the price has moved.
- Audit, then open with limits. Get an external audit of the pool contracts and the oracle handling, fix the findings, and launch with capped pools and a small set of pairs.
How do liquidity, fees and crowdpooling work?
Liquidity in a PMM pool comes from providers who deposit one or both tokens. Because the curve concentrates depth near the oracle price, a provider's capital does more work than the same amount in a constant-product pool, which is why PMM claims much higher capital efficiency for assets with reliable oracles.
Fees are split between providers and the protocol. Providers earn a share of trading fees, and the protocol can take a cut for governance and development. DODO's membership model, vDODO, lets users lock 100 DODO to mint 1 vDODO, which collects membership rewards and governance weight.
Crowdpooling lets a new token launch through a pool with a fixed price range and a funding cap. Buyers deposit during the launch window, and the pool opens for trading once the cap is met or the window ends. It suits teams that want a fair launch without a private sale, but it needs clear rules for refunds if the cap is not reached.
Example (hypothetical): a first-week liquidity pool
Example (hypothetical): a team launches a PMM pool for a token that trades at $2.00 on larger venues. It seeds the pool with 50,000 tokens and $50,000 in stablecoins, sets a small slippage factor for tight pricing, and opens trading.
In the first week, the pool handles 400 trades worth $120,000. Because liquidity sits near the $2.00 oracle price, the average trade slips less than a tenth of a percent. The pool earns $360 in fees at a 0.3% rate, and the providers split it by their share of the pool.
Mid-week the oracle price moves to $2.20 after a market rally. The PMM curve shifts, arbitrageurs rebalance the inventory toward the new price, and the pool keeps quoting near $2.20 without manual action. The team notes the oracle updated 40 seconds after the market move, and adds a check that warns traders when the feed is stale.
What are the common mistakes?
The most common DODO-like DEX mistakes are trusting a stale oracle, setting the slippage factor too aggressively, launching with too many pairs, and skipping the audit.
- Stale oracle prices. If the feed lags, the pool quotes an old price and arbitrageurs drain value. Check feed freshness on every trade and pause when it is stale.
- Too aggressive a curve. A very flat curve gives tiny slippage but leaves the pool exposed when the price moves fast. Start conservative and tighten later.
- Too many pairs at launch. Each pair needs its own oracle, liquidity and monitoring. Two or three liquid pairs beat twenty thin ones.
- Skipping the audit. PMM contracts hold inventory and read oracles, so an unaudited pool is a risk no launch speed is worth.
- No plan for oracle failure. Decide what happens if the feed stops: pause trading, fall back to a second feed, or halt new pools.
Key takeaways
- DODO prices trades with the Proactive Market Maker, which anchors pools to an oracle price
- PMM concentrates liquidity near the market price, so providers can deposit a single token
- A flat curve means less slippage but more exposure when prices move fast
- The oracle is the critical dependency: check freshness on every trade
- Start with two or three liquid pairs and an audited pool before expanding
Frequently asked questions
What is the Proactive Market Maker?
It is DODO's pricing algorithm. Instead of letting a constant-product formula set prices, the PMM pulls a reference price from an oracle and concentrates liquidity near it. That reduces slippage and lets providers deposit a single token instead of a pair.
When did DODO launch?
DODO first deployed on Ethereum in August 2020, built around the Proactive Market Maker designed by co-founder Mingda Lei. It has since expanded to several EVM-compatible networks with V2 pools, routing and governance.
What is the difference between PMM and a normal AMM?
A normal AMM prices trades from the ratio of tokens in the pool, so it needs no oracle but spreads liquidity across the whole price range. PMM uses an oracle price and concentrates liquidity near it, which improves capital efficiency but adds oracle dependency.
Can liquidity providers deposit a single token?
Yes. Because PMM prices from the oracle rather than from a fixed token ratio, providers can deposit one token instead of a pair. That lowers the barrier to providing liquidity, though providers still face price risk.
What is crowdpooling?
Crowdpooling is DODO's token-launch feature. A new project opens a pool with a fixed price range and a funding cap, buyers deposit during the launch window, and trading starts once the cap is met or the window ends.
What is vDODO?
vDODO is DODO's membership token. Locking 100 DODO mints 1 vDODO, which collects membership rewards and governance weight, letting holders vote on protocol decisions.