comment out unused variables

This commit is contained in:
julian 2023-03-29 08:30:56 -06:00
parent 58afc46152
commit a5350fcc5b

View file

@ -105,11 +105,11 @@ class _BuyFormState extends ConsumerState<BuyForm> {
static Decimal minFiat = Decimal.fromInt(50); static Decimal minFiat = Decimal.fromInt(50);
static Decimal maxFiat = Decimal.fromInt(20000); static Decimal maxFiat = Decimal.fromInt(20000);
// We can't get crypto min and max without asking for a quote // // We can't get crypto min and max without asking for a quote
static Decimal minCrypto = Decimal.parse((0.00000001) // static Decimal minCrypto = Decimal.parse((0.00000001)
.toString()); // lol how to go from double->Decimal more easily? // .toString()); // lol how to go from double->Decimal more easily?
static Decimal maxCrypto = Decimal.parse((10000.00000000).toString()); // static Decimal maxCrypto = Decimal.parse((10000.00000000).toString());
static String boundedCryptoTicker = ''; // static String boundedCryptoTicker = '';
String _amountOutOfRangeErrorString = ""; String _amountOutOfRangeErrorString = "";
void validateAmount() { void validateAmount() {
@ -168,13 +168,13 @@ class _BuyFormState extends ConsumerState<BuyForm> {
coins: ref.read(simplexProvider).supportedCryptos, coins: ref.read(simplexProvider).supportedCryptos,
onSelected: (crypto) { onSelected: (crypto) {
setState(() { setState(() {
if (selectedCrypto?.ticker != _BuyFormState.boundedCryptoTicker) { // if (selectedCrypto?.ticker != _BuyFormState.boundedCryptoTicker) {
// Reset crypto mins and maxes ... we don't know these bounds until we request a quote // // Reset crypto mins and maxes ... we don't know these bounds until we request a quote
_BuyFormState.minCrypto = Decimal.parse((0.00000001) // _BuyFormState.minCrypto = Decimal.parse((0.00000001)
.toString()); // lol how to go from double->Decimal more easily? // .toString()); // lol how to go from double->Decimal more easily?
_BuyFormState.maxCrypto = // _BuyFormState.maxCrypto =
Decimal.parse((10000.00000000).toString()); // Decimal.parse((10000.00000000).toString());
} // }
selectedCrypto = crypto; selectedCrypto = crypto;
}); });
}, },