Skip to content
Active development. APIs and on-chain layouts may change. Follow progress on GitHub →
M Moby Market
v0.1 · Rust workspace · MIT-licensed · Solana-native

Finally, a trading stack built for whales.

Moby Market is the open-source Solana infrastructure for executing nine and ten-figure orders without front-running, slippage, or strategy leakage. OTC matching, TWAP/VWAP execution, zero-knowledge privacy pools, and intent-based solvers — all in audit-ready Rust.

Target slippage
< 0.1%
Confirmation p99
< 400ms
Throughput
1,000+ ord/s
License
MIT
moby-trading / src / twap.rs
// 100M SOL unwind, 48h window, anti-detection on
let order = TWAPOrder {
    trader,
    token_in: SOL,
    token_out: USDC,
    total_amount: 100_000_000,
    time_window: 48 * 3600,
    num_splits: 288,
    randomness_factor: 42,
    price_deviation_limit: 25,
    min_output_per_interval: _,
};

submit_intent(order).await?;
// → 0.08% realised slippage
// → routed across 12 venues
// → zero observable pattern
The stack

Seven primitives, one execution surface

Every feature exists because retail-grade DeFi loses money for whales. Each one is a real Rust crate in the workspace, not a marketing bullet.

Trustless OTC block clearing

On-chain escrow accounts let two desks settle nine-figure trades atomically without trusting a centralised matcher and without surrendering custody the way a CEX OTC desk demands. Partial fills, dark-pool mode, and RFQ flows are all native primitives — not bolt-ons. This is how a tokenized-RWA issuer or institution moves a block without printing it to the public price.

TWAP & VWAP with anti-detection randomness

Execution algorithms slice parent orders into hundreds of randomised child orders timed against natural market volume. A tunable randomness factor (0–100) defeats pattern detection by adversarial bots.

Zero-knowledge privacy + selective disclosure

Pedersen-committed amounts, stealth addresses, and a choice of Groth16, PLONK, STARKs, or Bulletproofs. Strategy stays private from competitors while compliance stays provable to auditors via selective disclosure — the exact combination a tokenized-RWA issuer or regulated fund needs to trade on-chain without doxxing positions.

Intent-based solver competition

Post a constrained trading intent — say what you want, not how to route it — and a network of solvers competes via commit-reveal to execute it. On-chain reputation rewards solvers who fill at the tightest price with the least leakage. This is the intent-native, atomically-composable execution model institutional flow is converging on in 2026.

Smart routing across Solana DEXs

Liquidity is aggregated across Serum, Raydium, Orca, Phoenix, Lifinity, and custom AMMs. Up to four-hop routes and dynamic split execution adapt mid-flight to liquidity shifts.

Cross-chain atomic settlement

CrossChainOrder primitives integrate Wormhole and LayerZero so a single order can settle across Solana, Ethereum, Arbitrum, and Base with target sub-five-minute finality. Today the bridge primitives live inside moby-trading; they graduate to their own crate before mainnet.

Formally verified, audit-ready Rust

Anchor 0.29 on solana-program 1.16, with release builds enforcing overflow checks, LTO, and single-codegen-unit determinism. Critical paths target formal verification rather than bug bounties alone.

How it fits together

A controller program plus five specialised crates

The Cargo workspace is intentionally small. Each crate owns one concern; the controller orchestrates.

moby-types

Shared structs — TradingIntent, OTCEscrow, TWAPOrder, VWAPOrder, PrivateTransaction.

moby-math

Fixed-point arithmetic, big-int helpers, Pedersen commitments. Built on rust_decimal and num-bigint.

moby-oracle

Pyth / Switchboard / Chainlink aggregation with TWAP staleness checks.

moby-trading

TWAP, VWAP, intent processing, smart routing across Serum, Raydium, Orca, Phoenix, Lifinity. Hosts the cross-chain primitives (Wormhole, LayerZero) until they break out into their own crate.

moby-privacy

Groth16 / PLONK / STARKs / Bulletproofs verification, Pedersen commitments, stealth addresses, and confidential-transfer plumbing.

The landscape

How Moby Market compares

Honest summaries of the venues whales already use. Each card links to a detailed comparison.

From the engineering blog

Notes on execution, privacy, and MEV

Long-form pieces written by the team and the contributor network.

FAQ

Answers for the questions whales actually ask

If yours isn't here, open an issue or reach out — answers get folded back into the docs.

Is Moby Market open source? +

Yes. The full Rust workspace — including the OTC, execution, privacy, oracle, and trading crates — is MIT-licensed and lives at github.com/cryptuon/mobymarket. The on-chain programs and the off-chain Rust services are both auditable.

Which chain does it run on today? +

The reference implementation targets Solana via Anchor 0.29 and solana-program 1.16. Cross-chain order primitives (CrossChainOrder) integrate Wormhole and LayerZero so settlement can extend to Ethereum, Arbitrum, and Base.

How does Moby Market beat Uniswap-style slippage on a $50M trade? +

Three mechanisms. TWAP/VWAP shred the parent order into hundreds of timing-randomised children. Smart routing splits across Serum, Raydium, Orca, Phoenix, and Lifinity. The OTC marketplace lets the entire block clear bilaterally without ever touching a public pool.

What stops MEV bots from sandwiching my execution? +

Solver submissions use a commit-reveal scheme, intent payloads can be routed through private mempools, and stealth-mode orders are mixed with other traders so that observers see noise rather than a coherent strategy.

How private is "private"? +

Amounts are hidden by Pedersen commitments. Sender and receiver addresses are masked by stealth addresses on both sides. Privacy pools enforce a minimum anonymity set (default 100) and a configurable withdrawal delay so timing analysis fails.

Can institutions meet compliance requirements while staying private? +

Yes. The compliance module supports selective disclosure: a trader can prove accreditation, jurisdiction, or KYC status without revealing identity or strategy. Auditors get a verifiable trail; competitors get nothing.

What does it cost? +

The protocol is free to use at the smart-contract level. The Rust workspace is MIT-licensed, so self-hosted deployments cost only Solana network fees. There is no protocol fee captured by the project itself; market makers and solvers price their own spread directly into RFQ and intent fills.

How does the solver network avoid centralisation? +

Solvers stake collateral, build on-chain reputation across executed intents, and compete in commit-reveal auctions. Poor performance and griefing burn reputation; the design intentionally rewards correctness, not scale.

Why does tokenized-RWA execution need infrastructure like this? +

Tokenizing an asset — a treasury bill, a credit tranche, a balance-sheet position — is now well-understood. The unsolved problem is trading in and out of those positions at size without market impact or information leakage. A public AMM broadcasts every order and moves the reference price; a CEX OTC desk reintroduces custody and counterparty trust. Moby Market is the execution leg in between: OTC block clearing and TWAP/VWAP shredding keep size off the public price, while ZK privacy keeps the rebalance confidential and selective disclosure keeps it auditable.

How is Moby Market different from a CEX OTC desk? +

A CEX OTC desk solves market impact by taking the other side off-book, but you settle by trusting their custody, their solvency, and their discretion with your flow. Moby Market keeps the same impact protection — bilateral, block-sized clearing — but settlement is atomic and on-chain through trustless OTCEscrow accounts. You never surrender custody, and amounts and counterparties stay private via Pedersen commitments and stealth addresses rather than a desk that has seen your book.

How does Moby Market fit the 2026 shift to intent-based execution? +

The market is converging on intents: a trader declares what they want — size, tokens, constraints, privacy — and a competitive solver network figures out how to fill it. Moby Market is intent-native. A TradingIntent is a first-class on-chain object; solvers compete via commit-reveal with on-chain reputation, and OTC, TWAP, VWAP, and cross-chain settlement are all fill strategies a solver can reach for. That aligns the stack with intent-based, atomically-composable execution rather than fixed routing.

Can a regulated fund or RWA issuer actually use this in production? +

Not yet at real size — Moby Market is pre-mainnet. The design targets exactly this use case: selective disclosure lets a fund prove accreditation, jurisdiction, and KYC status to an auditor without revealing identity or strategy to competitors. Before real institutional or RWA flow settles on it, the production-viability gates in the roadmap must be met: independent security audits, liquidity and venue partnerships, ZK-proof performance inside Solana compute limits, solver reliability, compliance-control review with a regulated design partner, and production-grade monitoring.

Explore the site

Everything, one hop away

The full picture lives across a handful of focused pages. Start wherever your question is.

Stop bleeding alpha to retail-grade tooling.

Read the Rust workspace, run it against devnet, and bring your size on-chain. The whole stack is MIT-licensed — pay zero to use it, pay only if you want our team in the room.