diff --git a/mobile-app/lib/features/main/screens/high_security/high_security_get_started_screen.dart b/mobile-app/lib/features/main/screens/high_security/high_security_get_started_screen.dart index 1dcb6a4f..92ffb4a0 100644 --- a/mobile-app/lib/features/main/screens/high_security/high_security_get_started_screen.dart +++ b/mobile-app/lib/features/main/screens/high_security/high_security_get_started_screen.dart @@ -12,17 +12,6 @@ import 'package:resonance_network_wallet/features/styles/app_text_theme.dart'; import 'package:resonance_network_wallet/providers/high_security_form_provider.dart'; import 'package:resonance_network_wallet/providers/wallet_providers.dart'; -final highSecurityEstimatedFeeProvider = FutureProvider.family((ref, account) async { - final highSecurityService = ref.read(highSecurityServiceProvider); - // Invent fake parameters for estimation - final feeData = await highSecurityService.getHighSecuritySetupFee( - account, - account.accountId, // Use self as dummy guardian - const Duration(days: 14), // Fake duration - ); - return feeData.fee; -}); - class HighSecurityGetStartedScreen extends ConsumerWidget { final Account account; const HighSecurityGetStartedScreen({super.key, required this.account}); diff --git a/mobile-app/lib/providers/wallet_providers.dart b/mobile-app/lib/providers/wallet_providers.dart index 99c68c0d..451d52ec 100644 --- a/mobile-app/lib/providers/wallet_providers.dart +++ b/mobile-app/lib/providers/wallet_providers.dart @@ -117,9 +117,19 @@ BigInt _calculatePendingOutgoing(List pendingTransactio return totalOutgoing; } +// fetch high security config final highSecurityConfigProvider = FutureProvider.family((ref, account) async { - final service = ref.watch(highSecurityServiceProvider); + final service = ref.read(highSecurityServiceProvider); return service.getHighSecurityConfig(account.accountId); }); -// Deprecated legacy history providers removed in favor of unified pagination +final highSecurityEstimatedFeeProvider = FutureProvider.family((ref, account) async { + final highSecurityService = ref.read(highSecurityServiceProvider); + // Invent fake parameters for estimation + final feeData = await highSecurityService.getHighSecuritySetupFee( + account, + account.accountId, // Use self as dummy guardian + const Duration(days: 14), // Fake duration + ); + return feeData.fee; +});