Skip to content

Commit

Permalink
⚡️ Remove chainlength from txChain Graphql request because of perf issue
Browse files Browse the repository at this point in the history
  • Loading branch information
redDwarf03 committed May 14, 2024
1 parent 99c29ff commit 80a77d3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/application/pool/dex_pool_calculation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Future<DexPool> _estimateStats(
await aedappfm.sl.get<ApiService>().getTransactionChain(
{pool.poolAddress: ''},
request:
' address, chainLength, validationStamp { ledgerOperations { unspentOutputs { state } } }',
' validationStamp { ledgerOperations { unspentOutputs { state } } }',
fromCriteria: fromCriteria,
orderAsc: false,
);
Expand Down
16 changes: 9 additions & 7 deletions lib/ui/views/pool_list/components/pool_list_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,15 @@ class PoolListItemState extends ConsumerState<PoolListItem> {
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(() {});
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 80a77d3

Please sign in to comment.