Skip to content

Conversation

@jonathanchw
Copy link
Collaborator

Fix Realunit Balance and Chart Calculations

Changes

  • Fix CHF balance calculation: Use current price instead of stale historical valueChf snapshot values
  • Fix balance chart: Calculate CHF as balance * currentPriceChf for accurate historical display
  • Fix price history chart: Ensure proper number type conversion with decimal precision
  • Fix REALU display: Correct balance formatting in user screen
  • UI fix: Remove overflow issue from realunit-user screen

Impact

Balance CHF values now match current calculations and display correctly in both the summary and historical chart.

@jonathanchw jonathanchw requested a review from Danswar November 19, 2025 17:02
Copy link
Collaborator

@Danswar Danswar left a comment

Choose a reason for hiding this comment

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

The graph for the balance CHF in the user screen is not working correctly.

Here is the graph in develop and in your branch

Image Image

@jonathanchw jonathanchw requested a review from Danswar November 19, 2025 20:54
Copy link
Collaborator

@Danswar Danswar left a comment

Choose a reason for hiding this comment

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

please remove the unused variables

@jonathanchw jonathanchw requested a review from Danswar November 20, 2025 01:24
@Danswar Danswar merged commit afe05a1 into DFXswiss:develop Nov 20, 2025
1 check passed
jonathanchw added a commit that referenced this pull request Nov 20, 2025
[NO-TASK] Fix: Realunit Balance and Chart Calculations (#744)
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.

2 participants