update decimals for eCash

This commit is contained in:
julian 2023-04-17 12:56:35 -06:00
parent f87c5e8aa7
commit 148cd6f5b0

View file

@ -26,6 +26,7 @@ abstract class Constants {
// // true; // true for development, // // true; // true for development,
static const int _satsPerCoinEthereum = 1000000000000000000; static const int _satsPerCoinEthereum = 1000000000000000000;
static const int _satsPerCoinECash = 100;
static const int _satsPerCoinMonero = 1000000000000; static const int _satsPerCoinMonero = 1000000000000;
static const int _satsPerCoinWownero = 100000000000; static const int _satsPerCoinWownero = 100000000000;
static const int _satsPerCoin = 100000000; static const int _satsPerCoin = 100000000;
@ -33,6 +34,7 @@ abstract class Constants {
static const int _decimalPlacesWownero = 11; static const int _decimalPlacesWownero = 11;
static const int _decimalPlacesMonero = 12; static const int _decimalPlacesMonero = 12;
static const int _decimalPlacesEthereum = 18; static const int _decimalPlacesEthereum = 18;
static const int _decimalPlacesECash = 2;
static const int notificationsMax = 0xFFFFFFFF; static const int notificationsMax = 0xFFFFFFFF;
static const Duration networkAliveTimerDuration = Duration(seconds: 10); static const Duration networkAliveTimerDuration = Duration(seconds: 10);
@ -57,7 +59,6 @@ abstract class Constants {
case Coin.firo: case Coin.firo:
case Coin.bitcoinTestNet: case Coin.bitcoinTestNet:
case Coin.dogecoinTestNet: case Coin.dogecoinTestNet:
case Coin.eCash:
case Coin.firoTestNet: case Coin.firoTestNet:
case Coin.epicCash: case Coin.epicCash:
case Coin.namecoin: case Coin.namecoin:
@ -72,6 +73,9 @@ abstract class Constants {
case Coin.ethereum: case Coin.ethereum:
return _satsPerCoinEthereum; return _satsPerCoinEthereum;
case Coin.eCash:
return _satsPerCoinECash;
} }
} }
@ -87,7 +91,6 @@ abstract class Constants {
case Coin.bitcoinTestNet: case Coin.bitcoinTestNet:
case Coin.dogecoinTestNet: case Coin.dogecoinTestNet:
case Coin.firoTestNet: case Coin.firoTestNet:
case Coin.eCash:
case Coin.epicCash: case Coin.epicCash:
case Coin.namecoin: case Coin.namecoin:
case Coin.particl: case Coin.particl:
@ -101,6 +104,9 @@ abstract class Constants {
case Coin.ethereum: case Coin.ethereum:
return _decimalPlacesEthereum; return _decimalPlacesEthereum;
case Coin.eCash:
return _decimalPlacesECash;
} }
} }