Skip to content

fix: warn on dusty position metrics - #1340

Merged
miohtama merged 1 commit into
masterfrom
fix/dust-position-warning
Jul 29, 2026
Merged

fix: warn on dusty position metrics#1340
miohtama merged 1 commit into
masterfrom
fix/dust-position-warning

Conversation

@miohtama

Copy link
Copy Markdown
Contributor

Why

Dust residuals can make closed position metrics look economically meaningful even when the remaining balance is too small to claim or trade. Position pages need to warn users when metrics may be distorted by this state.

Lessons learnt

Closed positions can end with a non-zero residual quantity and near-zero recorded value without an explicit close trade flag, so the frontend needs a generic residual-value dust signal in addition to explicit dust notes.

Summary

  • Add a dust warning predicate to enriched trading positions.
  • Show a warning alert below the position page heading when the position looks dusty.
  • Rename the position trade table heading from Trades to Rebalances.

@miohtama
miohtama merged commit 720ca99 into master Jul 29, 2026
5 checks passed
@miohtama
miohtama deleted the fix/dust-position-warning branch July 29, 2026 07:21
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