Skip to content

fix(tokens): stabilize token list sort order#772

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/token-list-sort-stability
May 26, 2026
Merged

fix(tokens): stabilize token list sort order#772
bmc08gt merged 1 commit into
code/cashfrom
fix/token-list-sort-stability

Conversation

@bmc08gt
Copy link
Copy Markdown
Collaborator

@bmc08gt bmc08gt commented May 26, 2026

Sort by rounded nativeAmount with deterministic address tiebreaker to prevent visual rearranging from sub-cent rate and supply fluctuations.

  • Remove stateFlow from combine to eliminate feedback loop
  • Move rate dispatch to separate observer
  • Sort by nativeAmount.rounded() so tokens within the same display cent compare equal and fall through to the address tiebreaker

Sort by rounded nativeAmount with deterministic address tiebreaker to
prevent visual rearranging from sub-cent rate and supply fluctuations.

- Remove stateFlow from combine to eliminate feedback loop
- Move rate dispatch to separate observer
- Sort by nativeAmount.rounded() so tokens within the same display
  cent compare equal and fall through to the address tiebreaker

Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
@bmc08gt bmc08gt self-assigned this May 26, 2026
@github-actions github-actions Bot added type: fix Bug fix area: tokens Token accounts, balances, token info and removed type: fix Bug fix labels May 26, 2026
@bmc08gt bmc08gt added the type: fix Bug fix label May 26, 2026
@bmc08gt bmc08gt merged commit 3886cc8 into code/cash May 26, 2026
3 checks passed
@bmc08gt bmc08gt deleted the fix/token-list-sort-stability branch May 26, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tokens Token accounts, balances, token info type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant