diff --git a/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_token_send.dart b/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_token_send.dart index 97be1da9a..b239223a7 100644 --- a/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_token_send.dart +++ b/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_token_send.dart @@ -370,8 +370,12 @@ class _DesktopTokenSendState extends ConsumerState { level: LogLevel.Info); _cachedAmountToSend = _amountToSend; - final price = - ref.read(priceAnd24hChangeNotifierProvider).getPrice(coin).item1; + final price = ref + .read(priceAnd24hChangeNotifierProvider) + .getTokenPrice( + ref.read(tokenServiceProvider)!.tokenContract.address, + ) + .item1; if (price > Decimal.zero) { final String fiatAmountString = Amount.fromDecimal( @@ -512,8 +516,12 @@ class _DesktopTokenSendState extends ConsumerState { .toAmount(fractionDigits: 2) : Decimal.parse(baseAmountString).toAmount(fractionDigits: 2); - final Decimal _price = - ref.read(priceAnd24hChangeNotifierProvider).getPrice(coin).item1; + final Decimal _price = ref + .read(priceAnd24hChangeNotifierProvider) + .getTokenPrice( + ref.read(tokenServiceProvider)!.tokenContract.address, + ) + .item1; if (_price == Decimal.zero) { _amountToSend = Decimal.zero.toAmount(fractionDigits: tokenDecimals);