mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-18 02:07:43 +00:00
update decimals for eCash
This commit is contained in:
parent
f87c5e8aa7
commit
148cd6f5b0
1 changed files with 8 additions and 2 deletions
|
@ -26,6 +26,7 @@ abstract class Constants {
|
|||
// // true; // true for development,
|
||||
|
||||
static const int _satsPerCoinEthereum = 1000000000000000000;
|
||||
static const int _satsPerCoinECash = 100;
|
||||
static const int _satsPerCoinMonero = 1000000000000;
|
||||
static const int _satsPerCoinWownero = 100000000000;
|
||||
static const int _satsPerCoin = 100000000;
|
||||
|
@ -33,6 +34,7 @@ abstract class Constants {
|
|||
static const int _decimalPlacesWownero = 11;
|
||||
static const int _decimalPlacesMonero = 12;
|
||||
static const int _decimalPlacesEthereum = 18;
|
||||
static const int _decimalPlacesECash = 2;
|
||||
|
||||
static const int notificationsMax = 0xFFFFFFFF;
|
||||
static const Duration networkAliveTimerDuration = Duration(seconds: 10);
|
||||
|
@ -57,7 +59,6 @@ abstract class Constants {
|
|||
case Coin.firo:
|
||||
case Coin.bitcoinTestNet:
|
||||
case Coin.dogecoinTestNet:
|
||||
case Coin.eCash:
|
||||
case Coin.firoTestNet:
|
||||
case Coin.epicCash:
|
||||
case Coin.namecoin:
|
||||
|
@ -72,6 +73,9 @@ abstract class Constants {
|
|||
|
||||
case Coin.ethereum:
|
||||
return _satsPerCoinEthereum;
|
||||
|
||||
case Coin.eCash:
|
||||
return _satsPerCoinECash;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -87,7 +91,6 @@ abstract class Constants {
|
|||
case Coin.bitcoinTestNet:
|
||||
case Coin.dogecoinTestNet:
|
||||
case Coin.firoTestNet:
|
||||
case Coin.eCash:
|
||||
case Coin.epicCash:
|
||||
case Coin.namecoin:
|
||||
case Coin.particl:
|
||||
|
@ -101,6 +104,9 @@ abstract class Constants {
|
|||
|
||||
case Coin.ethereum:
|
||||
return _decimalPlacesEthereum;
|
||||
|
||||
case Coin.eCash:
|
||||
return _decimalPlacesECash;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue