Update estimated fee on currency change (#2644)

* refactor: Optimize gas fee calculations for Base chain transactions * feat: Added an abstract method for priority fee calculations in EVMChainWallet class, and implemented it across the evm wallets. * fix: Estimated fee on send screen for base wallet different from fee on swipe to send bottomsheet * fix: Update currency selection to calculate estimated fees upon selection in SendCard widget

David Adegoke committed Nov 11, 2025 at 20:54 UTC c74f0e5f8264874e896da46374ff92fe8cf42daa
1 file changed +5 -2
lib/src/screens/send/widgets/send_card.dart
+5 -2
@@ -886,8 +886,11 @@ class SendCardState extends State<SendCard> with AutomaticKeepAliveClientMixin<S
886 selectedAtIndex: sendViewModel.currencies.indexOf(sendViewModel.selectedCryptoCurrency),
887 items: sendViewModel.currencies,
888 hintText: S.of(context).search_currency,
889 - onItemSelected: (Currency cur) =>
890 - sendViewModel.selectedCryptoCurrency = (cur as CryptoCurrency),
889 + onItemSelected: (Currency cur) async {
890 + final selectedCurrency = sendViewModel.selectedCryptoCurrency = (cur as CryptoCurrency);
891 + await output.calculateEstimatedFee();
892 + return selectedCurrency;
893 + },
894 ),
895 );
896 }