mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
Generic fixes (#1619)
* update fee rates * periodically update fees * minor enhancements * minor enhancements * some improvements add solana node * handle empty hex as null * minor improvement * fix imports * fix app hanging on splash screen * update app versions temporarily disable sign/verify for hardware wallets
This commit is contained in:
parent
7c9b72483a
commit
c59d39d42d
23 changed files with 89 additions and 92 deletions
|
@ -113,6 +113,8 @@ abstract class EVMChainWalletBase
|
|||
int? gasBaseFee = 0;
|
||||
int estimatedGasUnits = 0;
|
||||
|
||||
Timer? _updateFeesTimer;
|
||||
|
||||
bool _isTransactionUpdating;
|
||||
|
||||
// TODO: remove after integrating our own node and having eth_newPendingTransactionFilter
|
||||
|
@ -263,6 +265,7 @@ abstract class EVMChainWalletBase
|
|||
void close() {
|
||||
_client.stop();
|
||||
_transactionsUpdateTimer?.cancel();
|
||||
_updateFeesTimer?.cancel();
|
||||
}
|
||||
|
||||
@action
|
||||
|
@ -297,7 +300,7 @@ abstract class EVMChainWalletBase
|
|||
|
||||
await _updateEstimatedGasFeeParams();
|
||||
|
||||
Timer.periodic(const Duration(seconds: 10), (timer) async {
|
||||
_updateFeesTimer ??= Timer.periodic(const Duration(seconds: 30), (timer) async {
|
||||
await _updateEstimatedGasFeeParams();
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue