File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
packages/assets-controllers/src/RatesController Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,15 @@ import type {
12
12
13
13
export const name = 'RatesController' ;
14
14
15
+ /**
16
+ * Supported cryptocurrencies that can be used as a base currency. The value needs to be compatible
17
+ * with CryptoCompare's API which is the default source for the rates.
18
+ *
19
+ * See: https://min-api.cryptocompare.com/documentation?key=Price&cat=multipleSymbolsPriceEndpoint
20
+ */
15
21
export enum Cryptocurrency {
16
22
Btc = 'btc' ,
23
+ Solana = 'sol' ,
17
24
}
18
25
19
26
const DEFAULT_INTERVAL = 180000 ;
@@ -31,8 +38,12 @@ const defaultState = {
31
38
conversionDate : 0 ,
32
39
conversionRate : 0 ,
33
40
} ,
41
+ [ Cryptocurrency . Solana ] : {
42
+ conversionDate : 0 ,
43
+ conversionRate : 0 ,
44
+ } ,
34
45
} ,
35
- cryptocurrencies : [ Cryptocurrency . Btc ] ,
46
+ cryptocurrencies : [ Cryptocurrency . Btc , Cryptocurrency . Solana ] ,
36
47
} ;
37
48
38
49
export class RatesController extends BaseController <
You can’t perform that action at this time.
0 commit comments