diff --git a/lib/services/mixins/fusion_wallet_interface.dart b/lib/services/mixins/fusion_wallet_interface.dart index b70d99c03..fe49fa7c6 100644 --- a/lib/services/mixins/fusion_wallet_interface.dart +++ b/lib/services/mixins/fusion_wallet_interface.dart @@ -456,11 +456,17 @@ mixin FusionWalletInterface { }, ); - int fuzeCount = fusionInfo.rounds; + int fuzeCount = 0; _stopRequested = false; - while (fuzeCount > 0 && !_stopRequested) { - fuzeCount--; + while (!_stopRequested) { + if (fusionInfo.rounds > 0) { + if (fuzeCount >= fusionInfo.rounds) { + _stopRequested = true; + } + } + + fuzeCount++; // refresh wallet utxos await _updateWalletUTXOS();