@defisaver/positions-sdk 2.1.149 → 2.1.150

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.
@@ -16,6 +16,7 @@ import {
16
16
  v3USDSCollAssets,
17
17
  v3USDTCollAssets,
18
18
  v3wstETHCollAssets,
19
+ v3InstitutionalUSDCCollAssets,
19
20
  } from './marketsAssets';
20
21
 
21
22
  export {
@@ -41,6 +42,7 @@ const BULKER_OPTIONS: Record<NetworkNumber, Record<CompoundVersions, CompoundBul
41
42
  [CompoundVersions.CompoundV3USDT]: STANDARD_BULKER_OPTIONS,
42
43
  [CompoundVersions.CompoundV3wstETH]: STANDARD_BULKER_OPTIONS,
43
44
  [CompoundVersions.CompoundV3USDS]: STANDARD_BULKER_OPTIONS,
45
+ [CompoundVersions.CompoundV3InstitutionalUSDC]: STANDARD_BULKER_OPTIONS,
44
46
 
45
47
  // Non-existing markets, keeping it because of typescript
46
48
  [CompoundVersions.CompoundV2]: EMPTY_BULKER_OPTIONS,
@@ -58,6 +60,7 @@ const BULKER_OPTIONS: Record<NetworkNumber, Record<CompoundVersions, CompoundBul
58
60
  [CompoundVersions.CompoundV3USDbC]: EMPTY_BULKER_OPTIONS,
59
61
  [CompoundVersions.CompoundV3wstETH]: EMPTY_BULKER_OPTIONS,
60
62
  [CompoundVersions.CompoundV3USDS]: EMPTY_BULKER_OPTIONS,
63
+ [CompoundVersions.CompoundV3InstitutionalUSDC]: EMPTY_BULKER_OPTIONS,
61
64
  },
62
65
  [NetworkNumber.Base]: {
63
66
  [CompoundVersions.CompoundV3ETH]: STANDARD_BULKER_OPTIONS,
@@ -70,6 +73,7 @@ const BULKER_OPTIONS: Record<NetworkNumber, Record<CompoundVersions, CompoundBul
70
73
  [CompoundVersions.CompoundV3USDCe]: EMPTY_BULKER_OPTIONS,
71
74
  [CompoundVersions.CompoundV3USDT]: EMPTY_BULKER_OPTIONS,
72
75
  [CompoundVersions.CompoundV3wstETH]: EMPTY_BULKER_OPTIONS,
76
+ [CompoundVersions.CompoundV3InstitutionalUSDC]: EMPTY_BULKER_OPTIONS,
73
77
  },
74
78
  [NetworkNumber.Opt]: {
75
79
  [CompoundVersions.CompoundV3USDC]: STANDARD_BULKER_OPTIONS,
@@ -81,6 +85,7 @@ const BULKER_OPTIONS: Record<NetworkNumber, Record<CompoundVersions, CompoundBul
81
85
  [CompoundVersions.CompoundV3USDCe]: EMPTY_BULKER_OPTIONS,
82
86
  [CompoundVersions.CompoundV3wstETH]: EMPTY_BULKER_OPTIONS,
83
87
  [CompoundVersions.CompoundV3USDS]: EMPTY_BULKER_OPTIONS,
88
+ [CompoundVersions.CompoundV3InstitutionalUSDC]: EMPTY_BULKER_OPTIONS,
84
89
  },
85
90
  [NetworkNumber.Linea]: {
86
91
  // Non-existing markets, keeping it because of typescript
@@ -92,6 +97,7 @@ const BULKER_OPTIONS: Record<NetworkNumber, Record<CompoundVersions, CompoundBul
92
97
  [CompoundVersions.CompoundV3USDCe]: EMPTY_BULKER_OPTIONS,
93
98
  [CompoundVersions.CompoundV3wstETH]: EMPTY_BULKER_OPTIONS,
94
99
  [CompoundVersions.CompoundV3USDS]: EMPTY_BULKER_OPTIONS,
100
+ [CompoundVersions.CompoundV3InstitutionalUSDC]: EMPTY_BULKER_OPTIONS,
95
101
  },
96
102
  [NetworkNumber.Plasma]: {
97
103
  // Non-existing markets, keeping it because of typescript
@@ -103,6 +109,7 @@ const BULKER_OPTIONS: Record<NetworkNumber, Record<CompoundVersions, CompoundBul
103
109
  [CompoundVersions.CompoundV3USDCe]: EMPTY_BULKER_OPTIONS,
104
110
  [CompoundVersions.CompoundV3wstETH]: EMPTY_BULKER_OPTIONS,
105
111
  [CompoundVersions.CompoundV3USDS]: EMPTY_BULKER_OPTIONS,
112
+ [CompoundVersions.CompoundV3InstitutionalUSDC]: EMPTY_BULKER_OPTIONS,
106
113
  },
107
114
  };
108
115
 
@@ -110,6 +117,7 @@ export const COMPOUND_V2: CompoundMarketData = {
110
117
  chainIds: [NetworkNumber.Eth],
111
118
  label: 'Compound V2',
112
119
  shortLabel: CompoundVersionType.V2,
120
+ url: '',
113
121
  value: CompoundVersions.CompoundV2,
114
122
  baseAsset: '',
115
123
  collAssets: compoundV2CollateralAssets.map(a => a.underlyingAsset),
@@ -126,6 +134,7 @@ export const COMPOUND_V3_USDC = (networkId: NetworkNumber): CompoundMarketData =
126
134
  chainIds: [NetworkNumber.Eth, NetworkNumber.Arb, NetworkNumber.Base, NetworkNumber.Opt],
127
135
  label: 'Compound V3 - USDC',
128
136
  shortLabel: CompoundVersionType.V3,
137
+ url: 'cusdcv3',
129
138
  value: CompoundVersions.CompoundV3USDC,
130
139
  baseAsset: 'USDC',
131
140
  collAssets: networkId ? v3USDCCollAssets[networkId] : [],
@@ -142,6 +151,7 @@ export const COMPOUND_V3_USDCe = (networkId: NetworkNumber): CompoundMarketData
142
151
  chainIds: [NetworkNumber.Arb],
143
152
  label: 'Compound V3 - USDC.e',
144
153
  shortLabel: CompoundVersionType.V3,
154
+ url: 'cusdcev3',
145
155
  value: CompoundVersions.CompoundV3USDCe,
146
156
  baseAsset: 'USDC.e',
147
157
  collAssets: networkId ? v3USDCeCollAssets[networkId] : [],
@@ -158,6 +168,7 @@ export const COMPOUND_V3_ETH = (networkId: NetworkNumber): CompoundMarketData =>
158
168
  chainIds: [NetworkNumber.Eth, NetworkNumber.Base, NetworkNumber.Arb, NetworkNumber.Opt],
159
169
  label: 'Compound V3 - ETH',
160
170
  shortLabel: CompoundVersionType.V3,
171
+ url: 'cethv3',
161
172
  value: CompoundVersions.CompoundV3ETH,
162
173
  baseAsset: 'ETH',
163
174
  collAssets: networkId ? v3ETHCollAssets[networkId] : [],
@@ -174,6 +185,7 @@ export const COMPOUND_V3_USDBC = (networkId: NetworkNumber): CompoundMarketData
174
185
  chainIds: [NetworkNumber.Base],
175
186
  label: 'Compound V3 - USDbC',
176
187
  shortLabel: CompoundVersionType.V3,
188
+ url: 'cusdbcv3',
177
189
  value: CompoundVersions.CompoundV3USDbC,
178
190
  baseAsset: 'USDbC',
179
191
  collAssets: networkId ? v3USDbCCollAssets[networkId] : [],
@@ -190,6 +202,7 @@ export const COMPOUND_V3_USDT = (networkId: NetworkNumber): CompoundMarketData =
190
202
  chainIds: [NetworkNumber.Eth, NetworkNumber.Arb, NetworkNumber.Opt],
191
203
  label: 'Compound V3 - USDT',
192
204
  shortLabel: CompoundVersionType.V3,
205
+ url: 'cusdtv3',
193
206
  value: CompoundVersions.CompoundV3USDT,
194
207
  baseAsset: 'USDT',
195
208
  collAssets: networkId ? v3USDTCollAssets[networkId] : [],
@@ -206,6 +219,7 @@ export const COMPOUND_V3_WSTETH = (networkId: NetworkNumber): CompoundMarketData
206
219
  chainIds: [NetworkNumber.Eth],
207
220
  label: 'Compound V3 - wstETH',
208
221
  shortLabel: CompoundVersionType.V3,
222
+ url: 'cwstethv3',
209
223
  value: CompoundVersions.CompoundV3wstETH,
210
224
  baseAsset: 'wstETH',
211
225
  collAssets: networkId ? v3wstETHCollAssets[networkId] : [],
@@ -221,6 +235,7 @@ export const COMPOUND_V3_USDS = (networkId: NetworkNumber): CompoundMarketData =
221
235
  chainIds: [NetworkNumber.Eth, NetworkNumber.Base],
222
236
  label: 'Compound V3 - USDS',
223
237
  shortLabel: CompoundVersionType.V3,
238
+ url: 'cusdsv3',
224
239
  value: CompoundVersions.CompoundV3USDS,
225
240
  baseAsset: 'USDS',
226
241
  collAssets: networkId ? v3USDSCollAssets[networkId] : [],
@@ -232,6 +247,22 @@ export const COMPOUND_V3_USDS = (networkId: NetworkNumber): CompoundMarketData =
232
247
  bulkerOptions: BULKER_OPTIONS[networkId][CompoundVersions.CompoundV3USDS],
233
248
  });
234
249
 
250
+ export const COMPOUND_V3_INSTITUTIONAL_USDC = (networkId: NetworkNumber): CompoundMarketData => ({
251
+ chainIds: [NetworkNumber.Eth],
252
+ label: 'Compound V3 - Institutional USDC',
253
+ shortLabel: CompoundVersionType.V3,
254
+ url: 'ciusdcv3',
255
+ value: CompoundVersions.CompoundV3InstitutionalUSDC,
256
+ baseAsset: 'USDC',
257
+ collAssets: networkId ? v3InstitutionalUSDCCollAssets[networkId] : [],
258
+ baseMarket: 'ciUSDCv3',
259
+ baseMarketAddress: getConfigContractAddress('ciUSDCv3', networkId),
260
+ secondLabel: 'Market',
261
+ bulkerName: networkId === NetworkNumber.Eth ? 'CompV3BulkerMainnetETH' : 'CompV3BulkerL2',
262
+ bulkerAddress: getConfigContractAddress(networkId === NetworkNumber.Eth ? 'CompV3BulkerMainnetETH' : 'CompV3BulkerL2', networkId),
263
+ bulkerOptions: BULKER_OPTIONS[networkId][CompoundVersions.CompoundV3InstitutionalUSDC],
264
+ });
265
+
235
266
  export const CompoundMarkets = (networkId: NetworkNumber) => ({
236
267
  [CompoundVersions.CompoundV2]: COMPOUND_V2,
237
268
  [CompoundVersions.CompoundV3ETH]: COMPOUND_V3_ETH(networkId),
@@ -241,4 +272,5 @@ export const CompoundMarkets = (networkId: NetworkNumber) => ({
241
272
  [CompoundVersions.CompoundV3USDT]: COMPOUND_V3_USDT(networkId),
242
273
  [CompoundVersions.CompoundV3wstETH]: COMPOUND_V3_WSTETH(networkId),
243
274
  [CompoundVersions.CompoundV3USDS]: COMPOUND_V3_USDS(networkId),
275
+ [CompoundVersions.CompoundV3InstitutionalUSDC]: COMPOUND_V3_INSTITUTIONAL_USDC(networkId),
244
276
  }) as const;
@@ -95,4 +95,15 @@ export const v3wstETHCollAssets = {
95
95
  [NetworkNumber.Base]: [],
96
96
  [NetworkNumber.Linea]: [],
97
97
  [NetworkNumber.Plasma]: [],
98
+ };
99
+
100
+ export const v3InstitutionalUSDCCollAssetsEth = ['ETH', 'wstETH', 'cbBTC', 'WBTC'];
101
+
102
+ export const v3InstitutionalUSDCCollAssets = {
103
+ [NetworkNumber.Eth]: v3InstitutionalUSDCCollAssetsEth,
104
+ [NetworkNumber.Opt]: [],
105
+ [NetworkNumber.Arb]: [],
106
+ [NetworkNumber.Base]: [],
107
+ [NetworkNumber.Linea]: [],
108
+ [NetworkNumber.Plasma]: [],
98
109
  };
@@ -16,6 +16,7 @@ export enum CompoundVersions {
16
16
  'CompoundV3USDT' = 'v3-USDT',
17
17
  'CompoundV3USDS' = 'v3-USDS',
18
18
  'CompoundV3wstETH' = 'v3-wstETH',
19
+ 'CompoundV3InstitutionalUSDC' = 'v3-institutional-USDC',
19
20
  }
20
21
 
21
22
  export enum CompoundVersionType {
@@ -32,6 +33,7 @@ export interface CompoundMarketData {
32
33
  chainIds: NetworkNumber[],
33
34
  label: string,
34
35
  shortLabel: string,
36
+ url: string,
35
37
  value: CompoundVersions,
36
38
  baseAsset: string,
37
39
  collAssets: readonly string[],