Skip to content

Conversation

@raulriera
Copy link
Collaborator

This pull request introduces several improvements and bug fixes around balance appreciation calculations, the bonding curve logic, and UI handling for appreciation display. The most significant changes include making cost basis non-optional and defaulting to zero, updating the bonding curve to clamp oversell scenarios (matching Android behavior), and ensuring appreciation is only shown when meaningful. Additionally, the bonding curve logic now uses higher-precision arithmetic for consistency across platforms.

}

private var shouldShowAppreciation: Bool {
appreciation.amount.decimalValue >= 0.01
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Adding a little wiggle room here because appreciation could be REALLY small (281 quarks as I write this comment). So only display values around 0.01

@raulriera raulriera requested a review from bmc08gt February 1, 2026 20:31
@raulriera raulriera merged commit d09024e into refactor-new-server Feb 2, 2026
2 checks passed
@raulriera raulriera deleted the fix-sell-estimation-precision branch February 2, 2026 14:45
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.

3 participants