Rebrand units to Groestlcoin

This commit is contained in:
HashEngineering 2021-01-23 10:02:55 -08:00
parent 0e2736a270
commit 770e354463
No known key found for this signature in database
GPG key ID: A615EB0C5CEBDEDE

View file

@ -6,15 +6,15 @@ public enum BitcoinUnit {
AUTO("Auto") { AUTO("Auto") {
@Override @Override
public long getSatsValue(double unitValue) { public long getSatsValue(double unitValue) {
throw new UnsupportedOperationException("Auto unit cannot convert bitcoin values"); throw new UnsupportedOperationException("Auto unit cannot convert groestlcoin values");
} }
@Override @Override
public double getValue(long satsValue) { public double getValue(long satsValue) {
throw new UnsupportedOperationException("Auto unit cannot convert bitcoin values"); throw new UnsupportedOperationException("Auto unit cannot convert groestlcoin values");
} }
}, },
BTC("BTC") { BTC("GRS") {
@Override @Override
public long getSatsValue(double unitValue) { public long getSatsValue(double unitValue) {
return (long)(unitValue * Transaction.SATOSHIS_PER_BITCOIN); return (long)(unitValue * Transaction.SATOSHIS_PER_BITCOIN);
@ -25,7 +25,7 @@ public enum BitcoinUnit {
return (double)satsValue / Transaction.SATOSHIS_PER_BITCOIN; return (double)satsValue / Transaction.SATOSHIS_PER_BITCOIN;
} }
}, },
SATOSHIS("sats") { SATOSHIS("gro") {
@Override @Override
public long getSatsValue(double unitValue) { public long getSatsValue(double unitValue) {
return (long)unitValue; return (long)unitValue;