diff --git a/lib/pages/exchange_view/trade_details_view.dart b/lib/pages/exchange_view/trade_details_view.dart index 24208a19c..beab358f9 100644 --- a/lib/pages/exchange_view/trade_details_view.dart +++ b/lib/pages/exchange_view/trade_details_view.dart @@ -274,8 +274,10 @@ class _TradeDetailsViewState extends ConsumerState { onPressed: () { final coin = coinFromTickerCaseInsensitive(trade.payInCurrency); - final amount = - sendAmount.toAmount(fractionDigits: coin.decimals); + final amount = Amount.fromDecimal( + sendAmount, + fractionDigits: coin.decimals, + ); final address = trade.payInAddress; Navigator.of(context).pushNamed( @@ -1347,11 +1349,13 @@ class _TradeDetailsViewState extends ConsumerState { SecondaryButton( label: "Send from Stack", onPressed: () { - final amount = sendAmount; - final address = trade.payInAddress; - final coin = coinFromTickerCaseInsensitive(trade.payInCurrency); + final amount = Amount.fromDecimal( + sendAmount, + fractionDigits: coin.decimals, + ); + final address = trade.payInAddress; Navigator.of(context).pushNamed( SendFromView.routeName,