WIP: Draft: feat(frontend): available-supply CR, protocol-leg haircut, gated Key Ratios (#16) #34

Closed
PlasticDigits wants to merge 0 commits from 16-feat-frontend-treasury-available-supply-accounting-protocol-token-cr-haircut-and-gated-color-tiers into master
PlasticDigits commented 2026-08-24 00:18:42 +00:00 (Migrated from gitlab.com)

Summary

  • Haircut UST1 / USTR / wrap LP legs out of the CR numerator (isCrEligibleLeg is other only) so protocol tokens cannot inflate collateralization.
  • Issuance cards are now + Outstanding − CMM-owned = Available Supply; CR denominator is UST1 available supply (fail-closed if inventory cannot be certified).
  • Key Ratios render numbered tiles and named RED/YELLOW/GREEN/BLUE copy only when every CR-relevant price is loaded; otherwise the body is exactly prices not loaded, cannot display key ratios.
  • Skills (#11/#14/#16) plus ECONOMICS / ARCHITECTURE / CONTRACTS / DEPLOYMENT are updated so UST1/USTR-in-CR is no longer the invariant.

Closes #16.

Test plan

  • /treasury: raw UST1 / USTR / cLUNC / cUSTC are not asset rows; LP rows still appear.
  • UST1/USTR and UST1/cUSTC show display NAV with crUsd = 0; UST1/SpaceUSD (or vFDUSD) CR counts the external leg only.
  • Issuance cards show + Outstanding / − CMM-owned / Available Supply; UST1 available = outstanding − spot − LP claims.
  • Independent CR check: (non-protocol spot USD + LP other NAV) / available UST1 × 100 matches the page when prices are complete.
  • Throttle CEX / missing ALPHA or vFDUSD: Key Ratios is only prices not loaded, cannot display key ratios.
  • When prices are complete: named tier + swap / rewards / system copy; ∞ is BLUE; footnote says status display only.
  • cd frontend && npm test green.

Closes #16

## Summary - Haircut UST1 / USTR / wrap LP legs out of the CR numerator (`isCrEligibleLeg` is `other` only) so protocol tokens cannot inflate collateralization. - Issuance cards are now `+ Outstanding − CMM-owned = Available Supply`; CR denominator is UST1 available supply (fail-closed if inventory cannot be certified). - Key Ratios render numbered tiles and named RED/YELLOW/GREEN/BLUE copy only when every CR-relevant price is loaded; otherwise the body is exactly `prices not loaded, cannot display key ratios`. - Skills (#11/#14/#16) plus ECONOMICS / ARCHITECTURE / CONTRACTS / DEPLOYMENT are updated so UST1/USTR-in-CR is no longer the invariant. Closes #16. ## Test plan - [ ] `/treasury`: raw UST1 / USTR / cLUNC / cUSTC are not asset rows; LP rows still appear. - [ ] UST1/USTR and UST1/cUSTC show display NAV with `crUsd = 0`; UST1/SpaceUSD (or vFDUSD) CR counts the external leg only. - [ ] Issuance cards show + Outstanding / − CMM-owned / Available Supply; UST1 available = outstanding − spot − LP claims. - [ ] Independent CR check: `(non-protocol spot USD + LP other NAV) / available UST1 × 100` matches the page when prices are complete. - [ ] Throttle CEX / missing ALPHA or vFDUSD: Key Ratios is only `prices not loaded, cannot display key ratios`. - [ ] When prices are complete: named tier + swap / rewards / system copy; `∞` is BLUE; footnote says status display only. - [ ] `cd frontend && npm test` green. Closes #16
PlasticDigits (Migrated from gitlab.com) closed this pull request 2026-08-24 00:19:03 +00:00
PlasticDigits commented 2026-08-24 00:19:04 +00:00 (Migrated from gitlab.com)

Closed: --related-issue pointed this MR at GitLab's auto-generated empty issue branch instead of 16-feat-treasury-available-supply-cr. Reopening from the implementation branch.

Closed: --related-issue pointed this MR at GitLab's auto-generated empty issue branch instead of 16-feat-treasury-available-supply-cr. Reopening from the implementation branch.

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
code/ustr-cmm!34
No description provided.