diff --git a/lib/services/price.dart b/lib/services/price.dart index c79be324f..d157580ad 100644 --- a/lib/services/price.dart +++ b/lib/services/price.dart @@ -79,7 +79,7 @@ class PriceAPI { Map> result = {}; try { final uri = Uri.parse( - "https://api.coingecko.com/api/v3/coins/markets?vs_currency=${baseCurrency.toLowerCase()}&ids=monero,bitcoin,epic-cash,zcoin,dogecoin,bitcoin-cash,namecoin&order=market_cap_desc&per_page=10&page=1&sparkline=false"); + "https://api.coingecko.com/api/v3/coins/markets?vs_currency=${baseCurrency.toLowerCase()}&ids=monero,bitcoin,epic-cash,zcoin,dogecoin,bitcoin-cash,namecoin,wownero&order=market_cap_desc&per_page=10&page=1&sparkline=false"); // final uri = Uri.parse( // "https://api.coingecko.com/api/v3/coins/markets?vs_currency=${baseCurrency.toLowerCase()}&ids=monero%2Cbitcoin%2Cepic-cash%2Czcoin%2Cdogecoin&order=market_cap_desc&per_page=10&page=1&sparkline=false"); diff --git a/lib/utilities/enums/coin_enum.dart b/lib/utilities/enums/coin_enum.dart index 92a6a775f..78a04e220 100644 --- a/lib/utilities/enums/coin_enum.dart +++ b/lib/utilities/enums/coin_enum.dart @@ -7,9 +7,9 @@ import 'package:stackwallet/services/coins/epiccash/epiccash_wallet.dart' as epic; import 'package:stackwallet/services/coins/firo/firo_wallet.dart' as firo; import 'package:stackwallet/services/coins/monero/monero_wallet.dart' as xmr; -import 'package:stackwallet/services/coins/wownero/wownero_wallet.dart' as wow; import 'package:stackwallet/services/coins/namecoin/namecoin_wallet.dart' as nmc; +import 'package:stackwallet/services/coins/wownero/wownero_wallet.dart' as wow; enum Coin { bitcoin, @@ -217,6 +217,10 @@ Coin coinFromPrettyName(String name) { case "tDogecoin": case "dogecoinTestNet": return Coin.dogecoinTestNet; + case "Wownero": + case "tWownero": + case "wownero": + return Coin.wownero; default: throw ArgumentError.value( name, "name", "No Coin enum value with that prettyName"); @@ -247,6 +251,8 @@ Coin coinFromTickerCaseInsensitive(String ticker) { return Coin.firoTestNet; case "tdoge": return Coin.dogecoinTestNet; + case "wow": + return Coin.wownero; default: throw ArgumentError.value( ticker, "name", "No Coin enum value with that ticker"); diff --git a/lib/utilities/theme/color_theme.dart b/lib/utilities/theme/color_theme.dart index 9ab9aa293..361d922dc 100644 --- a/lib/utilities/theme/color_theme.dart +++ b/lib/utilities/theme/color_theme.dart @@ -209,8 +209,8 @@ class CoinThemeColor { return monero; case Coin.namecoin: return namecoin; - // case Coin.wownero: - // return wownero; + case Coin.wownero: + return wownero; } } } diff --git a/lib/utilities/theme/stack_colors.dart b/lib/utilities/theme/stack_colors.dart index 852bc7d6b..c6ee28892 100644 --- a/lib/utilities/theme/stack_colors.dart +++ b/lib/utilities/theme/stack_colors.dart @@ -1422,8 +1422,8 @@ class StackColors extends ThemeExtension { return _coin.monero; case Coin.namecoin: return _coin.namecoin; - // case Coin.wownero: - // return wownero; + case Coin.wownero: + return _coin.wownero; } }