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
bug: software wallet send can be swiped before the fee is shown #1744
On the send confirmation screen, a software-wallet on-chain send can be swiped while the fee is still being refreshed, so the payment starts before its fee is shown.
SendConfirmScreen enables SwipeToConfirm on uiState.isHardwareFeeReady (SendConfirmScreen.kt:523-525), and AppViewModel.onSwipeToPay / onConfirmPay guard on the same flag. That flag is hardwareWalletId == null || (!onchainFeeUi.isLoading && !onchainFeeUi.requiresRefresh), so it is always true for a software wallet. While onchainFeeUi.isLoading, the fee cell shows its spinner, but the swipe stays enabled.
Found by reading the code during a review pass. I did not reproduce it on a device. The iOS twin now gates the swipe on fee preparation: synonymdev/bitkit-ios#1014
Expected behavior
The swipe stays disabled until the on-chain fee for the selected speed is shown, for software and hardware wallets alike.
Steps to Reproduce
With a software wallet, start an on-chain send and reach the confirmation screen on a slow network, so the entry fee refresh takes a few seconds.
Swipe while the fee cell still shows its spinner.
The payment proceeds without the final fee having been displayed.
Activity