Skip to content

fix(treasury): sponsorship card counts Morpheus stakes in Staked - #290

Merged
sktbrd merged 1 commit into
r4topunk:mainfrom
sktbrd:fix/sponsorship-tvl-morpheus
Aug 23, 2026
Merged

fix(treasury): sponsorship card counts Morpheus stakes in Staked#290
sktbrd merged 1 commit into
r4topunk:mainfrom
sktbrd:fix/sponsorship-tvl-morpheus

Conversation

@sktbrd

@sktbrd sktbrd commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • User report: the treasury's Sponsorship yield card showed only Morpho vault TVL per rider — Morpheus stakes were invisible ("the orbit is more complete"). Confirmed: Yan showed $2.00 with $22 of Morpheus USDC behind him; Will showed a dash with $31 staked.
  • The per-rider column now prints the athlete's total (vault + Morpheus) — the same figure the orbit node prints — under a header renamed "Staked" (EN) / "Em stake" (PT), and the total row is the graph's own headline total, so the two pages cannot disagree.
  • The yield column stays vault-fee-only deliberately: the fee is the only per-rider-attributable earning; the treasury's MOR share exists only as a graph-level aggregate and is already named in the headline ("Vault fee + MOR rewards"). The rename is what keeps the two columns from being read as a rate.

Changes

  • src/components/treasury/SponsorshipYield.tsxtvl: a.total, total row = graph.total, comments rewritten
  • messages/{en,pt-br}/treasury.json — colTvl/totalTvl relabeled both locales

Test plan

  • tsc / eslint / prettier clean; suite passes
  • Runtime captures EN+PT: Yan $24.00, Will $31 (was dash), Total staked $79.53 == /stake headline

Generated with Claude Code

The per-rider TVL column read vaultTvl (Morpho only), so a rider backed
purely through Morpheus showed a dash here while the /stake orbit lit
him up with $31 — the same two-answers bug 861b390 fixed for the
headline, one table lower. The column now prints the athlete's `total`
(vault + Morpheus, the orbit node's own figure) under a header renamed
to "Staked", and the total row is the graph's headline `total` —
never a second sum. Yield stays vault-fee-only: it is the only
per-rider-attributable earning; the MOR half lives in the headline.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 22, 2026

Copy link
Copy Markdown

@sktbrd is attempting to deploy a commit to the r4to's projects Team on Vercel.

A member of the Team first needs to authorize it.

@sktbrd
sktbrd merged commit 980adf0 into r4topunk:main Aug 23, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant