You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a6c47f7
Browse filesBrowse the repository at this point in the historyBrowse files
fix(withdrawal): resolve fee currency mismatch in TransactionReceipt
Convert the server fee (always USD) to the user's entry currency in the
ViewModel before passing it to the receipt composable. This prevents
Cannot subtract different currencies crashes for non-USD users.
- Add entryRate to WithdrawalViewModel.State, dispatched from observeEntryRate()
- Add feeInEntryCurrency and netTransferAmount computed properties
- Use convertingToUsdIfNeeded in TransactionReceipt for token estimation
- Fix OnWithdraw handler to use pre-computed netTransferAmount
- Fix preview fees to match their balance currencies
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
Copy file name to clipboardExpand all lines: apps/flipcash/features/withdrawal/src/main/kotlin/com/flipcash/app/withdrawal/internal/components/TransactionReceipt.kt
Copy file name to clipboardExpand all lines: apps/flipcash/features/withdrawal/src/main/kotlin/com/flipcash/app/withdrawal/internal/confirmation/WithdrawalConfirmationScreen.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,7 @@ private fun WithdrawalConfirmationScreenContent(
0 commit comments