Skip to content
UnityNodesPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

45 Commits

Folders and files

Repository files navigation

Kyrionym

Tells you whether the tokenized asset you hold is really what its name says.

Paste a wallet address or a symbol. Every tokenized stock, ETF or metal token in it gets one verdict, and the evidence row under it. It is for people who hold tokenized stocks, ETFs or gold, and for the portfolio trackers that show them a value.

Live: https://kyrionym.unitynodes.com (pick a demo wallet or type GOLD, NFLX, KLAC).

Demo video (1:40): https://youtu.be/JkBNfhvG-p0

DoraHacks BUIDL: https://dorahacks.io/build/52024

Entry for Build with CMC: API Hackathon, Round 2, track Real World Assets.

The ledger page with a live wallet: 157 positions, the Netflix Ondo token flagged as an unreliable price with its weekend and weekday levels, five Ondo tokens shown as another unit

What it finds

CoinMarketCap lists every wrapper token of an asset side by side: Tether Gold, PAX Gold and Comtech Gold under Gold; Ondo, Backed, Robinhood and others under Netflix. Nothing in the response says what one token of each wrapper stands for. Kyrionym compares the wrappers with each other, today and over 30 days of daily closes, and says which ones are not what their name suggests, and whether the dollar value a tracker shows for them can be trusted.

Audit of all 915 tokenized assets with tokens on 23 Nov 2026 (1,820 wrapper tokens, 751 with 30 days of history; full list and the issuer checks in docs/AUDIT.md):

Verdict Wrappers Example
Unreliable price 2 NFLXon (Ondo) is 10 Netflix shares. On CoinMarketCap it reads about 10x the other Netflix tokens on every Saturday and Sunday and about 4x on weekdays: its price mixes venues that quote one share with venues that quote ten, so the value a tracker shows for it is wrong most of the week. CRWDX (Backed) is priced at about $93 while every venue CoinMarketCap lists for it trades near $212.
Other unit 11 Information, not a fault. CGO (Comtech Gold) is one gram of gold at $116.31 where the others are one troy ounce at $3,610.78, steady on 30 of 30 days. KLACon, SNDKon and NOWon (Ondo) kept their share count through stock splits: one token is 10, 8 and 5 shares. CoinMarketCap prices them per token, so the value of a holding stands.
Stale 8 TSLA on Hyperliquid Assets at $201.96 while the other Tesla tokens sit near $360, with no trades.
Same unit 535 XAUt and PAXG within 0.1% of the gold consensus.

The live page counts today's prices, so its numbers can differ from this snapshot by a wrapper or two. TQQQX (Backed) is the usual one: it sits right at the 25% edge of the consensus (about $35.85 against $44.91) and its own 30-day price ranges from half the others to level with them, so it moves between same unit and unreliable price as the quotes tick.

Every flagged wrapper was checked against what its issuer says one token is and against the stock split filings; docs/AUDIT.md lists the results.

Two findings sit under the verdicts:

  • CoinMarketCap's own average_tokenized_price mixes units. For KLA it read $1,074.75 while the KLA wrappers sat at about $134 and $1,355: the average describes no token anyone holds.
  • A one-day snapshot is not enough. On a Saturday NFLXon looks like a clean tenfold unit; on a Wednesday it looks like a fourfold one. Kyrionym only calls another unit when the ratio held over the month, and calls a price unreliable when the token is off the others today and its own price keeps jumping.

Who already noticed what

Other entries in Round 1 and Round 2 also flag gold priced per gram or share ratios between wrappers. What Kyrionym adds: a wallet address in and a verdict per held position out, and telling a real unit difference (steady for 30 days) from a broken price (jumping between levels).

The verdicts

Verdict Meaning
SAME_UNIT Within 25% of the consensus and trading.
THIN Within 25% of the consensus, no trades in the last 24h.
DIFFERENT_UNIT Off the consensus by a factor that held: 31.1035 grams per troy ounce, 32.1507 troy ounces per kilogram, 28.3495 grams per avoirdupois ounce, 10, 100, 1000, or a whole share ratio from 2 to 20. Shown as "other unit": information, not a fault.
UNRELIABLE_PRICE Off the consensus today; even against its steadiest peer the ratio was more than 25% off its usual level on 3 or more days, and the token's own close jumped more than 25% day to day at least twice. A weekday and weekend split is named when it shows.
STALE Off the consensus with no unit that explains it, and no trades.
DIVERGENT Off the consensus with no unit that explains it, while trading.
NO_PEERS, NO_PRICE, NO_CONSENSUS Nothing to compare with, no price from CoinMarketCap, or the wrappers split into price levels with equal support.

How it decides:

  1. Consensus: the price level most priced wrappers of the asset agree on within 25%; ties go to 24h volume. CoinMarketCap gives no price for the underlying, so wrappers are compared with each other.
  2. Thirty days: each wrapper's daily close is divided by the close of each consensus peer. The steadiest pair is kept, a peer that trades is preferred, and the evidence names it with its issuer.
  3. A unit is a ratio that held, matched on its usual level. Unreliable needs the token to be off the others today, the off days, and the token's own jumps, so a healthy wrapper is not blamed for a noisy peer and a frozen price is called stale.
  4. The wallet: balances are read straight from public RPC on 13 EVM chains (one Multicall3 call per chain) and from Solana (SPL Token and Token-2022), and matched to wrapper tokens by the contract addresses CoinMarketCap lists for each token. Where a Solana token scales the balance a wallet shows (a split multiplier) and CoinMarketCap prices the raw token, the value uses the raw balance.

The engine is pure functions in src/engine, with tests on synthetic cases and on real CoinMarketCap responses in test/fixtures.

CoinMarketCap endpoints used

Endpoint What for Where
GET /v5/real-world-assets/map every asset id, filtered to those with tokens src/cmc/client.ts
GET /v5/real-world-assets/quotes/latest each wrapper's price, volume, market cap, issuer and crypto_id src/cmc/client.ts, src/cmc/quotes.ts
GET /v5/real-world-assets/info the underlying's listing: exchange, CIK, website src/cmc/meta.ts
GET /v5/real-world-assets/issuers/list issuer directory for the scorecard src/cmc/meta.ts
GET /v5/real-world-assets/issuers one issuer and all its tokens src/cmc/meta.ts
GET /v2/cryptocurrency/ohlcv/historical 30 daily closes per wrapper, by crypto_id src/cmc/history.ts
GET /v2/cryptocurrency/info contract addresses of every wrapper on every chain, to match a wallet src/cmc/info.ts

Not used: market-pairs/list and the RWA quotes/historical (both 403 error_code 1006 on our plan; wrapper history comes from the cryptocurrency OHLCV endpoint instead).

The call, from src/cmc/client.ts:

const batches = await Promise.all(
  chunk(rwaIds, QUOTE_BATCH).map(async (ids) =>
    parseQuotesLatest(await request("/v5/real-world-assets/quotes/latest", { rwa_id: ids.join(",") })),
  ),
);

A real response, trimmed to three gold wrappers (full fixture, 23 Nov 2026):

{
  "data": {
    "rwa_assets": [
      {
        "rwa_id": 1,
        "symbol": "GOLD",
        "average_tokenized_price": 3621.9137366785817,
        "tokens": [
          { "symbol": "PAXG", "price": 3623.8548644813186, "crypto_id": 4705, "issuer_name": "Paxos", "volume_24h": 112971864.91822982 },
          { "symbol": "XAUt", "price": 3622.0073475693666, "crypto_id": 5176, "issuer_name": "Tether Holdings", "volume_24h": 205058728.5469323 },
          { "symbol": "CGO", "price": 116.67823358686388, "crypto_id": 20245, "issuer_name": "Comtech Gold", "volume_24h": 747959.125758149 }
        ]
      }
    ]
  },
  "status": { "error_code": "0", "credit_count": 1 }
}

And what Kyrionym makes of the CGO line (from GET /api/check?q=GOLD):

{
  "symbol": "CGO",
  "issuer": "Comtech Gold",
  "price": 116.16440809921976,
  "verdict": "DIFFERENT_UNIT",
  "unit": { "kind": "named", "factor": 31.1035, "label": "grams per troy ounce" },
  "history": { "days": 30, "offDays": 0, "ownJumps": 0, "peerSymbol": "XAUM", "peerIssuer": "Matrixdock" },
  "evidence": "$116.16 vs consensus $3,609.17 (5 of 7 priced wrappers): ×1/31.07, matches grams per troy ounce: 1 token is 1 gram where the others are 1 troy ounce; against XAUM (Matrixdock) it sat at its usual ×1/31.16 on 30 of 30 days (range ×1/31.46 to ×1/31.05). CoinMarketCap prices it per token, so balance times price still gives the value of a holding"
}

Credits

Work Cost
All quotes (map is free) 4 credits, refreshed every 5 minutes on demand
30 days of history for every comparable wrapper about 225 credits, refreshed once a day (closes are daily)
Contract addresses of every wrapper 19 credits, refreshed daily
A wallet or symbol check 0 credits: served from the caches above

Where the API got in the way

26 items, each hit live, in docs/FRICTION.md. The ones that shaped the product:

  • No field says what one token of a wrapper stands for (grams, ounces, ten shares after a split), and the per-asset average mixes them.
  • One token's price can blend venues that quote different units: NFLXon reads ten shares on weekends and about four on weekdays.
  • tradfi_markets lists only Binance for 902 of 915 assets, so whether the underlying trades elsewhere cannot be measured.
  • An unknown path returns HTTP 200 with error_code 500 "The system is busy", and one unknown id fails a whole /v2/cryptocurrency/info batch.

Run it

Needs Node 22.18 or newer (TypeScript runs through Node's type stripping, no build step) and pnpm.

pnpm install
CMC_API_KEY=your-key pnpm start

Then open http://127.0.0.1:8787. The key is read only from the CMC_API_KEY environment variable. PORT and HOST are optional; behind a reverse proxy set TRUST_PROXY=1 with HOST on loopback.

Without the page:

CMC_API_KEY=your-key pnpm check 0x9642b23Ed1E01Df1092B92641051881a322F5D4E
CMC_API_KEY=your-key pnpm check KLAC
CMC_API_KEY=your-key pnpm audit:cmc

Tests and types (no key needed):

pnpm test
pnpm typecheck

199 tests; line coverage of src is 97%.

HTTP API

Route Returns
GET /api/check?q=<wallet or symbol> verdict per position of a wallet, or per wrapper of an asset
GET /api/summary counts across all assets and verdicts
GET /api/series?ids=<crypto ids> daily closes for up to 20 wrappers
GET /api/issuers, GET /api/issuers/<id> issuer scorecard and one issuer's tokens
GET /api/health liveness

Wallet checks are limited to 20 per minute per client, everything else to 240 (it is served from cache). If CoinMarketCap fails, the last good data is served marked stale for up to an hour, then the API answers 502.

Layout

src/engine   verdicts: consensus, units, 30 day history, evidence text (pure)
src/cmc      CoinMarketCap client and response parsers
src/wallet   chain list, address index, EVM multicall and Solana readers
src/app      caches, rate limit, service, HTTP routes, static page
web          the page (HTML, CSS, JS; GSAP from cdnjs, fonts from Fontshare and JetBrains Mono under OFL)
scripts      CLI check, audit, and the go/no-go spike
docs         audit, friction log, spike notes, CMC RWA notes

Limits

  • Wrappers are compared with each other. Without a price for the underlying, a wrapper that agrees with the others is "same unit", not "correctly priced".
  • A steady ratio says the unit differs, not why. For the flagged wrappers the why was checked by hand (see docs/AUDIT.md); a token trading at a discount, like PreStocks SPACEX (5 shares, about 19% below), reads as the nearest whole ratio.
  • Wallets are read on 13 EVM chains and Solana. Wrappers listed on TON, Stellar and a few other chains are reported as not checked. Public Solana RPC is rate limited and can refuse very large wallets.

Credits

Built for Build with CMC: API Hackathon, Round 2, by Unity Nodes. All code in this repository was written for this entry; the 25% threshold and the first notes on unit mismatches came from an earlier Unity Nodes project, Nemea, but no code was copied from it. Data: CoinMarketCap API. License: MIT.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages