# Methodology

How pegproof produces its numbers, and what it does not claim. Everything here is verifiable
against Robinhood Chain itself.

## What is observed

Tokenized-stock contracts issued on Robinhood Chain (chain ID 4663). For each tracked token the collector reads contract
event logs and a small number of `eth_call` reads directly from the chain. No figure comes from a
private feed, an issuer API or any other off-chain source: every figure published is derived from
on-chain state that anyone can re-read. The token page also shows the multiplier Robinhood
publishes next to the on-chain one, as a comparison only (see
[Multiplier from a second source](#multiplier-from-a-second-source)).

Several chains are involved and they are easy to confuse: Robinhood's tokens and every figure
about them in this document live on **Robinhood Chain**. Coinbase's tokenized stocks live on
**Base**; they are read there and described on /coinbase, not here.

<details>
<summary>The five platform addresses</summary>

Five platform addresses anchor the issuance picture:

- emission `0xcfaece2151502da2a21d47234ae1f08618a60a94`, which received the mints up to block
  90,479,585
- emission `0xc5844fc781aefad2f2d9f8a8f0459eac8d50e616`, which receives them from block 92,178,167
- mint and burn contract `0x23e56dfe325da9de90f6e2b1e6f3f5cff76e34c8`, which mints to itself and
  burns from itself from block 117,033,203
- SGOV replicator contract `0x13643b89b19245201b29d556edde5cf18f749c08`, which has minted SGOV to
  itself and burned it from itself from block 101,504,011
- redemption `0xa8553db0049fc6843c0d00d0efc08d31848e3c74`

The two emission addresses are copies of the same contract, and the same account makes the mints to
both, so the second is treated as the issuer's: both are known treasuries for every token that uses
one. The mint and burn contract was given its roles by the admin of Robinhood's role registry on
2026-11-10 (blocks 111,198,217 and 111,198,347), so it is treated as an emission address for every
token: a mint to it or a burn from it is expected, and a transfer out of it counts as issuance. The
SGOV replicator contract got the same two roles from the same admin on 2026-10-22 (blocks 95,361,240
and 95,363,462) and is treated the same way.

</details>

## Who controls: the five questions

pegproof asks every issuer the same five questions and answers them from the issuer's own contracts on-chain,
each answer with the contract, the block or the document it comes from:

1. Who can create tokens?
2. Can the contract be changed?
3. Can tokens be frozen or taken?
4. Who sets the multiplier?
5. Does supply match history?

The first four are about what the contracts allow, read on a day that is shown with the answer. The fifth is
measured: Robinhood's every 10 minutes from the full history (see
[Full-history reconciliation](#full-history-reconciliation)), the other issuers' once pegproof checks them.

Each answer has one of five states, by the same rules for every issuer:

- **Protected, or not possible** (green): the action needs a limit enforced in the contract (an allowance, a rate
  limit, a cap), several parties (a multisig needing 2 or more signatures) or a delay before it takes effect; or
  the contracts cannot do it at all. For the fifth question: every token matches.
- **One key** (orange): one key can do it, and no protected limit was found.
- **Open question** (blue): pegproof saw something it has looked at and cannot explain yet. An open question is
  never red until a check confirms it.
- **Exception** (red): a check confirmed something the issuer's own rule does not allow, with its transactions: a
  multiplier change whose split ratio or date differs, or for which a review found no corporate action; tokens
  minted to an address outside the issuer's emission set; a supply that does not match.
- **Not read yet** (grey).

The colours come from the facts by these rules, never by hand. No answer is a rating of the issuer.

<details>
<summary>How a limit, a multisig or a delay counts</summary>

A limit, a multisig or a delay counts only if it is protected itself: one key that can raise the limit, lower the
threshold or skip the delay at once makes the answer "one key", and the answer still names the limit. An on-chain
announcement of a multiplier change counts only when the key that announces it cannot also make the change take
effect at once.

When an issuer's tokens, chains or contracts differ, the answer takes the most serious state among them
(exception, then open question, then one key, then protected, then not read yet) and says where they differ.

The chain itself is named, not judged, for now: Coinbase's tokens are part of Base, so their code changes with a
Base network upgrade; Robinhood's tokens live on Robinhood Chain. How each chain is upgraded is not read yet.

</details>

## Event classification

Every ingested log is classified into one `kind`. Four of them are issuance-relevant and are the
only ones carried into the aggregated buckets:

| kind | meaning |
|---|---|
| `mint` | supply created from the zero address |
| `burn` | supply destroyed to the zero address |
| `issue` | transfer out of a known treasury or the emission address |
| `redeem` | transfer into the redemption address |

`transfer` — ordinary wallet-to-wallet movement — is deliberately **ignored** by the buckets and
by the size detector. Secondary trading is not issuance, and counting it would make every active
token look anomalous.

## Aggregation

Events are grouped into fixed buckets of 36,000 blocks, which is about one
hour at Robinhood Chain's nominal ~0.1 s block time. Buckets are keyed by block height, not wall-clock time,
so the series never depends on a node's clock. Exact bucket edges are published with the data
rather than being left for a reader to re-derive.

## Full-history reconciliation

About once an hour, every token with a balance snapshot has its whole mint and burn history added
up and compared with its supply at a stated block. Each token is then published in one of four states:

- **reconciles** — the sum equals the supply at block N exactly.
- **does not reconcile** — the sum differs, and the difference (sum minus supply) is published
  next to it.
- **waiting for the ledger** — the ledger has not yet been ingested up to the block of any of the
  token's snapshots (its ledger watermark is below all of them), so nothing is compared rather
  than comparing an incomplete sum.
- **still loading** — a newly listed token whose mint and burn history since launch is still being
  loaded. Until it is in, the sum is short by the supply issued before the loaded history begins,
  so the difference is not a finding and the pages show the token as loading instead. Once the
  history is loaded and its buckets rebuilt, the next hourly check compares it like any other
  token; a difference then is published as **does not reconcile**.

<details>
<summary>How the sum is made</summary>

About once an hour (a check is skipped while the previous one is less than 55 minutes old), every
token that has a balance snapshot has its entire event history re-added and compared with the
total supply of the newest snapshot the ledger has reached: the newest snapshot at or below the
token's ledger watermark. Snapshots are usually taken ahead of the ledger, so this can be an
earlier snapshot than the one behind the figures at the top of the token page. The token page
names that snapshot's block, N, and states the comparison as being with the supply at block N. The sum is every mint minus every
burn in the ledger up to and including block N; the ledger reaches back to the contract's
deployment once the token's history is backfilled. Whole buckets below the bucket that holds
block N come from the aggregated buckets, and only buckets that contain at least one
mint or burn are read, which is exact because every other bucket adds zero to the sum. The mints
and burns from the first block of that bucket through block N are read
event by event. Amounts are summed as exact integers in raw token units, never in floating point
and never by the database.

</details>

## Daily series

Each token's chart has one point per UTC day: the exact supply at a stated block, never an
interpolation.

<details>
<summary>How the daily points are chosen</summary>

Each token's chart is rebuilt once per UTC day from the same buckets, on the first hourly check
after a balance snapshot has been taken that day, which fixes the day's first block. A day's point is the supply at the last bucket edge
before that day's first block, and the block is published with the point, so every point is an
exact ledger figure at a stated block, never an interpolation. A token gets no point for a day
until the ledger has been ingested up to that block, and none before its first mint or burn.

The first block of each day before the collector started recording day boundaries was read once
from the chain. After that, each day uses the lowest snapshot block seen on that day's first
hourly check, so it can fall slightly after midnight.

Shares use the multiplier observed that day. A day without an observation keeps the most recent
earlier one, and a multiplier that is not a plain non-negative integer counts as not observed.
Before a token's first observed multiplier, the earliest observed multiplier is used, and the
chart says from which day it was observed. With no multiplier ever
observed, the line shows token supply. USD points exist only for days with an unpaused
on-chain price.

The full daily list is built first. The home page's sparklines are
the last 30 points of it, taken before any thinning. A series longer than 400 points then keeps every k-th day, counted back from the newest, so the
newest is always kept and pages stay small. On a token's charts, unresolved ledger gaps are drawn as
hatched bands and never bridged; the home page's sparklines are not gap-aware.

</details>

## Status, in three independent axes

A single "healthy / unhealthy" badge would hide exactly the cases that matter, so published status
is always three separate facts:

They are when the balances were last measured, how fully the event ledger covers the last day and
week, and which flags are open. These can disagree, and when they do the disagreement is the
information.

How the collector itself has run is published at [/status](/status): its ticks per UTC day, how
many were ok and how many could not finish, and the integrity incidents opened each day, from the
first day with a recorded tick.

<details>
<summary>The three fields, and the flags</summary>

1. **`state_as_of_block` / `state_as_of_time`** — when the balance figures were last measured.
   `null` means not measured yet, and the pages say so rather than rendering a blank cell.
2. **`ledger_coverage_24h` / `ledger_coverage_7d`** — `complete`, `partial` or `gap`, describing
   how fully the event ledger covers that window. The ledger is compared with the **chain head the
   collector last observed**, not with its own ingestion cursor, so an ingester that has stalled
   cannot report itself complete. `complete` is allowed 36,000 blocks (about one hour) of
   lag behind that head and degrades to `partial` beyond it. A tick that could not read the chain
   head reports `partial` as well, since a ledger that could not be compared with the chain is
   never called complete. `gap` means an unresolved interruption overlaps the window and takes
   precedence over both.
3. **`flags`** — open flags, if any (see below).

These can disagree, and when they do the disagreement is the information: fresh balances with a
`gap` ledger means the snapshot is current but the history behind it is not.

### Flags

| flag | meaning | closes |
|---|---|---|
| `r0a_divergence`, `r0b_divergence` | the R0 check found the event ledger and the re-read chain state disagree for this token | only with a written reason (see Closing incidents) |
| `rebaseline` | a gap in the ledger was declared, or the token's emission or redemption addresses changed in the registry, so balances before and after it are not compared | when the token's next balance snapshot starts a fresh baseline |
| `collector_error` | the latest read of this token failed on pegproof's side; nothing is known to be wrong with the token | by itself, at the next successful read |

A dashboard reading older than two hours is banner-marked stale. That threshold is on the age of
the measurement, never on whether the collector believes itself healthy.

</details>

## Detectors

Six rules run over newly-ingested events. They report what was observed, not who did it: an "unexplained" event is one this project cannot yet account for.

| rule | what it looks for |
|---|---|
| **R0** (`r0a`/`r0b`) | divergence between the event ledger and independently re-read chain state — an integrity check on the collector itself, not on the issuer |
| **R1** | an issuance, redemption, mint or burn whose size is far outside that token's own history |
| **R2** | a mint or burn outside the known emission/redemption address sets |
| **R3** | an outflow from a known treasury to an address this token has never transacted with |
| **R4** | a decrease in the multiplier between consecutive same-era snapshots |
| **R5** | an address receiving 3 or more mints inside a rolling window — a treasury-candidate signal |

<details>
<summary>R1 calibration and the R3 cap</summary>

### R1 calibration

R1 is the rule most able to produce noise, so its thresholds are stated rather than tuned
privately:

- **At least 50 prior events.** Below 50 prior events a token is never flagged. There is no
  sparse-history path; too little history means no opinion, not a cautious guess.
- **A floor of three times the token's previous maximum.** By Popoviciu's inequality the standard deviation of a bounded sample cannot exceed half its range,
  so a 3x-of-maximum floor already subsumes a z > 3 test, without assuming the distribution is
  anything in particular.
- **Rate contract**: at most 50 R1 signals across a replayed week of real traffic, and at most one
  per token per day. This is a published ceiling, checked against replayed weeks of real events.

R3 is capped at 50 qualifying events per tick, so one busy token cannot exhaust the database
budget and silently starve the others.

</details>

## Market calendar

Sessions run 20:00 ET the previous day to 20:00 ET, Monday to Friday. NYSE holidays erase the
whole session, including a holiday's Sunday-evening start. The calendar is a pure function of the
tick timestamp — it never reads a wall clock — so the same inputs always classify the same way.

Market state is published alongside the data because it changes what a quiet period means: no
issuance at 03:00 on a Sunday is expected, the same silence mid-session is not.

## Prices

USD figures are **estimates** and are always labelled as such. The price is read on-chain from
the token's Chainlink Data Feed on Robinhood Chain, at the same block as the supply it
multiplies. The feed for each token is verified on-chain when the feed list is built
(`description()` must name that ticker), and only verified feeds are used. Nothing is read from an off-chain price source.

Supply changes over 7 and 30 days are computed on raw `total_supply`, so a multiplier
adjustment moves no percentage — only minting and burning do. A token counts as grown or
shrunk when its 7-day change exceeds 0.5 percent either way, and as flat
otherwise. A token with less than 7 days of history, or with no supply at either end, is not
counted at all rather than counted as 0%.

<details>
<summary>Feeds, pauses and totals</summary>

- The feed prices one **token**, not one underlying share: the oracle folds the token's
  multiplier into its price. The USD estimate is therefore `total_supply × price`.
- Feeds follow the US equity session (24/5). Every price is published with its feed round time,
  so outside the session the last price stays visible with its age. It is never extrapolated.
- While a token's `oraclePaused()` is true (a corporate action), its price is published as
  paused and it contributes no USD value.
- Tokens without a verified feed carry no USD value, and every total is published with the
  number of tokens it covers (`priced_tokens`).

</details>

## Weekly reports

Each market week gets one report, normally frozen about an hour after the week's close once the
ledger is complete, and never edited; a correction is published as a new report.

<details>
<summary>How a week is closed and frozen</summary>

A market week closes at 20:00 ET on the last trading session of the week. That is normally
Friday. When Friday is an NYSE holiday (Good Friday, for example), the week closes at the
previous trading day's close, and the report names that day. About an hour after the close, once
the ledger is complete for every token, the week's report is frozen. A report is frozen only from a site snapshot
built after the close, and it records the block and time that snapshot was read at. It contains
the headline, totals, movers and every token's figures. If the ledger is still incomplete 40 hours
after the close (around midday Sunday ET after a normal Friday close), the report is frozen
anyway and says that its ledger is incomplete. A frozen
report is never edited. A correction would be published as a new report naming the one it
corrects, and the original stays readable.

</details>

## Closing incidents

An R0 divergence is never closed automatically: it is closed only with a written reason, recorded
with the closure. A `rebaseline` closes when the token's next balance snapshot starts a fresh
baseline, since from then on nothing is compared across it. A `collector_error` is not an
integrity incident: it is pegproof's own read failing, and it closes at the next successful read.
The original detection record is never deleted or edited.

## Registry and look-alikes

The tracked tokens come from the pegproof registry, whose addresses are each checked on Robinhood
Chain. A look-alike is another contract that presents itself as a registry token; every candidate
is reviewed by a person before it is added.

<details>
<summary>How tokens and look-alikes are found</summary>

The tracked tokens come from the pegproof registry
([github.com/xplowdie/rwa-registry](https://github.com/xplowdie/rwa-registry)). Its starting list
is Robinhood's platform listing on rwa.xyz, and every address on it is checked on Robinhood Chain
with `eth_getCode`. A ticker comes from a curated mapping or from the contract table on
docs.robinhood.com, otherwise from the contract's own `symbol()`; a display label is never taken
as a ticker.

A look-alike is another contract on Robinhood Chain that presents itself as a registry token: its
`symbol()` is exactly the registry ticker, and its `name()` is the ticker or contains the
company's name or "Robinhood". A contract whose name carries another tokenized-stock issuer is
never called a look-alike, since it may be that issuer's own product. Candidates are found through
DEX listings, read on-chain and reviewed by a person before they are added. A contract that only
resembles a registry token (another symbol, or a name alone) is catalogued as unclassified, not as
a look-alike. The reviewer can override the rule in either direction: a common word that happens
to equal a ticker stays unclassified, and a contract with the exact ticker and the company's usual
short name (where the registry name is longer, such as "Anthropic" for "Anthropic, PBC Class A
Common Stock") can be classified as a look-alike. Every override says so in that contract's
evidence. A token page lists the look-alikes the registry links to it. A contract deployed after the last registry build appears only once the registry is
rebuilt, so a page without look-alikes does not mean none exists.

</details>

### Other issuers' lists

Some issuers publish their own contract lists for Robinhood Chain. pegproof keeps a dated copy of
each, checks every listed address on-chain, and does not check those tokens' supply.

<details>
<summary>How other issuers' lists are used</summary>

Some issuers publish their own contract lists for Robinhood Chain. pegproof keeps a dated copy of
such a list (today Ondo Global Markets', from docs.ondo.finance/addresses, copied 2026-10-28) and
checks each listed address on-chain: it has contract code, and `name()` and `symbol()` return what
the list says. These tokens are not in the registry and pegproof does not check their supply; the
address lookup and their pages say which issuer lists them. The one exception to the rule above: a
contract whose `name()` and `symbol()` are exactly those of an address on such a list, but which is
not on the list itself, is a look-alike of that issuer's token. The copy is dated, so a token the
issuer added later is unknown here until the copy is renewed.

</details>

### Multiplier from a second source

Once a UTC day the multiplier Robinhood publishes is compared with the one on the contract. A
difference is shown with both values and is not counted as a finding.

<details>
<summary>How the two multipliers are compared</summary>

Once a UTC day the collector reads the token list Robinhood publishes (the data behind the
contract table on docs.robinhood.com) and stores, for every registry token, the current multiplier
and any pending multiplier it lists. The token page compares that current value with the latest
on-chain `uiMultiplier()`. When the two differ by at most one part in a million of the on-chain
value, the page says they match. Otherwise it shows both values and the day of the check, and does
not count it as a finding: the list and the contract can be out of step for a while around a
corporate action, and every figure on the page uses the on-chain value. A pending multiplier is
shown as information only. A token the list does not carry, or one without an observed on-chain
multiplier, gets no comparison.

</details>

## What this project does not claim

- **It does not verify backing.** Whether shares exist in a custodian account is off-chain and
  outside what any on-chain observer can see. This project measures issuance, not collateral.
- **It is not financial advice,** and the detectors do not assert wrongdoing.
- **Absence of a flag is not a clean bill of health.** The detectors cover specific, stated
  behaviours; anything outside them is unobserved, not cleared.
- **Published figures carry their own as-of context.** A number quoted without its
  `state_as_of_*` and coverage fields has lost the part that says how current and complete it is.

## Verifying independently

Every token page shows the exact `eth_call`s behind its figures, so any reader can re-run them
against a public Robinhood Chain RPC and compare.
