@sodax/types 2.3.0-rc.1 → 2.3.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,19 @@
1
1
  import { SodaTokens } from '../chains/tokens.js';
2
2
  import { spokeChainConfig, ChainKeys, hubConfig } from '../chains/chains.js';
3
+ // Robinhood Stock Tokens listed as collateral on every chain that has them; the pool has borrowing disabled for them.
4
+ const moneyMarketEquitySymbols = [
5
+ 'AAPL',
6
+ 'MSFT',
7
+ 'NVDA',
8
+ 'GOOGL',
9
+ 'AMZN',
10
+ 'META',
11
+ 'TSLA',
12
+ 'SPCX',
13
+ 'SPY',
14
+ 'QQQ',
15
+ 'GLD',
16
+ ];
3
17
  // Hub vaults the money market lends against, and the source of `moneyMarketReserveAssets`.
4
18
  // Membership is an explicit opt-in: a new SodaTokens entry is not a reserve asset until listed here.
5
19
  const moneyMarketHubVaults = [
@@ -28,10 +42,10 @@ const moneyMarketHubVaults = [
28
42
  SodaTokens.sodaKAIA,
29
43
  SodaTokens.sodaSTX,
30
44
  SodaTokens.sodaSUSDS,
31
- SodaTokens.sodaHBAR,
32
45
  SodaTokens.sodaJITOSOL,
33
46
  SodaTokens.sodaUSDS,
34
47
  SodaTokens.sodaUSSD,
48
+ ...moneyMarketEquitySymbols.map(symbol => SodaTokens[symbol]),
35
49
  ];
36
50
  // currently supported spoke chain tokens for money market
37
51
  export const moneyMarketSupportedTokens = {
@@ -153,8 +167,8 @@ export const moneyMarketSupportedTokens = {
153
167
  spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.POL,
154
168
  spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.HYPE,
155
169
  spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.NEAR,
156
- spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.HBAR,
157
170
  spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.USDS,
171
+ ...moneyMarketEquitySymbols.map(symbol => spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens[symbol]),
158
172
  ],
159
173
  [ChainKeys.SUI_MAINNET]: [
160
174
  spokeChainConfig[ChainKeys.SUI_MAINNET].supportedTokens.SUI,
@@ -250,12 +264,14 @@ export const moneyMarketSupportedTokens = {
250
264
  spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.NEAR,
251
265
  spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.USDS,
252
266
  spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.XLM,
267
+ ...moneyMarketEquitySymbols.map(symbol => spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens[symbol]),
253
268
  ],
254
269
  [ChainKeys.ROBINHOOD_MAINNET]: [
255
270
  spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.ETH,
256
271
  spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.bnUSD,
257
272
  spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.SODA,
258
273
  spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.USDG,
274
+ ...moneyMarketEquitySymbols.map(symbol => spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens[symbol]),
259
275
  ],
260
276
  };
261
277
  export const moneyMarketReserveAssets = [