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; }); },