Skip to content

fix: move loadBenchFromBlob out of perp-venue-context (fixes /perp 500) - #1723

Merged
Flotapponnier merged 5 commits into
devfrom
fix/perp-cost-slope-ignoring-notional
Aug 2, 2026
Merged

fix: move loadBenchFromBlob out of perp-venue-context (fixes /perp 500)#1723
Flotapponnier merged 5 commits into
devfrom
fix/perp-cost-slope-ignoring-notional

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Summary

Root cause

Adding a server fetch import (bench-blob) at module level in perp-venue-context.ts caused bundling issues on Vercel when the module was evaluated at request time with real env vars. The fix keeps all data fetching in the page-level components.

Test plan

  • /perp/gains returns 200
  • /perp/hyperliquid returns 200
  • bench cards show on /perp/[slug] pages when cohort data is available

🤖 Generated with Claude Code

Both chains were excluded by the 2026-07-03 long-tail sweep for
having ≤2 keyless providers. Re-audit 2026-08-02 confirms Thirdweb
now supports both, restoring 3 clean no-key endpoints each.

Kava (chain 2222): kava-official + drpc + thirdweb
Zora (chain 7777777): zora-official + drpc + thirdweb

Touches: harness config.go, chains.ts, provider-registry.ts, 2 bench YAMLs.
Filter p50=0 (no data) from summary stats, fix range to show ascending
best→worst, fix gap ratio to use trailer/leader for lower-is-better.
@Flotapponnier
Flotapponnier merged commit 32c3382 into dev Aug 2, 2026
1 check failed
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