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
This commit is contained in:
David Adegoke
2025-11-11 20:54:14 +01:00
committed by GitHub
parent edcf6ffe6c
commit c74f0e5f82
+5 -2
View File
@@ -886,8 +886,11 @@ class SendCardState extends State<SendCard> with AutomaticKeepAliveClientMixin<S
selectedAtIndex: sendViewModel.currencies.indexOf(sendViewModel.selectedCryptoCurrency),
items: sendViewModel.currencies,
hintText: S.of(context).search_currency,
onItemSelected: (Currency cur) =>
sendViewModel.selectedCryptoCurrency = (cur as CryptoCurrency),
onItemSelected: (Currency cur) async {
final selectedCurrency = sendViewModel.selectedCryptoCurrency = (cur as CryptoCurrency);
await output.calculateEstimatedFee();
return selectedCurrency;
},
),
);
}