mirror of
https://github.com/sparrowwallet/drongo.git
synced 2025-11-05 11:56:38 +00:00
Rebrand units to Groestlcoin
This commit is contained in:
parent
0e2736a270
commit
770e354463
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue