Skip to content

fix: +Inf handling in CountLeaderboard + fmtValue - #1740

Merged
Flotapponnier merged 2 commits into
devfrom
fix/inf-leaderboard
Aug 3, 2026
Merged

fix: +Inf handling in CountLeaderboard + fmtValue#1740
Flotapponnier merged 2 commits into
devfrom
fix/inf-leaderboard

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Summary

  • fmtValue for count unit: +Inf now returns "∞" instead of "Infinity" or NaN
  • CountLeaderboard: bar width uses only finite values for max, so Lighter's 336h bar renders correctly instead of 0% (Inf/Inf = NaN was breaking it); +Inf venues get 100% bar width (visually "worst")
  • gapRatio typed as null when infinite so TypeScript is happy; Gap stat shows "-" instead of "Infinity×"
  • Harness static.go: no-exit venues now emit +Inf instead of 999999 sentinel

Prerequisite for perp-exit-custody bench to display correctly once harness data lands.

@Flotapponnier
Flotapponnier merged commit f6f9a54 into dev Aug 3, 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