11// Copyright 2019-2020 The Hush developers
2+ // Released under the GPLv3
23package org.myhush.silentdragon
34
45import android.annotation.SuppressLint
@@ -117,6 +118,7 @@ object ConnectionManager {
117118 fun initCurrencies (){
118119 try {
119120 DataModel .currencySymbols[" AUD" ] = " $"
121+ DataModel .currencySymbols[" BTC" ] = " BTC"
120122 DataModel .currencySymbols[" CAD" ] = " $"
121123 DataModel .currencySymbols[" CNY" ] = " ¥"
122124 DataModel .currencySymbols[" EUR" ] = " €"
@@ -133,11 +135,13 @@ object ConnectionManager {
133135 DataModel .currencySymbols[" USD" ] = " $"
134136 DataModel .currencySymbols[" VEF" ] = " Bs"
135137 DataModel .currencySymbols[" VND" ] = " ₫"
138+ DataModel .currencySymbols[" XAG" ] = " XAG"
139+ DataModel .currencySymbols[" XAU" ] = " XAU"
136140 DataModel .currencySymbols[" ZAR" ] = " R"
137141
138142 Thread {
139143 val client = OkHttpClient ()
140- val currencies = " usd,eur,jpy,btc,cny,rub,cad,sgd,chf,inr,gbp,aud,pkr,mxn,php,vnd,thb,zar,krw,myr,vef"
144+ val currencies = " usd,eur,jpy,btc,cny,rub,cad,sgd,chf,inr,gbp,aud,pkr,mxn,php,vnd,thb,zar,krw,myr,vef,xau,xag "
141145 val request: Request = Request .Builder ()
142146 .url(" https://api.coingecko.com/api/v3/simple/price?ids=hush&vs_currencies=${currencies} " )
143147 .build()
0 commit comments