mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-18 02:07:43 +00:00
default to less than 30 decimal places for nano
This commit is contained in:
parent
3275039d01
commit
9c58df7cfd
1 changed files with 4 additions and 1 deletions
|
@ -8,6 +8,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
import 'dart:math';
|
||||
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:stackwallet/db/hive/db.dart';
|
||||
import 'package:stackwallet/utilities/amount/amount_unit.dart';
|
||||
|
@ -864,7 +866,8 @@ class Prefs extends ChangeNotifier {
|
|||
boxName: DB.boxNamePrefs,
|
||||
key: "maxDecimalsFor${coin.name}",
|
||||
) as int? ??
|
||||
coin.decimals;
|
||||
max(coin.decimals,
|
||||
18); // use some sane max rather than up to 30 that nano uses
|
||||
_amountDecimals[coin] = decimals;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue