mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 03:49:22 +00:00
comment out unused variables
This commit is contained in:
parent
58afc46152
commit
a5350fcc5b
1 changed files with 12 additions and 12 deletions
|
@ -105,11 +105,11 @@ class _BuyFormState extends ConsumerState<BuyForm> {
|
|||
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<BuyForm> {
|
|||
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;
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue