1
- export type SupportedCoins = 'btc' | 'bch' | 'ltc' | 'doge' | 'eth' ;
1
+ export type SupportedCoins = 'btc' | 'bch' | 'ltc' | 'doge' | 'eth' | 'rbtc' ;
2
2
export type SupportedTokens =
3
3
| 'usdc'
4
4
| 'gusd'
@@ -8,7 +8,8 @@ export type SupportedTokens =
8
8
| 'wbtc'
9
9
| 'shib'
10
10
| 'ape'
11
- | 'euroc' ;
11
+ | 'euroc'
12
+ | 'xusd' ;
12
13
export type SupportedCurrencies = SupportedCoins | SupportedTokens ;
13
14
14
15
export interface CurrencyOpts {
@@ -168,6 +169,117 @@ export const Currencies: {[key in string]: CurrencyOpts} = {
168
169
gradientBackgroundColor : '#6b71d6' ,
169
170
} ,
170
171
} ,
172
+ rbtc : {
173
+ name : 'Smart Bitcoin' ,
174
+ chain : 'RSK' ,
175
+ coin : 'rbtc' ,
176
+ unitInfo : {
177
+ unitName : 'RBTC' ,
178
+ unitToSatoshi : 1e18 ,
179
+ unitDecimals : 18 ,
180
+ unitCode : 'rbtc'
181
+ } ,
182
+ properties : {
183
+ hasMultiSig : false ,
184
+ hasMultiSend : false ,
185
+ isUtxo : false ,
186
+ isERCToken : false ,
187
+ isStableCoin : false ,
188
+ singleAddress : true
189
+ } ,
190
+ paymentInfo : {
191
+ paymentCode : 'EIP681' ,
192
+ protocolPrefix : { livenet : 'rsk' , testnet : 'rsk' } ,
193
+ ratesApi : 'https://bws.bitpay.com/bws/api/v3/fiatrates/rbtc' ,
194
+ blockExplorerUrls : 'explorer.rsk.co/' ,
195
+ blockExplorerUrlsTestnet : 'explorer.testet.rsk.co/'
196
+ } ,
197
+ feeInfo : {
198
+ feeUnit : 'Gwei' ,
199
+ feeUnitAmount : 1e9 ,
200
+ blockTime : 0.53 ,
201
+ maxMerchantFee : 'urgent'
202
+ } ,
203
+ theme : {
204
+ coinColor : '#41d434' ,
205
+ backgroundColor : '#1e90ff' ,
206
+ gradientBackgroundColor : '#1e90ff'
207
+ }
208
+ } ,
209
+ rsk : { // This entry is because exchange-rates assumes that chain and coin are the same and asks for theme to 'rsk'
210
+ name : 'Smart Bitcoin' ,
211
+ chain : 'RSK' ,
212
+ coin : 'rbtc' ,
213
+ unitInfo : {
214
+ unitName : 'RBTC' ,
215
+ unitToSatoshi : 1e18 ,
216
+ unitDecimals : 18 ,
217
+ unitCode : 'rbtc'
218
+ } ,
219
+ properties : {
220
+ hasMultiSig : false ,
221
+ hasMultiSend : false ,
222
+ isUtxo : false ,
223
+ isERCToken : false ,
224
+ isStableCoin : false ,
225
+ singleAddress : true
226
+ } ,
227
+ paymentInfo : {
228
+ paymentCode : 'EIP681' ,
229
+ protocolPrefix : { livenet : 'rsk' , testnet : 'rsk' } ,
230
+ ratesApi : 'https://bws.bitpay.com/bws/api/v3/fiatrates/btc' ,
231
+ blockExplorerUrls : 'explorer.rsk.co/' ,
232
+ blockExplorerUrlsTestnet : 'explorer.testet.rsk.co/'
233
+ } ,
234
+ feeInfo : {
235
+ feeUnit : 'Gwei' ,
236
+ feeUnitAmount : 1e9 ,
237
+ blockTime : 0.53 ,
238
+ maxMerchantFee : 'urgent'
239
+ } ,
240
+ theme : {
241
+ coinColor : '#41d434' ,
242
+ backgroundColor : '#1e90ff' ,
243
+ gradientBackgroundColor : '#1e90ff'
244
+ } ,
245
+ } ,
246
+ xusd : {
247
+ name : 'Sovryn XUSD' ,
248
+ chain : 'RSK' ,
249
+ coin : 'xusd' ,
250
+ unitInfo : {
251
+ unitName : 'XUSD' ,
252
+ unitToSatoshi : 1e18 ,
253
+ unitDecimals : 18 ,
254
+ unitCode : 'xusd' ,
255
+ } ,
256
+ properties : {
257
+ hasMultiSig : false ,
258
+ hasMultiSend : false ,
259
+ isUtxo : false ,
260
+ isERCToken : true ,
261
+ isStableCoin : true ,
262
+ singleAddress : true ,
263
+ } ,
264
+ paymentInfo : {
265
+ paymentCode : 'EIP681' ,
266
+ protocolPrefix : { livenet : 'rsk' , testnet : 'rsk' } ,
267
+ ratesApi : 'https://bws.bitpay.com/bws/api/v3/fiatrates/xusd' ,
268
+ blockExplorerUrls : 'explorer.rsk.co/' ,
269
+ blockExplorerUrlsTestnet : 'explorer.testet.rsk.co/'
270
+ } ,
271
+ feeInfo : {
272
+ feeUnit : 'Gwei' ,
273
+ feeUnitAmount : 1e9 ,
274
+ blockTime : 0.2 ,
275
+ maxMerchantFee : 'urgent' ,
276
+ } ,
277
+ theme : {
278
+ coinColor : '#f3ba2d' ,
279
+ backgroundColor : 'rgba(135,206,250,1)' ,
280
+ gradientBackgroundColor : 'rgba(30,144,255, 0.2)' ,
281
+ } ,
282
+ } ,
171
283
xrp : {
172
284
name : 'XRP' ,
173
285
chain : 'XRP' ,
@@ -628,7 +740,7 @@ export const SUPPORTED_TOKENS = [
628
740
'ape' ,
629
741
'euroc' ,
630
742
] ;
631
- export const SUPPORTED_COINS = [ 'btc' , 'bch' , 'eth' , 'doge' , 'ltc' , 'xrp' ] ;
743
+ export const SUPPORTED_COINS = [ 'btc' , 'bch' , 'eth' , 'rbtc' , ' doge', 'ltc' , 'xrp' ] ;
632
744
export const SUPPORTED_CURRENCIES = [ ...SUPPORTED_COINS , ...SUPPORTED_TOKENS ] ;
633
745
export const POPULAR_TOKENS = [
634
746
'UNI' ,
0 commit comments