Skip to content

fix: prevent arithmetic overflow crash#97

Open
raulriera wants to merge 3 commits intorefactor-new-serverfrom
fix-crash-arithmetic-overflow
Open

fix: prevent arithmetic overflow crash#97
raulriera wants to merge 3 commits intorefactor-new-serverfrom
fix-crash-arithmetic-overflow

Conversation

@raulriera
Copy link
Collaborator

This pull request focuses on improving the safety and correctness of currency calculations and comparisons, particularly for high-rate currencies that could previously cause UInt64 overflows. The changes introduce overflow checks, safer comparison logic, and comprehensive tests to ensure robust handling of large values and different decimal precisions.

var canDismissSheet: Bool = false

private var fee: ExchangedFiat {
var fee: ExchangedFiat {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was preventing the tests from running (I really need to start running the tests in Xcode Cloud)

@raulriera raulriera requested a review from bmc08gt February 13, 2026 15:39
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