Twinpool
Open a pool
Token and SDK

SDK, Quote Both, MCP

Pool keys

hooks  0xa93F33BEF2192D54b57865Db6b43Fe18424aE088
fee    0x800000 (dynamic)
WHYPE/USDC   currency0 0xb47c4C8F73F009CC0C0d3f92B388d13E293F0B65  currency1 0xbA876237B0F021A6c6D852d6c26E107997cC5E81  tickSpacing 10
KNTQ/USDC    currency0 0xb47c4C8F73F009CC0C0d3f92B388d13E293F0B65  currency1 0xe45a355d9e9cAd2aD85F2d03E3eE3102A036acF0  tickSpacing 60
MONTRA/USDC  currency0 0x063F7Cc5339f92a5FD7BaF3D22233044FdA1F327  currency1 0xb47c4C8F73F009CC0C0d3f92B388d13E293F0B65  tickSpacing 100

viem

import { createPublicClient, http, parseAbi } from "viem";
const client = createPublicClient({ transport: http("https://rpc.elysium.kinetiq.xyz") });
const key = { currency0: "0x063F7Cc5339f92a5FD7BaF3D22233044FdA1F327", currency1: "0xb47c4C8F73F009CC0C0d3f92B388d13E293F0B65", fee: 0x800000, tickSpacing: 100, hooks: "0xa93F33BEF2192D54b57865Db6b43Fe18424aE088" };

// quote: Uniswap's v4 Quoter on Elysium, through the hook
const [out] = await client.readContract({
  address: "0x379F556c5a748BD7Cc9baF0F7A344094Ac1814f5",
  abi: parseAbi(["function quoteExactInputSingle(((address,address,uint24,int24,address),bool,uint128,bytes)) view returns (uint256,uint256)"]),
  functionName: "quoteExactInputSingle",
  args: [[key, true, 10n ** 21n, "0x"]],
});

// swap: TwinRouter (approve the input token to the router first)
// swap(key, zeroForOne, amountIn, minOut, sqrtPriceLimitX96 (0 = none), deadline)

// bid: SeatAuction.bid(poolId, rentPerHour, deposit), USDC 6 decimals, approve USDC to the auction first
// challengeDrift: SeatAuction.challengeDrift(poolId, snapA, snapB)
// fee now: TwinHook.quote(key, zeroForOne, trader)

TwinRouter is a plain v4 router: aggregators and the Universal Router can route these pools like any other v4 pool. Only TwinRouter can name the Seat holder.

HTTP

GET /api/twins                                     every pool, both prices, gap, Seat
GET /api/quote?pool=montra-usdc&side=sell&amount=1000   Quote Both
GET /api/tape                                      the event tape

MCP

A keyless MCP server over streamable HTTP at /api/mcp. Tools: twins, gap, quote_both, seat, bid_calldata.

{ "mcpServers": { "twinpool": { "url": "https://<site>/api/mcp" } } }

Foundry fork tests

The unit tests run against the real PoolManager, MONTRA and USDC on an Elysium fork:

forge test --fork-url https://rpc.elysium.kinetiq.xyz --match-contract TwinTest

A machine-readable summary is at /llms.txt.