Skip to content

built Built. This is a decision record, not documentation.

What is still current: All three rollout steps are implemented. Profiles and assistant answers read the linked records; Carry Trades profile links read the registry. The legacy narratives, renderer and chart are removed. PST supply and native-terms follow-ups remain separate; there is no combined registry-and-profile review timestamp.

Landed: Step 1: #1124 (v0.87.0). Step 2: #1145, #1159, #1161 and #1163; all 19 profiles released by v0.92.0 on 2026-10-16. Step 3: #1231 retires the memo system.

Header updated 2026-10-21. The body below is frozen history. All plans.

Asset profiles in the register: decision record (2026-10-12) ​

The asset profile is the expanded row of the Asset profiles table. Until now its content lived in src/data/asset-narratives.ts: three free-text memo sections per asset, written by hand and kept nowhere else. The structural facts those memos restate (what kind of instrument it is, where it is redeemed, what it redeems into, its mint and redeem terms) already live in the token register, so every memo was a second copy of facts the register owns, free to drift from it.

This plan moves the profile into the register and ships the designer's redesign (design/asset-profile-handoff/, layout 1a) on top of it.

Decisions ​

  1. One profile record per profiled asset, keyed (chain_id, address) like every register row, seeded from code and installed by an additive migration (145-asset-profiles.sql), with a runtime overlay from onchain_credit.asset_profiles exactly as the register overlays portfolio_tokens. The record stores only what the register cannot say: yield source, yield mechanics, underlying duration, transparency links, the narrative paragraphs, the loss waterfall layers, the native redemption tile and the issuer's own links. For a bridged copy (PST on Ethereum) it also stores the home network's mint and redeem terms, because the Ethereum row's terms are bridged.
  2. Chips the register can state are derived, never stored: asset class from the instrument kind, native network from the redeem networks, denomination from the book and the underlying, mint and redeem chips from the declared terms (unless they are bridged). A register change moves the chip.
  3. References are the issuer site, the issuer docs and every link a Transparency chip carries, and the last group is derived from the chips, so a link is stored once.
  4. The review date is stored per asset and never shown. A weekly job lists every profiled asset whose review is older than 90 days and sends it through the ops alert path.
  5. Historical performance is one plot with three tabs (APY, Redemption price, TVL), not a dual-axis chart. TVL is the native outstanding supply times the redemption price. Native means the home network and the full supply, never one network's bridged slice. The supply is market data, written daily by a cron (refresh-native-supply.ts), never by the app.
  6. The waterfall is drawn from the layers that exist. No absent-layer variant, no copy about what an asset lacks; chips state what an asset is, never what it is not.
  7. Live executable basis reuses the carry modal through an asset-level quote route, against USDC (USDT where the deepest pool is against USDT) for a USD-book asset and against WETH for an ETH-book asset.
  8. Liquidity is two tiles (native redemption, deepest DEX pool), the market-basis chart, then the paragraphs. The deepest pool is the newest stored pool-depth reading; with no reading the tile renders without a number.

Rollout ​

  1. This PR: structure plus PST. The profile table, loader, derived chips, native supply reader, review alarm, the redesigned expansion and the asset-level quote route. PST is the one asset with a record. Every other asset keeps rendering its old memo through a fallback, and the assistant's asset tool reads the record where one exists and the memo otherwise.
  2. Content batches. Records for the remaining profiled assets, a few per PR, each one a seed row plus a NEW migration carrying its upsert (the procedure below). Each batch moves those assets onto the new layout. Assets whose home network is not Ethereum need their home contract recorded (HOME_NETWORK_CONTRACTS) in the same batch; an asset whose home is Ethereum takes the on-chain supply the yield refresher already stores, with nothing to add.
  3. Retire asset-narratives.ts. Once every profiled asset has a record, the memo fallback, the narratives module and the fixture's narrative references go in one PR.

Changing a record: a new asset, a copy change, a re-review ​

A migration is applied once and never re-run, so a record is never changed by editing the migration that first wrote it; 145 is a frozen snapshot of PST as of step 1. Every change, including the 90-day re-review the weekly alarm asks for (a new reviewedAt, even when nothing else changed), is: edit the record in ASSET_PROFILE_SEED, print its statement with npx tsx scripts/ops/asset-profile-sql.ts <TICKER>, and paste it into a new scripts/sql/NNN-*.sql. The statement is an upsert (ON CONFLICT (chain_id, address) DO UPDATE), so the newest migration is what the table holds and what the page serves; src/data/asset-profiles.test.ts pins the newest migration carrying each record to the seed and fails until the two agree.

Open questions and follow-ups ​

  • TODO (Fred): does the Solana mint's supply include the PST copies bridged to Ethereum (CCIP lock/release on Solana), or exclude them (burn/mint on both sides, in which case TVL must add the Ethereum supply)?
  • TVL source (decided, Fred 2026-10-12). An asset not native on Ethereum takes CoinGecko's reported total supply for its home-network contract; an Ethereum-native asset takes the on-chain total supply already stored. The register's redeem networks decide which, per asset.
  • "Never a fact twice" at runtime (step 2): the derived-chip rule is enforced on the seed and on every database row the loader reads; a stored chip that merely restates a register fact in other words is not caught. Revisit when the content batches add records.
  • Native terms on the register (step 2): PST's Solana mint and redeem terms (gated, queued) are authored in its record because the Ethereum row's terms are bridged. A native-terms column pair on the register would let them derive like every other row's.

First content batch: LSTs (2026-10-13) ​

The batch adds wstETH, rETH, cbETH, wBETH and osETH, through migration 147-lst-asset-profiles.sql. It uses the current shared panel, including #1142's released yield / Classification columns, liquidity prose / tiles columns and chart scales. It changes no panel styles, register terms, pricing rules or quote routes. weETH and ezETH remain on the memo pending a separate restaking batch.

The existing memos supply the introductory, yield and liquidity prose. Their risk paragraphs are grouped by the parties bearing losses, with holders last. Lido's DAO cover fund stays described as discretionary reimbursement after loss, rather than a funded layer ahead of holders. StakeWise's debt repayment and accrual controls remain in the explanations, not drawn as separate pots of loss-absorbing capital. The cbETH and wBETH holder bands each represent direct exposure, not a fictitious additional layer called “staked ETH backing”.

The four structural classification rows derive from the register. The authored fields add yield source, mechanics, open-ended underlying duration, transparency links and the native-redemption summary. Token-contract transparency links are stored once and added to References at serve time. All five records carry the review date 2026-10-13; the date remains private.

Research was limited to targeted issuer checks while adapting the existing prose: Lido's integration guide, Rocket Pool's revenue split, StakeWise's osToken mechanics, Binance ETH staking, and Coinbase cbETH. Coinbase's product page now states 10% commission, correcting the old memo's 25%; its whitepaper is at /cbeth/whitepaper, not the old .pdf URL. StakeWise's current redemption flow also corrects the old memo: holders use the public queue with processing and a 12-hour checkpoint delay, not the disabled position-level redemption mechanism. The rate anchor is the highest-LTV user's approved vault, not necessarily the lowest-yielding vault. The active 91.5% forced-redemption claims are removed; standard-vault liquidation remains at 92%. These corrections also reach the retained fallback memos. Other detailed mechanics carry forward; this was not a fresh investigation of every protocol.

The existing supply rule is unchanged. wstETH, rETH, wBETH and osETH use the stored Ethereum supply; cbETH has offchain issuer redemption and no declared redeem network, so it has no TVL tab. No home-network contract or new supply source is invented. The TVL describes the represented token supply, not the issuer's entire staking business. PST's Accountable/API and bridged-supply question remains a separate follow-up.

LST copy rewrite (2026-10-15) ​

Fred judged the first batch's prose off-style and too long, and asked for it to be redone before more assets move. The five records keep every fact, chip, tile, reference and review date; only the yield, loss and liquidity prose changes, through migration 148-lst-asset-profile-copy.sql.

  • Style: the tone of PST's profile (the asset-profile tone rule): a lede that says what the token is, plain words for each mechanism as it comes up, one worked example with numbers, and the liquidity section closing on the same secondary-market line as PST.
  • Length: each prose section (yield, loss and risks, liquidity) stays within 50 words of PST's. asset-profiles.test.ts pins this for every record, so later batches are held to it too.
  • Section title: "Loss allocation waterfall and risks", on the page and in the assistant's sections.
  • No first loss, no graphic: a record whose only layer is the holders' (PST, cbETH, wBETH) has nothing ahead of them to draw, so the section shows the explanation alone, without a band. This refines decision 6.

Phase three: memo retirement (2026-10-21) ​

All 19 profiled assets have records following the LST, restaking, savings and credit/yield batches. Remove asset-narratives.ts, its page and assistant fallback, the old memo renderer, its unused yield chart and scale helper, and the fixture's narrative references. Carry Trades gets its profile links from the current registry projection rather than from memo keys.

A failed or invalid database profile read still uses the shipped seed of the same record. If a profile cannot be assembled, its row reports that details are temporarily unavailable; the assistant reports unavailable data. Neither path substitutes an older authored memo. Existing record prose, review dates and financial readings are unchanged.

What the dates mean ​

asset_profiles.reviewed_at records when the linked profile was checked against its sources; it drives the weekly 90-day review alarm. asset_profiles.updated_at is the database timestamp of that profile record's last upsert. A registry-only edit does not advance either date. Neither is a combined last-update or full-review date for the registry row, linked profile and historical market data. Phase three does not introduce such a date or reset reviews.

The PST bridged-supply question and the proposed native mint/redemption fields remain the separate follow-ups listed above. Completing the three rollout steps does not resolve them.

Private documentation. creddit.xyz