Skip to main content

DEX

RMB Chain ships Uniswap V2, Uniswap V3, the Universal Router (v1.6.0), and Permit2 — all deployed from the official audited bytecode. The pair/pool init code hashes are byte-for-byte identical to Ethereum mainnet, so any Uniswap interface fork, SDK, router, or aggregator works by configuring the chain ID and addresses — no SDK hash patching required.

The Universal Router is the canonical swap entrypoint: it aggregates V2 + V3 liquidity in a single execute call and supports gasless ERC20 approvals via Permit2 (sign once, no per-swap approve transaction).

Contracts

ContractAddressExplorer
v2Factory0x0310B4DEC0C9548962efcB8e3d112a27bc038dBEview ↗
v2Router020xf7F19B0D45b2334054B0159F07e60eDA43e6E4cCview ↗
v3Factory0xe05a3C33957fA19A447ecc97F304bfC46d5c8c77view ↗
v3PositionManager0x4652008e7fCF38ad002030D87D2e9d49Cf5a1805view ↗
v3Router0x51Bf06928a89cfda68b4059F91a1C001972B7e3Bview ↗
v3Quoter0xd93F5a11013748752FE6485AC9179646aB6C3320view ↗
universalRouter0x643B427a2858E86821FCD60862121e8d0d07D472view ↗
permit20xe4fB1Db4fb118443C6545F8B92fbe409eB7217fCview ↗

The Universal Router needs two init-code hashes to compute pair/pool addresses on the fly. They are part of the deployment record (not addresses, so they are not in the table above):

FieldValue
pairInitCodeHash (V2)0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f
poolInitCodeHash (V3)0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54

Tokens:

ContractAddressExplorer
WMO0xbC5d9726C7AA7A70Ad1fD7a3a77b96613374670Eview ↗
tUSDT0x6759658909Df6147e85B84B3ff33b2ED84E5722Eview ↗
tUSDC0x148320a569f85d935661D4E6b44d475ac31AF583view ↗
tBUSD0x24743E8AC7B8dA2a7218E6d6C6618f74ADbadc3Bview ↗

Swap with the SDK (Universal Router + Permit2)

@mochain/sdk wraps the whole flow — best-route quoting (single hop or two hops via WMO), the one-time Permit2 approval, the EIP-712 signature, and the execute call:

import { MoClient } from '@mochain/sdk';
import { parseUnits } from 'viem';
import { privateKeyToAccount } from 'viem/accounts';

const account = privateKeyToAccount(process.env.PRIVATE_KEY as `0x${string}`);
const client = MoClient.testnet({ account });
const { stables } = client.addresses;

// Inspect the route the SDK picked (V2/V3, single or multi-hop).
const route = await client.swap.routeExactIn({
tokenIn: stables.WMO,
tokenOut: stables.tUSDT,
amountIn: parseUnits('1', 18),
});
console.log(route.label, route.amountOut); // e.g. "V3(3000)" 998312...

// Execute via the Universal Router. The SDK approves Permit2 + signs once,
// reuses the allowance afterwards, and applies 0.5% slippage by default.
const { hash, amountOutMin } = await client.swap.exactInUniversal({
tokenIn: stables.WMO,
tokenOut: stables.tUSDT,
amountIn: parseUnits('1', 18),
slippageBps: 50,
});
console.log('swap tx', hash, 'min out', amountOutMin);

Python (mochain) mirrors the same flow:

from mochain import MoClient

client = MoClient.testnet(private_key=PRIVATE_KEY)
stables = client.addresses["stables"]
res = client.swap.exact_in_universal(
stables["WMO"], stables["tUSDT"], 10**18, slippage_bps=50
)
print(res["hash"], res["amountOutMin"])

V2 vs V3

V2V3
Liquidityfull-rangeconcentrated
Fee tiers0.30% fixed0.05% / 0.30% / 1%
Best forsimple poolscapital-efficient LPs

Try it

Open the Swap UI to swap, add liquidity, and inspect pools.

Next steps