Skip to content

the FOMO card said "#1 on 23 of 11 benchmarks" - #2861

Merged
Flotapponnier merged 1 commit into
devfrom
fix/first-place-count-basis
Oct 7, 2026
Merged

Flotapponnier merged 1 commit into
devfrom
fix/first-place-count-basis

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Your boss flagged /products/fomo as "totally wrong". He is right, and it is mine.

The bug

Two halves of one sentence counting different things:

`#1 on ${p.wins} of ${distinctBenchCount(p.appearances)} benchmarks`

wins is one per chain led — deliberately, and the code says so: "For benches WITH chain dimensions: 1 win per chain led." distinctBenchCount is one per bench. Putting them either side of "of" only worked while the trading benches had no chain axis and a win meant a bench.

Seven chain tabs landed on four of those benches this afternoon, in #2846 and #2857. The numerator multiplied, the denominator did not, and the card went out claiming a count that cannot exist.

The fix

benchesLedCount counts distinct benchmarks the provider leads in any view, aggregate or chain — the basis the sentence already promised.

FOMO   wins (per chain led)        23
       distinct benchmarks         10
       benchmarks led (new basis)   9

card now reads: #1 on 9 of 10 benchmarks

The two other places that use wins keep it: they say "first-place finishes", which can honestly exceed the bench count. They now say "first-place finishes across chains", because a reader who sees 23 finishes and 10 benchmarks will divide them, and two words stop that.

Not in this PR

The same screenshot carries a second complaint: the /hyperliquid leaderboard is locked to 30D. That is a real gap and a separate change — the harness publishes _24h_v2, _7d_v2 and _30d_v2, but HlBuilderRow only carries the 30d fields, so the toggle needs the loader and the type widened, not just a control. Scoped, not started.

typecheck clean, eslint clean.

Two halves of one sentence counting different things. `wins` is one per chain
led, deliberately, so a product topping four chain tabs of one bench earns
four. `distinctBenchCount` is one per bench. Putting them either side of "of"
only worked while the trading benches had no chain axis and a win meant a
bench.

Seven chain tabs landed on four of those benches this afternoon, in #2846 and
#2857. The numerator multiplied, the denominator did not, and the card went
out claiming a count that cannot exist. Mine.

benchesLedCount counts distinct benchmarks the provider leads in any view,
aggregate or chain, which is the basis the sentence already promised. FOMO now
reads "#1 on 9 of 10 benchmarks" against 23 and 11.

The two other places that use `wins` keep it: they say "first-place finishes",
which can honestly exceed the bench count. They now say "first-place finishes
across chains", because a reader who sees 23 finishes and 10 benchmarks will
divide them and the two words stop that.
@Flotapponnier
Flotapponnier merged commit 0aa7b98 into dev Oct 7, 2026
2 checks passed
@Flotapponnier
Flotapponnier deleted the fix/first-place-count-basis branch October 7, 2026 18:57
Flotapponnier added a commit that referenced this pull request Oct 7, 2026
Two halves of one sentence counting different things. `wins` is one per chain
led, deliberately, so a product topping four chain tabs of one bench earns
four. `distinctBenchCount` is one per bench. Putting them either side of "of"
only worked while the trading benches had no chain axis and a win meant a
bench.

Seven chain tabs landed on four of those benches this afternoon, in #2846 and
#2857. The numerator multiplied, the denominator did not, and the card went
out claiming a count that cannot exist. Mine.

benchesLedCount counts distinct benchmarks the provider leads in any view,
aggregate or chain, which is the basis the sentence already promised. FOMO now
reads "#1 on 9 of 10 benchmarks" against 23 and 11.

The two other places that use `wins` keep it: they say "first-place finishes",
which can honestly exceed the bench count. They now say "first-place finishes
across chains", because a reader who sees 23 finishes and 10 benchmarks will
divide them and the two words stop that.
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