diff --git a/lib/application/pool/dex_pool_calculation.dart b/lib/application/pool/dex_pool_calculation.dart index 02152960..c8a0c506 100644 --- a/lib/application/pool/dex_pool_calculation.dart +++ b/lib/application/pool/dex_pool_calculation.dart @@ -93,7 +93,7 @@ Future _estimateStats( await aedappfm.sl.get().getTransactionChain( {pool.poolAddress: ''}, request: - ' address, chainLength, validationStamp { ledgerOperations { unspentOutputs { state } } }', + ' validationStamp { ledgerOperations { unspentOutputs { state } } }', fromCriteria: fromCriteria, orderAsc: false, ); diff --git a/lib/ui/views/pool_list/components/pool_list_item.dart b/lib/ui/views/pool_list/components/pool_list_item.dart index 5ba478ec..c7ee252d 100644 --- a/lib/ui/views/pool_list/components/pool_list_item.dart +++ b/lib/ui/views/pool_list/components/pool_list_item.dart @@ -54,13 +54,15 @@ class PoolListItemState extends ConsumerState { forceLoadFromBC: forceLoadFromBC, ).future, ); - final session = ref.watch(SessionProviders.session); - ref.invalidate( - BalanceProviders.getBalance( - session.genesisAddress, - widget.pool.lpToken.address!, - ), - ); + if (mounted) { + final session = ref.watch(SessionProviders.session); + ref.invalidate( + BalanceProviders.getBalance( + session.genesisAddress, + widget.pool.lpToken.address!, + ), + ); + } if (mounted) { setState(() {}); } diff --git a/pubspec.yaml b/pubspec.yaml index ab703980..be355b79 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: aedex description: Enable direct peer-to-peer trading of digital assets on the Archethic blockchain, eliminating the need for centralized intermediaries. publish_to: "none" -version: 0.9.1+50 +version: 0.9.1+51 environment: sdk: ">=3.3.0 <4.0.0"