Skip to content

Commit

Permalink
Merge pull request #271 from archethic-foundation/270-fiat-value-aeet…
Browse files Browse the repository at this point in the history
…h-doesnt-appear-in-earn-page

fix: 🐛 Fiat value aeETH doesn't appear in earn page
  • Loading branch information
redDwarf03 authored Aug 21, 2024
2 parents 8c34ec9 + 664be99 commit 1db7a74
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 25 deletions.
8 changes: 3 additions & 5 deletions lib/ui/views/util/components/dex_archethic_uco_aeeth.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ class ArchethicOraclePair extends ConsumerWidget {
return const SizedBox.shrink();
}
} else {
final valueToken1 =
ref.read(DexTokensProviders.estimateTokenInFiat(token1));
valueToken1 = ref.read(DexTokensProviders.estimateTokenInFiat(token1));
if (valueToken1 == 0) {
return const SizedBox.shrink();
}
Expand All @@ -43,8 +42,7 @@ class ArchethicOraclePair extends ConsumerWidget {
return const SizedBox.shrink();
}
} else {
final valueToken2 =
ref.read(DexTokensProviders.estimateTokenInFiat(token2));
valueToken2 = ref.read(DexTokensProviders.estimateTokenInFiat(token2));
if (valueToken2 == 0) {
return const SizedBox.shrink();
}
Expand All @@ -59,7 +57,7 @@ class ArchethicOraclePair extends ConsumerWidget {
mainAxisAlignment: MainAxisAlignment.end,
children: [
SelectableText(
'1 ${token1.symbol} = \$${valueToken1.formatNumber(precision: 2)} / 1 ${token2.symbol} = \$${valueToken2.formatNumber(precision: 2)} ($timestamp)',
'1 ${token1.symbol} = \$${valueToken1.formatNumber(precision: 2)} / 1 ${token2.symbol} = \$${valueToken2.formatNumber(precision: 4)} ($timestamp)',
style: TextStyle(
fontSize: Theme.of(context).textTheme.labelSmall!.fontSize,
),
Expand Down
36 changes: 18 additions & 18 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,18 @@ packages:
dependency: transitive
description:
name: ansicolor
sha256: "8bf17a8ff6ea17499e40a2d2542c2f481cd7615760c6d34065cb22bfd22e6880"
sha256: "50e982d500bc863e1d703448afdbf9e5a72eb48840a4f766fa361ffd6877055f"
url: "https://pub.dev"
source: hosted
version: "2.0.2"
version: "2.0.3"
archethic_dapp_framework_flutter:
dependency: "direct main"
description:
name: archethic_dapp_framework_flutter
sha256: "020c79df93bc5df1aefc9bf2fc37263e0fe2ef5e27c4667422e3a1f83eab50af"
sha256: "781957c6e739614183000c09a1110618dd2a09a03a735c0736ea0582e7b58954"
url: "https://pub.dev"
source: hosted
version: "1.2.11"
version: "1.2.13"
archethic_lib_dart:
dependency: transitive
description:
Expand All @@ -61,10 +61,10 @@ packages:
dependency: transitive
description:
name: archethic_wallet_client
sha256: "83baa3bbdb5c2a5c772c9ad3272adcb2c70bc2ef70075a12c9316a13bd57921b"
sha256: "69bd1dbd85035554e930339d9c03a0fd12ba161003090435fc4d750c366f0595"
url: "https://pub.dev"
source: hosted
version: "2.0.7"
version: "2.0.8"
archive:
dependency: transitive
description:
Expand Down Expand Up @@ -229,10 +229,10 @@ packages:
dependency: transitive
description:
name: crypto
sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab
sha256: ec30d999af904f33454ba22ed9a86162b35e52b44ac4807d1d93c288041d7d27
url: "https://pub.dev"
source: hosted
version: "3.0.3"
version: "3.0.5"
cryptography:
dependency: transitive
description:
Expand Down Expand Up @@ -317,10 +317,10 @@ packages:
dependency: transitive
description:
name: ffi
sha256: "493f37e7df1804778ff3a53bd691d8692ddf69702cf4c1c1096a2e41b4779e21"
sha256: "16ed7b077ef01ad6170a3d0c57caa4a112a38d7a2ed5602e0aca9ca6f3d98da6"
url: "https://pub.dev"
source: hosted
version: "2.1.2"
version: "2.1.3"
file:
dependency: transitive
description:
Expand Down Expand Up @@ -804,10 +804,10 @@ packages:
dependency: transitive
description:
name: path_provider_android
sha256: "490539678396d4c3c0b06efdaab75ae60675c3e0c66f72bc04c2e2c1e0e2abeb"
sha256: "6f01f8e37ec30b07bc424b4deabac37cacb1bc7e2e515ad74486039918a37eb7"
url: "https://pub.dev"
source: hosted
version: "2.2.9"
version: "2.2.10"
path_provider_foundation:
dependency: transitive
description:
Expand Down Expand Up @@ -1177,10 +1177,10 @@ packages:
dependency: transitive
description:
name: url_launcher_android
sha256: "94d8ad05f44c6d4e2ffe5567ab4d741b82d62e3c8e288cc1fcea45965edf47c9"
sha256: f0c73347dfcfa5b3db8bc06e1502668265d39c08f310c29bff4e28eea9699f79
url: "https://pub.dev"
source: hosted
version: "6.3.8"
version: "6.3.9"
url_launcher_ios:
dependency: transitive
description:
Expand Down Expand Up @@ -1281,10 +1281,10 @@ packages:
dependency: transitive
description:
name: vm_service
sha256: f652077d0bdf60abe4c1f6377448e8655008eef28f128bc023f7b5e8dfeb48fc
sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d"
url: "https://pub.dev"
source: hosted
version: "14.2.4"
version: "14.2.5"
watcher:
dependency: transitive
description:
Expand Down Expand Up @@ -1329,10 +1329,10 @@ packages:
dependency: transitive
description:
name: win32
sha256: "015002c060f1ae9f41a818f2d5640389cc05283e368be19dc8d77cecb43c40c9"
sha256: "68d1e89a91ed61ad9c370f9f8b6effed9ae5e0ede22a270bdfa6daf79fc2290a"
url: "https://pub.dev"
source: hosted
version: "5.5.3"
version: "5.5.4"
x25519:
dependency: transitive
description:
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ 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: 1.1.4+78
version: 1.1.5+79

environment:
sdk: ">=3.3.0 <4.0.0"

dependencies:
archethic_dapp_framework_flutter: ^1.2.11
archethic_dapp_framework_flutter: ^1.2.13
#archethic_dapp_framework_flutter:
# git:
# url: https://github.com/archethic-foundation/archethic-dapp-framework-flutter.git
Expand Down

0 comments on commit 1db7a74

Please sign in to comment.