From a5350fcc5b3cce75b7362f414b9fe933b7b317c2 Mon Sep 17 00:00:00 2001 From: julian Date: Wed, 29 Mar 2023 08:30:56 -0600 Subject: [PATCH] comment out unused variables --- lib/pages/buy_view/buy_form.dart | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/pages/buy_view/buy_form.dart b/lib/pages/buy_view/buy_form.dart index d98ac0a56..bd77af223 100644 --- a/lib/pages/buy_view/buy_form.dart +++ b/lib/pages/buy_view/buy_form.dart @@ -105,11 +105,11 @@ class _BuyFormState extends ConsumerState { static Decimal minFiat = Decimal.fromInt(50); static Decimal maxFiat = Decimal.fromInt(20000); - // We can't get crypto min and max without asking for a quote - static Decimal minCrypto = Decimal.parse((0.00000001) - .toString()); // lol how to go from double->Decimal more easily? - static Decimal maxCrypto = Decimal.parse((10000.00000000).toString()); - static String boundedCryptoTicker = ''; + // // We can't get crypto min and max without asking for a quote + // static Decimal minCrypto = Decimal.parse((0.00000001) + // .toString()); // lol how to go from double->Decimal more easily? + // static Decimal maxCrypto = Decimal.parse((10000.00000000).toString()); + // static String boundedCryptoTicker = ''; String _amountOutOfRangeErrorString = ""; void validateAmount() { @@ -168,13 +168,13 @@ class _BuyFormState extends ConsumerState { coins: ref.read(simplexProvider).supportedCryptos, onSelected: (crypto) { setState(() { - if (selectedCrypto?.ticker != _BuyFormState.boundedCryptoTicker) { - // Reset crypto mins and maxes ... we don't know these bounds until we request a quote - _BuyFormState.minCrypto = Decimal.parse((0.00000001) - .toString()); // lol how to go from double->Decimal more easily? - _BuyFormState.maxCrypto = - Decimal.parse((10000.00000000).toString()); - } + // if (selectedCrypto?.ticker != _BuyFormState.boundedCryptoTicker) { + // // Reset crypto mins and maxes ... we don't know these bounds until we request a quote + // _BuyFormState.minCrypto = Decimal.parse((0.00000001) + // .toString()); // lol how to go from double->Decimal more easily? + // _BuyFormState.maxCrypto = + // Decimal.parse((10000.00000000).toString()); + // } selectedCrypto = crypto; }); },