Skip to content

fix: income by pct txns value#352

Merged
amliu-jumptrading merged 1 commit into
mainfrom
amliu/fix-income-by-pct-txn
Jun 9, 2026
Merged

fix: income by pct txns value#352
amliu-jumptrading merged 1 commit into
mainfrom
amliu/fix-income-by-pct-txn

Conversation

@amliu-jumptrading

@amliu-jumptrading amliu-jumptrading commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

The Income Distribution by Percent Txns bar tooltips were showing incorrect income values because they were using percentage values instead of lamport values.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the “Income Distribution by Percent Txns” tooltip showing incorrect income values by ensuring the chart data uses lamport totals (per percentile band) rather than normalized percentage shares.

Changes:

  • Update percentileSpread to return absolute income per percentile band (bandSum) instead of share-of-total.
  • Remove now-unneeded total normalization inside percentileSpread, relying on the bar component to compute percentages for display.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@amliu-jumptrading amliu-jumptrading merged commit 6effba0 into main Jun 9, 2026
3 checks passed
@amliu-jumptrading amliu-jumptrading deleted the amliu/fix-income-by-pct-txn branch June 9, 2026 16:50
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.

4 participants