Two metadata entries are maintained outside the tracked public stablecoin set for historical PSI and depeg continuity:
ust-terrairon-iron-finance
They live in shared/lib/shadow-stablecoins.ts and are intentionally separated from the tracked stablecoin registry (shared/lib/stablecoins/registry.ts, backed by per-coin files in shared/data/stablecoins/coins/*.json plus shared/data/stablecoins/coins.generated.json).
Purpose
Shadow stablecoins preserve historically important collapse events in systems that would otherwise undercount past systemic stress after an asset is delisted from the public dashboard.
They are used where historical continuity matters:
shared/lib/psi-eligible.tscombines active tracked + shadow assets intoPSI_ELIGIBLE_STABLECOINS, excluding pre-launch and frozen tracked entriesworker/src/cron/detect-depegs.tsandworker/src/cron/compute-dews.tsuse the PSI-eligible setworker/src/cron/stability-index.tsfilters the live cache againstPSI_ELIGIBLE_IDSworker/src/cron/snapshot-supply.tsandworker/src/api/backfill-supply-history.tsuse the PSI-eligible registryworker/src/api/backfill-cg-prices.tsalso needs the PSI-eligible registry so replay-critical shadow price gaps can be repairedworker/src/api/backfill-depegs.tscan backfill shadow assets the same way it backfills tracked assetsworker/src/api/backfill-dews.tscan replay DEWS rows over the PSI-eligible universeworker/src/lib/psi-history-universe.tscentralizes the historical PSI/DEWS replay universeshared/lib/stablecoin-id-registry.tsincludes shadow entries in PSI-inclusive canonical ID resolution; public readable ID resolution excludes shadow-only entries
Current Inventory
ust-terra
llamaId: "3"detailProvider: "defillama"geckoId: "terrausd"- Included in the live DefiLlama-ID registry path via
REGISTRY_BY_LLAMA_ID - Historical PSI replay and live PSI depeg grouping also canonicalize legacy
ust-terra-classicdepeg rows ontoust-terraso shadow supply history and collapse-era depegs join back together
iron-iron-finance
- No DefiLlama stablecoin ID
detailProvider: "coingecko"geckoId: "iron-stablecoin"- Exists mainly for registry/backfill/history continuity; the source file notes that supply history needs manual DB insertion for the peak-collapse period
Public UI Boundary
Shadow stablecoins are not part of the public tracked-set metadata used for dashboard counts, filters, and table inclusion:
ACTIVE_STABLECOINS.lengthdrives public counts in page metadata and copysrc/components/stablecoin-table-logic.tsuses the client registry projection (CLIENT_ACTIVE_IDS/CLIENT_ACTIVE_STABLECOINSfromshared/lib/stablecoins/client-registry.ts) as its default inclusion set- taxonomy/filter pages derive their selectable universe from tracked metadata, not shadow metadata
Operational consequence:
- raw cache-backed surfaces can still contain a shadow asset if the upstream sync emits it
- public list/table UX filters those assets back out by tracked ID
Gotchas
- Do not add a shadow asset to
shared/data/stablecoins/coins/*.jsonunless it should become publicly tracked everywhere - Do not remove a shadow asset without checking PSI, depeg backfill, and supply-history continuity first
- If a shadow asset gains a reliable live source, update both
shared/lib/shadow-stablecoins.tsand the paths that depend onPSI_ELIGIBLE_STABLECOINS
File Index
| File | Role |
|---|---|
shared/lib/shadow-stablecoins.ts | Shadow-asset metadata definitions |
shared/lib/psi-eligible.ts | Active tracked + shadow PSI eligibility registry |
shared/lib/stablecoin-id-registry.ts | Scoped canonical ID / external-ID resolution, with shadow entries only in the PSI-inclusive ID scope |
worker/src/cron/stability-index.ts | PSI computation uses PSI_ELIGIBLE_IDS |
worker/src/cron/detect-depegs.ts | Live depeg detection metadata boundary |
worker/src/cron/compute-dews.ts | DEWS iteration over PSI-eligible assets |
worker/src/cron/snapshot-supply.ts | Daily supply snapshot filter includes PSI-eligible assets |
worker/src/api/backfill-supply-history.ts | Admin supply-history backfill over PSI-eligible assets |
worker/src/api/backfill-cg-prices.ts | Admin historical price-fill over PSI-eligible assets, including shadows |
worker/src/api/backfill-depegs.ts | Admin depeg-history backfill over PSI-eligible assets |
worker/src/api/backfill-dews.ts | Admin DEWS history replay over PSI-eligible assets |
worker/src/lib/psi-history-universe.ts | Historical PSI/DEWS universe selection for active + shadow assets |