mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-11 16:10:32 -04:00
support Bitcoin Cash
This commit is contained in:
parent
e864210f4b
commit
e91b96227f
6 changed files with 78 additions and 5 deletions
|
@ -135,17 +135,16 @@ public class CurrencyUtil {
|
|||
public static List<CryptoCurrency> getMainCryptoCurrencies() {
|
||||
final List<CryptoCurrency> result = new ArrayList<>();
|
||||
result.add(new CryptoCurrency("BTC", "Bitcoin"));
|
||||
result.add(new CryptoCurrency("LTC", "Litecoin"));
|
||||
result.add(new CryptoCurrency("BCH", "Bitcoin Cash"));
|
||||
result.add(new CryptoCurrency("ETH", "Ether"));
|
||||
result.add(new CryptoCurrency("LTC", "Litecoin"));
|
||||
result.add(new CryptoCurrency("ZEC", "Zcash"));
|
||||
result.sort(TradeCurrency::compareTo);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
public static List<CryptoCurrency> getRemovedCryptoCurrencies() {
|
||||
final List<CryptoCurrency> currencies = new ArrayList<>();
|
||||
currencies.add(new CryptoCurrency("BCH", "Bitcoin Cash"));
|
||||
currencies.add(new CryptoCurrency("BCHC", "Bitcoin Clashic"));
|
||||
currencies.add(new CryptoCurrency("ACH", "AchieveCoin"));
|
||||
currencies.add(new CryptoCurrency("SC", "Siacoin"));
|
||||
|
|
|
@ -98,7 +98,6 @@ public class CurrencyUtilTest {
|
|||
|
||||
@Test
|
||||
public void testGetNameAndCodeOfRemovedAsset() {
|
||||
assertEquals("Bitcoin Cash (BCH)", CurrencyUtil.getNameAndCode("BCH"));
|
||||
assertEquals("N/A (XYZ)", CurrencyUtil.getNameAndCode("XYZ"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue