@defisaver/positions-sdk 2.1.151-midnight-2-dev → 2.1.151
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.
- package/cjs/claiming/compV3.js +1 -0
- package/cjs/config/contracts.d.ts +0 -4
- package/cjs/config/contracts.js +0 -4
- package/cjs/helpers/morphoMidnightHelpers/tenor.d.ts +2 -6
- package/cjs/helpers/morphoMidnightHelpers/tenor.js +1 -5
- package/cjs/markets/aaveV4/index.d.ts +2 -0
- package/cjs/markets/aaveV4/index.js +13 -1
- package/cjs/markets/index.d.ts +1 -1
- package/cjs/markets/index.js +1 -2
- package/cjs/markets/morphoMidnight/index.d.ts +10 -92
- package/cjs/markets/morphoMidnight/index.js +60 -519
- package/cjs/morphoMidnight/index.js +1 -11
- package/cjs/types/aaveV4.d.ts +1 -0
- package/cjs/types/aaveV4.js +1 -0
- package/cjs/types/morphoMidnight.d.ts +4 -57
- package/cjs/types/morphoMidnight.js +0 -45
- package/esm/claiming/compV3.js +1 -0
- package/esm/config/contracts.d.ts +0 -4
- package/esm/config/contracts.js +0 -4
- package/esm/helpers/morphoMidnightHelpers/tenor.d.ts +2 -6
- package/esm/helpers/morphoMidnightHelpers/tenor.js +2 -6
- package/esm/markets/aaveV4/index.d.ts +2 -0
- package/esm/markets/aaveV4/index.js +11 -0
- package/esm/markets/index.d.ts +1 -1
- package/esm/markets/index.js +1 -1
- package/esm/markets/morphoMidnight/index.d.ts +10 -92
- package/esm/markets/morphoMidnight/index.js +59 -473
- package/esm/morphoMidnight/index.js +1 -11
- package/esm/types/aaveV4.d.ts +1 -0
- package/esm/types/aaveV4.js +1 -0
- package/esm/types/morphoMidnight.d.ts +4 -57
- package/esm/types/morphoMidnight.js +0 -45
- package/package.json +2 -2
- package/src/claiming/compV3.ts +1 -0
- package/src/config/contracts.ts +0 -4
- package/src/helpers/morphoMidnightHelpers/tenor.ts +2 -6
- package/src/markets/aaveV4/index.ts +12 -0
- package/src/markets/index.ts +0 -1
- package/src/markets/morphoMidnight/index.ts +61 -724
- package/src/morphoMidnight/index.ts +1 -8
- package/src/types/aaveV4.ts +1 -0
- package/src/types/morphoMidnight.ts +3 -59
|
@@ -1,46 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.morphoMidnightVisibleCollaterals = exports.morphoMidnightMarketCollateralParams = exports.findMorphoMidnightMarket = exports.isTenorMidnightMarket = exports.MorphoMidnightMarkets = exports.MORPHO_MIDNIGHT_TENOR_WSTETH_WETH_965_20261225_ETH = exports.MORPHO_MIDNIGHT_TENOR_WSTETH_WETH_965_20261127_ETH = exports.MORPHO_MIDNIGHT_TENOR_WSTETH_WETH_965_20261030_ETH = exports.MORPHO_MIDNIGHT_TENOR_WSTETH_WETH_965_20260925_ETH = exports.MORPHO_MIDNIGHT_TENOR_WSRUSD_USDC_945_20261225_ETH = exports.MORPHO_MIDNIGHT_TENOR_WSRUSD_USDC_945_20261127_ETH = exports.MORPHO_MIDNIGHT_TENOR_WSRUSD_USDC_945_20261030_ETH = exports.MORPHO_MIDNIGHT_TENOR_WSRUSD_USDC_945_20260925_ETH = exports.MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20261225_ETH = exports.MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20261127_ETH = exports.MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20261030_ETH = exports.MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20260925_ETH = exports.MORPHO_MIDNIGHT_TENOR_USD3_USDC_915_20261225_ETH = exports.MORPHO_MIDNIGHT_TENOR_USD3_USDC_915_20261127_ETH = exports.MORPHO_MIDNIGHT_TENOR_USD3_USDC_915_20261030_ETH = exports.MORPHO_MIDNIGHT_TENOR_USD3_USDC_915_20260925_ETH = exports.MORPHO_MIDNIGHT_TENOR_STRUSD_USDC_860_20261225_ETH = exports.MORPHO_MIDNIGHT_TENOR_STRUSD_USDC_860_20261127_ETH = exports.MORPHO_MIDNIGHT_TENOR_STRUSD_USDC_860_20261030_ETH = exports.MORPHO_MIDNIGHT_TENOR_STRUSD_USDC_860_20260925_ETH = exports.MORPHO_MIDNIGHT_TENOR_SIUSD_USDC_915_20261225_ETH = exports.MORPHO_MIDNIGHT_TENOR_SIUSD_USDC_915_20261127_ETH = exports.MORPHO_MIDNIGHT_TENOR_SIUSD_USDC_915_20261030_ETH = exports.MORPHO_MIDNIGHT_TENOR_SIUSD_USDC_915_20260925_ETH = exports.MORPHO_MIDNIGHT_TENOR_REUSD_USDC_915_20261225_ETH = exports.MORPHO_MIDNIGHT_TENOR_REUSD_USDC_915_20261127_ETH = exports.MORPHO_MIDNIGHT_TENOR_REUSD_USDC_915_20261030_ETH = void 0;
|
|
3
|
+
exports.morphoMidnightMarketCollateralParams = exports.findMorphoMidnightMarket = exports.isTenorMidnightMarket = exports.MorphoMidnightMarkets = exports.MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20270129 = exports.MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20261225 = exports.MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20261127 = exports.MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20261030 = exports.MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20260925 = exports.MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20270129 = exports.MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20261225 = exports.MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20261127 = exports.MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20261030 = exports.MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20260925 = exports.MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20261217 = exports.MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20261119 = exports.MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20261022 = exports.MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20260924 = exports.MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20260827 = exports.MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20261217 = exports.MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20261119 = exports.MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20261022 = exports.MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20260924 = exports.MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20260827 = exports.MORPHO_MIDNIGHT_TENOR_CBBTC_USDC_860_20261217 = exports.MORPHO_MIDNIGHT_TENOR_CBBTC_USDC_860_20261119 = exports.MORPHO_MIDNIGHT_TENOR_CBBTC_USDC_860_20261022 = exports.MORPHO_MIDNIGHT_TENOR_CBBTC_USDC_860_20260924 = exports.MORPHO_MIDNIGHT_TENOR_CBBTC_USDC_860_20260827 = exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20270129 = exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20261225 = exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20261127 = exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20261030 = exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20260925 = exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20260828 = exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20260731 = exports.MIDNIGHT_BASE = void 0;
|
|
5
4
|
const types_1 = require("../../types");
|
|
6
5
|
const constants_1 = require("../../constants");
|
|
7
6
|
/**
|
|
8
|
-
* Morpho Midnight core contract
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* https://docs.morpho.org/get-started/resources/addresses/.
|
|
7
|
+
* Morpho Midnight core contract on Base. Every Midnight market trades against this one, whoever curates
|
|
8
|
+
* its order book — it is part of the market struct the id is hashed from, and it is what offer tuples
|
|
9
|
+
* encode for `Midnight.take`.
|
|
12
10
|
*/
|
|
13
11
|
exports.MIDNIGHT_BASE = '0xAdedD8ab6dE832766Fedf0FaC4992E5C4D3EA18A';
|
|
14
|
-
exports.MIDNIGHT_ETH = '0x471686c42792F93528B000beF54bC10E3aa2045f';
|
|
15
|
-
const midnightCoreAddress = (network) => (network === types_1.NetworkNumber.Eth ? exports.MIDNIGHT_ETH : exports.MIDNIGHT_BASE);
|
|
16
|
-
exports.midnightCoreAddress = midnightCoreAddress;
|
|
17
12
|
const USDC_BASE = '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913';
|
|
18
13
|
const WETH_BASE = '0x4200000000000000000000000000000000000006';
|
|
19
14
|
const CBBTC_BASE = '0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf';
|
|
20
15
|
const CBETH_BASE = '0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22';
|
|
21
|
-
const USDC_ETH = '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48';
|
|
22
|
-
const WETH_ETH = '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2';
|
|
23
|
-
const WBTC_ETH = '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599';
|
|
24
|
-
const CBBTC_ETH = '0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf';
|
|
25
|
-
const STRUSD_ETH = '0x280839980a7eD0D7717F64125fE241012E5F5815';
|
|
26
|
-
const WSRUSD_ETH = '0xd3fD63209FA2D55B07A0f6db36C2f43900be3094';
|
|
27
|
-
const USD3_ETH = '0x056B269Eb1f75477a8666ae8C7fE01b64dD55eCc';
|
|
28
|
-
const REUSD_ETH = '0x5086bf358635B81D8C47C66d1C8b9E567Db70c72';
|
|
29
|
-
const SIUSD_ETH = '0xDBDC1Ef57537E34680B898E1FEBD3D68c7389bCB';
|
|
30
|
-
const WSTETH_ETH = '0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0';
|
|
31
16
|
// Tenor's ERC-4626 collateral vaults, one per pair and shared by that pair's whole maturity ladder. Each
|
|
32
17
|
// is a collateral of its markets on-chain without being an asset the app deals in — see the note above
|
|
33
18
|
// the Tenor markets below, and https://www.docs.tenor.finance/technical-docs/addresses/#vaults.
|
|
34
19
|
const TENOR_CBBTC_USDC_VAULT_BASE = '0xf6a70085b7f79FA76B04EbF7A2D7D87C3c5c04BC';
|
|
35
20
|
const TENOR_WETH_USDC_VAULT_BASE = '0xe690a58EF52854513462745237F6A213a0d54dF1';
|
|
36
21
|
const TENOR_CBETH_WETH_VAULT_BASE = '0xFa750DD0099eAdB72d401244De73ce7B89edf90F';
|
|
37
|
-
const TENOR_WETH_USDC_VAULT_ETH = '0x7579a75658A7A0b7d277296dFaEecF4018746091';
|
|
38
|
-
const TENOR_STRUSD_USDC_VAULT_ETH = '0xef6955d886fce26D87753dA45192eA50F59dc91c';
|
|
39
|
-
const TENOR_WSRUSD_USDC_VAULT_ETH = '0x09409fa71bCfd3f433571dbeec0C0A9C19B0d30E';
|
|
40
|
-
const TENOR_USD3_USDC_VAULT_ETH = '0x26C46ACb48B46cC99ccB3cf6C365BdaFa2556E80';
|
|
41
|
-
const TENOR_REUSD_USDC_VAULT_ETH = '0xe3891d8cA7E00Bc42157D9bb5797C88D9159AAC6';
|
|
42
|
-
const TENOR_SIUSD_USDC_VAULT_ETH = '0x226ecbf4755a5F81ed721E18c3fDA11f004Ea9e0';
|
|
43
|
-
const TENOR_WSTETH_WETH_VAULT_ETH = '0xe1Bdb88eE5DBaCE653ecD2123E8396BB5BA8adc5';
|
|
44
22
|
// Sourced from the official listing at https://markets.morpho.org/fixed/base
|
|
45
23
|
// BASE — USDC/cbBTC, 86% LLTV, monthly maturity ladder
|
|
46
24
|
const MORPHO_MIDNIGHT_CBBTC_USDC_860_20260731 = (networkId = types_1.NetworkNumber.Base) => ({
|
|
@@ -212,20 +190,19 @@ exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20270129 = MORPHO_MIDNIGHT_CBBTC_USDC_860
|
|
|
212
190
|
// = Tenor's `fixedMarketIdentifier`; they come back `listed: false`, meaning Tenor — not Morpho — serves
|
|
213
191
|
// the book.
|
|
214
192
|
//
|
|
215
|
-
// Every market below is verified
|
|
216
|
-
//
|
|
217
|
-
//
|
|
218
|
-
//
|
|
219
|
-
//
|
|
220
|
-
//
|
|
221
|
-
// a position
|
|
193
|
+
// Every market below is verified against `MidnightView.toMarket(marketId)` on Base: core address,
|
|
194
|
+
// maturity, rcfThreshold, loan token, gates and collaterals all match. On-chain each market carries **two**
|
|
195
|
+
// collaterals — the pair's own token at index 0, and Tenor's ERC-4626 vault at index 1 (98% LLTV; the
|
|
196
|
+
// `metadata.vault` of the parent tenor market, listed at
|
|
197
|
+
// https://www.docs.tenor.finance/technical-docs/addresses/#vaults). The vault is not an asset the app
|
|
198
|
+
// deals in, so it is split out into `hiddenCollaterals` instead of `collaterals`: everything that renders
|
|
199
|
+
// or prices a position sees a single-collateral market, and because the vault stays the *suffix* of the
|
|
200
|
+
// set, the SDK's positional `prices[i]` / `collateral[i]` reads stay aligned with `collaterals`.
|
|
222
201
|
//
|
|
223
|
-
// It is only
|
|
224
|
-
//
|
|
225
|
-
//
|
|
226
|
-
//
|
|
227
|
-
// the flag lives on the entry rather than in a second list. The take path builds no struct — offer
|
|
228
|
-
// tuples carry the market's full collateral set straight from the router's offer JSON.
|
|
202
|
+
// It is only split out, never dropped: the market id is the hash of the full struct, so a `Market` handed
|
|
203
|
+
// to the core has to be `[...collaterals, ...hiddenCollaterals]` or the call addresses a market of its own
|
|
204
|
+
// making. The take path builds no struct — offer tuples carry the market's full collateral set straight
|
|
205
|
+
// from the router's offer JSON.
|
|
229
206
|
const MORPHO_MIDNIGHT_TENOR_CBBTC_USDC_860_20260827 = (networkId = types_1.NetworkNumber.Base) => ({
|
|
230
207
|
chainIds: [types_1.NetworkNumber.Base],
|
|
231
208
|
label: 'Tenor cbBTC/USDC',
|
|
@@ -239,12 +216,12 @@ const MORPHO_MIDNIGHT_TENOR_CBBTC_USDC_860_20260827 = (networkId = types_1.Netwo
|
|
|
239
216
|
lltv: 0.86,
|
|
240
217
|
liquidationCursor: '300000000000000000',
|
|
241
218
|
oracle: '0x663BECd10daE6C4A3Dcd89F1d76c1174199639B9',
|
|
242
|
-
},
|
|
219
|
+
}],
|
|
220
|
+
hiddenCollaterals: [{
|
|
243
221
|
token: TENOR_CBBTC_USDC_VAULT_BASE,
|
|
244
222
|
lltv: 0.98,
|
|
245
223
|
liquidationCursor: '300000000000000000',
|
|
246
224
|
oracle: '0x4a24e4bf269cE26aAD2dF00437e7730d25FCdE26',
|
|
247
|
-
hidden: true,
|
|
248
225
|
}],
|
|
249
226
|
maturity: 1787788800, // 2026-08-27T00:00:00Z
|
|
250
227
|
rcfThreshold: '3000000000',
|
|
@@ -268,12 +245,12 @@ const MORPHO_MIDNIGHT_TENOR_CBBTC_USDC_860_20260924 = (networkId = types_1.Netwo
|
|
|
268
245
|
lltv: 0.86,
|
|
269
246
|
liquidationCursor: '300000000000000000',
|
|
270
247
|
oracle: '0x663BECd10daE6C4A3Dcd89F1d76c1174199639B9',
|
|
271
|
-
},
|
|
248
|
+
}],
|
|
249
|
+
hiddenCollaterals: [{
|
|
272
250
|
token: TENOR_CBBTC_USDC_VAULT_BASE,
|
|
273
251
|
lltv: 0.98,
|
|
274
252
|
liquidationCursor: '300000000000000000',
|
|
275
253
|
oracle: '0x4a24e4bf269cE26aAD2dF00437e7730d25FCdE26',
|
|
276
|
-
hidden: true,
|
|
277
254
|
}],
|
|
278
255
|
maturity: 1790208000, // 2026-09-24T00:00:00Z
|
|
279
256
|
rcfThreshold: '3000000000',
|
|
@@ -297,12 +274,12 @@ const MORPHO_MIDNIGHT_TENOR_CBBTC_USDC_860_20261022 = (networkId = types_1.Netwo
|
|
|
297
274
|
lltv: 0.86,
|
|
298
275
|
liquidationCursor: '300000000000000000',
|
|
299
276
|
oracle: '0x663BECd10daE6C4A3Dcd89F1d76c1174199639B9',
|
|
300
|
-
},
|
|
277
|
+
}],
|
|
278
|
+
hiddenCollaterals: [{
|
|
301
279
|
token: TENOR_CBBTC_USDC_VAULT_BASE,
|
|
302
280
|
lltv: 0.98,
|
|
303
281
|
liquidationCursor: '300000000000000000',
|
|
304
282
|
oracle: '0x4a24e4bf269cE26aAD2dF00437e7730d25FCdE26',
|
|
305
|
-
hidden: true,
|
|
306
283
|
}],
|
|
307
284
|
maturity: 1792627200, // 2026-10-22T00:00:00Z
|
|
308
285
|
rcfThreshold: '3000000000',
|
|
@@ -326,12 +303,12 @@ const MORPHO_MIDNIGHT_TENOR_CBBTC_USDC_860_20261119 = (networkId = types_1.Netwo
|
|
|
326
303
|
lltv: 0.86,
|
|
327
304
|
liquidationCursor: '300000000000000000',
|
|
328
305
|
oracle: '0x663BECd10daE6C4A3Dcd89F1d76c1174199639B9',
|
|
329
|
-
},
|
|
306
|
+
}],
|
|
307
|
+
hiddenCollaterals: [{
|
|
330
308
|
token: TENOR_CBBTC_USDC_VAULT_BASE,
|
|
331
309
|
lltv: 0.98,
|
|
332
310
|
liquidationCursor: '300000000000000000',
|
|
333
311
|
oracle: '0x4a24e4bf269cE26aAD2dF00437e7730d25FCdE26',
|
|
334
|
-
hidden: true,
|
|
335
312
|
}],
|
|
336
313
|
maturity: 1795046400, // 2026-11-19T00:00:00Z
|
|
337
314
|
rcfThreshold: '3000000000',
|
|
@@ -355,12 +332,12 @@ const MORPHO_MIDNIGHT_TENOR_CBBTC_USDC_860_20261217 = (networkId = types_1.Netwo
|
|
|
355
332
|
lltv: 0.86,
|
|
356
333
|
liquidationCursor: '300000000000000000',
|
|
357
334
|
oracle: '0x663BECd10daE6C4A3Dcd89F1d76c1174199639B9',
|
|
358
|
-
},
|
|
335
|
+
}],
|
|
336
|
+
hiddenCollaterals: [{
|
|
359
337
|
token: TENOR_CBBTC_USDC_VAULT_BASE,
|
|
360
338
|
lltv: 0.98,
|
|
361
339
|
liquidationCursor: '300000000000000000',
|
|
362
340
|
oracle: '0x4a24e4bf269cE26aAD2dF00437e7730d25FCdE26',
|
|
363
|
-
hidden: true,
|
|
364
341
|
}],
|
|
365
342
|
maturity: 1797465600, // 2026-12-17T00:00:00Z
|
|
366
343
|
rcfThreshold: '3000000000',
|
|
@@ -384,12 +361,12 @@ const MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20260827 = (networkId = types_1.Networ
|
|
|
384
361
|
lltv: 0.86,
|
|
385
362
|
liquidationCursor: '300000000000000000',
|
|
386
363
|
oracle: '0xFEa2D58cEfCb9fcb597723c6bAE66fFE4193aFE4',
|
|
387
|
-
},
|
|
364
|
+
}],
|
|
365
|
+
hiddenCollaterals: [{
|
|
388
366
|
token: TENOR_WETH_USDC_VAULT_BASE,
|
|
389
367
|
lltv: 0.98,
|
|
390
368
|
liquidationCursor: '300000000000000000',
|
|
391
369
|
oracle: '0x784519B1b59A1e1498f077066bB9336672bcc3EE',
|
|
392
|
-
hidden: true,
|
|
393
370
|
}],
|
|
394
371
|
maturity: 1787788800,
|
|
395
372
|
rcfThreshold: '3000000000',
|
|
@@ -413,12 +390,12 @@ const MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20260924 = (networkId = types_1.Networ
|
|
|
413
390
|
lltv: 0.86,
|
|
414
391
|
liquidationCursor: '300000000000000000',
|
|
415
392
|
oracle: '0xFEa2D58cEfCb9fcb597723c6bAE66fFE4193aFE4',
|
|
416
|
-
},
|
|
393
|
+
}],
|
|
394
|
+
hiddenCollaterals: [{
|
|
417
395
|
token: TENOR_WETH_USDC_VAULT_BASE,
|
|
418
396
|
lltv: 0.98,
|
|
419
397
|
liquidationCursor: '300000000000000000',
|
|
420
398
|
oracle: '0x784519B1b59A1e1498f077066bB9336672bcc3EE',
|
|
421
|
-
hidden: true,
|
|
422
399
|
}],
|
|
423
400
|
maturity: 1790208000,
|
|
424
401
|
rcfThreshold: '3000000000',
|
|
@@ -442,12 +419,12 @@ const MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20261022 = (networkId = types_1.Networ
|
|
|
442
419
|
lltv: 0.86,
|
|
443
420
|
liquidationCursor: '300000000000000000',
|
|
444
421
|
oracle: '0xFEa2D58cEfCb9fcb597723c6bAE66fFE4193aFE4',
|
|
445
|
-
},
|
|
422
|
+
}],
|
|
423
|
+
hiddenCollaterals: [{
|
|
446
424
|
token: TENOR_WETH_USDC_VAULT_BASE,
|
|
447
425
|
lltv: 0.98,
|
|
448
426
|
liquidationCursor: '300000000000000000',
|
|
449
427
|
oracle: '0x784519B1b59A1e1498f077066bB9336672bcc3EE',
|
|
450
|
-
hidden: true,
|
|
451
428
|
}],
|
|
452
429
|
maturity: 1792627200,
|
|
453
430
|
rcfThreshold: '3000000000',
|
|
@@ -471,12 +448,12 @@ const MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20261119 = (networkId = types_1.Networ
|
|
|
471
448
|
lltv: 0.86,
|
|
472
449
|
liquidationCursor: '300000000000000000',
|
|
473
450
|
oracle: '0xFEa2D58cEfCb9fcb597723c6bAE66fFE4193aFE4',
|
|
474
|
-
},
|
|
451
|
+
}],
|
|
452
|
+
hiddenCollaterals: [{
|
|
475
453
|
token: TENOR_WETH_USDC_VAULT_BASE,
|
|
476
454
|
lltv: 0.98,
|
|
477
455
|
liquidationCursor: '300000000000000000',
|
|
478
456
|
oracle: '0x784519B1b59A1e1498f077066bB9336672bcc3EE',
|
|
479
|
-
hidden: true,
|
|
480
457
|
}],
|
|
481
458
|
maturity: 1795046400,
|
|
482
459
|
rcfThreshold: '3000000000',
|
|
@@ -500,12 +477,12 @@ const MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20261217 = (networkId = types_1.Networ
|
|
|
500
477
|
lltv: 0.86,
|
|
501
478
|
liquidationCursor: '300000000000000000',
|
|
502
479
|
oracle: '0xFEa2D58cEfCb9fcb597723c6bAE66fFE4193aFE4',
|
|
503
|
-
},
|
|
480
|
+
}],
|
|
481
|
+
hiddenCollaterals: [{
|
|
504
482
|
token: TENOR_WETH_USDC_VAULT_BASE,
|
|
505
483
|
lltv: 0.98,
|
|
506
484
|
liquidationCursor: '300000000000000000',
|
|
507
485
|
oracle: '0x784519B1b59A1e1498f077066bB9336672bcc3EE',
|
|
508
|
-
hidden: true,
|
|
509
486
|
}],
|
|
510
487
|
maturity: 1797465600,
|
|
511
488
|
rcfThreshold: '3000000000',
|
|
@@ -529,12 +506,12 @@ const MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20260827 = (networkId = types_1.Netwo
|
|
|
529
506
|
lltv: 0.945,
|
|
530
507
|
liquidationCursor: '300000000000000000',
|
|
531
508
|
oracle: '0xB03855Ad5AFD6B8db8091DD5551CAC4ed621d9E6',
|
|
532
|
-
},
|
|
509
|
+
}],
|
|
510
|
+
hiddenCollaterals: [{
|
|
533
511
|
token: TENOR_CBETH_WETH_VAULT_BASE,
|
|
534
512
|
lltv: 0.98,
|
|
535
513
|
liquidationCursor: '300000000000000000',
|
|
536
514
|
oracle: '0xa02f629871be35d6db0F88C944cF955554Ec87c0',
|
|
537
|
-
hidden: true,
|
|
538
515
|
}],
|
|
539
516
|
maturity: 1787788800,
|
|
540
517
|
rcfThreshold: '4000000000000000000',
|
|
@@ -558,12 +535,12 @@ const MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20260924 = (networkId = types_1.Netwo
|
|
|
558
535
|
lltv: 0.945,
|
|
559
536
|
liquidationCursor: '300000000000000000',
|
|
560
537
|
oracle: '0xB03855Ad5AFD6B8db8091DD5551CAC4ed621d9E6',
|
|
561
|
-
},
|
|
538
|
+
}],
|
|
539
|
+
hiddenCollaterals: [{
|
|
562
540
|
token: TENOR_CBETH_WETH_VAULT_BASE,
|
|
563
541
|
lltv: 0.98,
|
|
564
542
|
liquidationCursor: '300000000000000000',
|
|
565
543
|
oracle: '0xa02f629871be35d6db0F88C944cF955554Ec87c0',
|
|
566
|
-
hidden: true,
|
|
567
544
|
}],
|
|
568
545
|
maturity: 1790208000,
|
|
569
546
|
rcfThreshold: '4000000000000000000',
|
|
@@ -587,12 +564,12 @@ const MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20261022 = (networkId = types_1.Netwo
|
|
|
587
564
|
lltv: 0.945,
|
|
588
565
|
liquidationCursor: '300000000000000000',
|
|
589
566
|
oracle: '0xB03855Ad5AFD6B8db8091DD5551CAC4ed621d9E6',
|
|
590
|
-
},
|
|
567
|
+
}],
|
|
568
|
+
hiddenCollaterals: [{
|
|
591
569
|
token: TENOR_CBETH_WETH_VAULT_BASE,
|
|
592
570
|
lltv: 0.98,
|
|
593
571
|
liquidationCursor: '300000000000000000',
|
|
594
572
|
oracle: '0xa02f629871be35d6db0F88C944cF955554Ec87c0',
|
|
595
|
-
hidden: true,
|
|
596
573
|
}],
|
|
597
574
|
maturity: 1792627200,
|
|
598
575
|
rcfThreshold: '4000000000000000000',
|
|
@@ -616,12 +593,12 @@ const MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20261119 = (networkId = types_1.Netwo
|
|
|
616
593
|
lltv: 0.945,
|
|
617
594
|
liquidationCursor: '300000000000000000',
|
|
618
595
|
oracle: '0xB03855Ad5AFD6B8db8091DD5551CAC4ed621d9E6',
|
|
619
|
-
},
|
|
596
|
+
}],
|
|
597
|
+
hiddenCollaterals: [{
|
|
620
598
|
token: TENOR_CBETH_WETH_VAULT_BASE,
|
|
621
599
|
lltv: 0.98,
|
|
622
600
|
liquidationCursor: '300000000000000000',
|
|
623
601
|
oracle: '0xa02f629871be35d6db0F88C944cF955554Ec87c0',
|
|
624
|
-
hidden: true,
|
|
625
602
|
}],
|
|
626
603
|
maturity: 1795046400,
|
|
627
604
|
rcfThreshold: '4000000000000000000',
|
|
@@ -645,12 +622,12 @@ const MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20261217 = (networkId = types_1.Netwo
|
|
|
645
622
|
lltv: 0.945,
|
|
646
623
|
liquidationCursor: '300000000000000000',
|
|
647
624
|
oracle: '0xB03855Ad5AFD6B8db8091DD5551CAC4ed621d9E6',
|
|
648
|
-
},
|
|
625
|
+
}],
|
|
626
|
+
hiddenCollaterals: [{
|
|
649
627
|
token: TENOR_CBETH_WETH_VAULT_BASE,
|
|
650
628
|
lltv: 0.98,
|
|
651
629
|
liquidationCursor: '300000000000000000',
|
|
652
630
|
oracle: '0xa02f629871be35d6db0F88C944cF955554Ec87c0',
|
|
653
|
-
hidden: true,
|
|
654
631
|
}],
|
|
655
632
|
maturity: 1797465600,
|
|
656
633
|
rcfThreshold: '4000000000000000000',
|
|
@@ -676,12 +653,12 @@ const createTenorWethUsdcRollingMarket = (value, url, maturity, marketId) => ({
|
|
|
676
653
|
lltv: 0.86,
|
|
677
654
|
liquidationCursor: '300000000000000000',
|
|
678
655
|
oracle: '0xFEa2D58cEfCb9fcb597723c6bAE66fFE4193aFE4',
|
|
679
|
-
},
|
|
656
|
+
}],
|
|
657
|
+
hiddenCollaterals: [{
|
|
680
658
|
token: TENOR_WETH_USDC_VAULT_BASE,
|
|
681
659
|
lltv: 0.98,
|
|
682
660
|
liquidationCursor: '300000000000000000',
|
|
683
661
|
oracle: '0x784519B1b59A1e1498f077066bB9336672bcc3EE',
|
|
684
|
-
hidden: true,
|
|
685
662
|
}],
|
|
686
663
|
maturity,
|
|
687
664
|
rcfThreshold: '3000000000',
|
|
@@ -704,12 +681,12 @@ const createTenorCbEthWethRollingMarket = (value, url, maturity, marketId) => ({
|
|
|
704
681
|
lltv: 0.945,
|
|
705
682
|
liquidationCursor: '300000000000000000',
|
|
706
683
|
oracle: '0xB03855Ad5AFD6B8db8091DD5551CAC4ed621d9E6',
|
|
707
|
-
},
|
|
684
|
+
}],
|
|
685
|
+
hiddenCollaterals: [{
|
|
708
686
|
token: TENOR_CBETH_WETH_VAULT_BASE,
|
|
709
687
|
lltv: 0.98,
|
|
710
688
|
liquidationCursor: '300000000000000000',
|
|
711
689
|
oracle: '0xa02f629871be35d6db0F88C944cF955554Ec87c0',
|
|
712
|
-
hidden: true,
|
|
713
690
|
}],
|
|
714
691
|
maturity,
|
|
715
692
|
rcfThreshold: '4000000000000000000',
|
|
@@ -739,394 +716,7 @@ const MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20261225 = () => createTenorCbEthWeth
|
|
|
739
716
|
exports.MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20261225 = MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20261225;
|
|
740
717
|
const MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20270129 = () => createTenorCbEthWethRollingMarket(types_1.MorphoMidnightVersions.MorphoMidnightTenorCbETHWETH_20270129_Base, 'tenor-cbeth-weth-20270129', 1801234800, '0x3cfda244eeec7e5cda2a07ef23e2a5e3fe6ba17882417cafbf3f3c432377ff1d');
|
|
741
718
|
exports.MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20270129 = MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20270129;
|
|
742
|
-
|
|
743
|
-
const createWBTCUsdcEthMarket = (value, url, maturity, marketId) => ({
|
|
744
|
-
chainIds: [types_1.NetworkNumber.Eth],
|
|
745
|
-
label: 'Morpho Midnight WBTC/USDC',
|
|
746
|
-
shortLabel: 'WBTC/USDC',
|
|
747
|
-
url,
|
|
748
|
-
value,
|
|
749
|
-
midnight: exports.MIDNIGHT_ETH,
|
|
750
|
-
loanToken: USDC_ETH,
|
|
751
|
-
collaterals: [{
|
|
752
|
-
token: WBTC_ETH,
|
|
753
|
-
lltv: 0.86,
|
|
754
|
-
liquidationCursor: '300000000000000000',
|
|
755
|
-
oracle: '0xDddd770BADd886dF3864029e4B377B5F6a2B6b83',
|
|
756
|
-
}, {
|
|
757
|
-
token: USDC_ETH,
|
|
758
|
-
lltv: 0.98,
|
|
759
|
-
liquidationCursor: '300000000000000000',
|
|
760
|
-
oracle: '0x8d1A84515B54C58bAc3b18315B6b1f17dA5cf6ca',
|
|
761
|
-
hidden: true,
|
|
762
|
-
}],
|
|
763
|
-
maturity,
|
|
764
|
-
rcfThreshold: '300000000000',
|
|
765
|
-
enterGate: constants_1.ZERO_ADDRESS,
|
|
766
|
-
liquidatorGate: constants_1.ZERO_ADDRESS,
|
|
767
|
-
marketId,
|
|
768
|
-
protocolName: 'morpho-midnight',
|
|
769
|
-
curator: 'Morpho',
|
|
770
|
-
});
|
|
771
|
-
const createCbBTCUsdcEthMarket = (value, url, maturity, marketId) => ({
|
|
772
|
-
chainIds: [types_1.NetworkNumber.Eth],
|
|
773
|
-
label: 'Morpho Midnight cbBTC/USDC',
|
|
774
|
-
shortLabel: 'cbBTC/USDC',
|
|
775
|
-
url,
|
|
776
|
-
value,
|
|
777
|
-
midnight: exports.MIDNIGHT_ETH,
|
|
778
|
-
loanToken: USDC_ETH,
|
|
779
|
-
collaterals: [{
|
|
780
|
-
token: USDC_ETH,
|
|
781
|
-
lltv: 0.98,
|
|
782
|
-
liquidationCursor: '300000000000000000',
|
|
783
|
-
oracle: '0x8d1A84515B54C58bAc3b18315B6b1f17dA5cf6ca',
|
|
784
|
-
hidden: true,
|
|
785
|
-
}, {
|
|
786
|
-
token: CBBTC_ETH,
|
|
787
|
-
lltv: 0.86,
|
|
788
|
-
liquidationCursor: '300000000000000000',
|
|
789
|
-
oracle: '0xA6D6950c9F177F1De7f7757FB33539e3Ec60182a',
|
|
790
|
-
}],
|
|
791
|
-
maturity,
|
|
792
|
-
rcfThreshold: '300000000000',
|
|
793
|
-
enterGate: constants_1.ZERO_ADDRESS,
|
|
794
|
-
liquidatorGate: constants_1.ZERO_ADDRESS,
|
|
795
|
-
marketId,
|
|
796
|
-
protocolName: 'morpho-midnight',
|
|
797
|
-
curator: 'Morpho',
|
|
798
|
-
});
|
|
799
|
-
const MORPHO_MIDNIGHT_WBTC_USDC_860_20260925_ETH = () => createWBTCUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightWBTCUSDC_860_20260925_Eth, 'wbtc-usdc-20260925', 1790348400, // 2026-09-25T15:00:00Z
|
|
800
|
-
'0x6dae37424723dd8cef0da2db84fd2819f7dfa4e3a98e602ccc3c65ee1fac61c2');
|
|
801
|
-
exports.MORPHO_MIDNIGHT_WBTC_USDC_860_20260925_ETH = MORPHO_MIDNIGHT_WBTC_USDC_860_20260925_ETH;
|
|
802
|
-
const MORPHO_MIDNIGHT_WBTC_USDC_860_20261030_ETH = () => createWBTCUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightWBTCUSDC_860_20261030_Eth, 'wbtc-usdc-20261030', 1793372400, // 2026-10-30T15:00:00Z
|
|
803
|
-
'0xe5e6fbd5d81875dbfb0c94866cb0d300e1c7b9aacc0a458e63dccbcc0ce278c8');
|
|
804
|
-
exports.MORPHO_MIDNIGHT_WBTC_USDC_860_20261030_ETH = MORPHO_MIDNIGHT_WBTC_USDC_860_20261030_ETH;
|
|
805
|
-
const MORPHO_MIDNIGHT_WBTC_USDC_860_20261127_ETH = () => createWBTCUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightWBTCUSDC_860_20261127_Eth, 'wbtc-usdc-20261127', 1795791600, // 2026-11-27T15:00:00Z
|
|
806
|
-
'0xe0efc89dc1f747ba502f6a4100b6b1db9ebd0d57569fd5a54771d3a026b6a27b');
|
|
807
|
-
exports.MORPHO_MIDNIGHT_WBTC_USDC_860_20261127_ETH = MORPHO_MIDNIGHT_WBTC_USDC_860_20261127_ETH;
|
|
808
|
-
const MORPHO_MIDNIGHT_WBTC_USDC_860_20261225_ETH = () => createWBTCUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightWBTCUSDC_860_20261225_Eth, 'wbtc-usdc-20261225', 1798210800, // 2026-12-25T15:00:00Z
|
|
809
|
-
'0x3323abf2d2a3ec804f46552db920d900bb9c7ffd3f48143ab879a918fd6c0977');
|
|
810
|
-
exports.MORPHO_MIDNIGHT_WBTC_USDC_860_20261225_ETH = MORPHO_MIDNIGHT_WBTC_USDC_860_20261225_ETH;
|
|
811
|
-
const MORPHO_MIDNIGHT_WBTC_USDC_860_20270129_ETH = () => createWBTCUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightWBTCUSDC_860_20270129_Eth, 'wbtc-usdc-20270129', 1801234800, // 2027-01-29T15:00:00Z
|
|
812
|
-
'0xf8052f557ce70d39cf9da1bd6e37e44a49f51757afb5dc881f675490ca6b3e9f');
|
|
813
|
-
exports.MORPHO_MIDNIGHT_WBTC_USDC_860_20270129_ETH = MORPHO_MIDNIGHT_WBTC_USDC_860_20270129_ETH;
|
|
814
|
-
const MORPHO_MIDNIGHT_WBTC_USDC_860_20270226_ETH = () => createWBTCUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightWBTCUSDC_860_20270226_Eth, 'wbtc-usdc-20270226', 1803654000, // 2027-02-26T15:00:00Z
|
|
815
|
-
'0x7e399db474781e92b22b5a647d811959f65997b1e2bb68deaade674d8afbbdbd');
|
|
816
|
-
exports.MORPHO_MIDNIGHT_WBTC_USDC_860_20270226_ETH = MORPHO_MIDNIGHT_WBTC_USDC_860_20270226_ETH;
|
|
817
|
-
const MORPHO_MIDNIGHT_WBTC_USDC_860_20270326_ETH = () => createWBTCUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightWBTCUSDC_860_20270326_Eth, 'wbtc-usdc-20270326', 1806073200, // 2027-03-26T15:00:00Z
|
|
818
|
-
'0x54a722a6dbaa237cfe088afd295417091bfb792fe3fac96999af41635977b2b0');
|
|
819
|
-
exports.MORPHO_MIDNIGHT_WBTC_USDC_860_20270326_ETH = MORPHO_MIDNIGHT_WBTC_USDC_860_20270326_ETH;
|
|
820
|
-
const MORPHO_MIDNIGHT_CBBTC_USDC_860_20260925_ETH = () => createCbBTCUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightCbBTCUSDC_860_20260925_Eth, 'cbbtc-usdc-20260925', 1790348400, // 2026-09-25T15:00:00Z
|
|
821
|
-
'0x2a9ae59053a64e409e819d3b76750948e06065b3164278915eb80cb1b7474b65');
|
|
822
|
-
exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20260925_ETH = MORPHO_MIDNIGHT_CBBTC_USDC_860_20260925_ETH;
|
|
823
|
-
const MORPHO_MIDNIGHT_CBBTC_USDC_860_20261030_ETH = () => createCbBTCUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightCbBTCUSDC_860_20261030_Eth, 'cbbtc-usdc-20261030', 1793372400, // 2026-10-30T15:00:00Z
|
|
824
|
-
'0xeea94e3f7185bb8cfcdf41aca2c9776788e86d6c14de345b911b04f75cd49959');
|
|
825
|
-
exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20261030_ETH = MORPHO_MIDNIGHT_CBBTC_USDC_860_20261030_ETH;
|
|
826
|
-
const MORPHO_MIDNIGHT_CBBTC_USDC_860_20261127_ETH = () => createCbBTCUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightCbBTCUSDC_860_20261127_Eth, 'cbbtc-usdc-20261127', 1795791600, // 2026-11-27T15:00:00Z
|
|
827
|
-
'0xa6454499939a47927d3d27d65dce18486cc2aabbf75f8f5f8482e93567f4a183');
|
|
828
|
-
exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20261127_ETH = MORPHO_MIDNIGHT_CBBTC_USDC_860_20261127_ETH;
|
|
829
|
-
const MORPHO_MIDNIGHT_CBBTC_USDC_860_20261225_ETH = () => createCbBTCUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightCbBTCUSDC_860_20261225_Eth, 'cbbtc-usdc-20261225', 1798210800, // 2026-12-25T15:00:00Z
|
|
830
|
-
'0xcf447db8cff164867b02edbf7ee7af06d241d4f3a44b34d6e3a3ea872ddea5d6');
|
|
831
|
-
exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20261225_ETH = MORPHO_MIDNIGHT_CBBTC_USDC_860_20261225_ETH;
|
|
832
|
-
const MORPHO_MIDNIGHT_CBBTC_USDC_860_20270129_ETH = () => createCbBTCUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightCbBTCUSDC_860_20270129_Eth, 'cbbtc-usdc-20270129', 1801234800, // 2027-01-29T15:00:00Z
|
|
833
|
-
'0x9ea83106928cf45829a89c02cea7c73cb3a066d2429d7ca2fcdc0015dc191df1');
|
|
834
|
-
exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20270129_ETH = MORPHO_MIDNIGHT_CBBTC_USDC_860_20270129_ETH;
|
|
835
|
-
const MORPHO_MIDNIGHT_CBBTC_USDC_860_20270226_ETH = () => createCbBTCUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightCbBTCUSDC_860_20270226_Eth, 'cbbtc-usdc-20270226', 1803654000, // 2027-02-26T15:00:00Z
|
|
836
|
-
'0xf9c1a9849863863a87600beb24394985a04ad3256b0c750baee0841f35f7f0e2');
|
|
837
|
-
exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20270226_ETH = MORPHO_MIDNIGHT_CBBTC_USDC_860_20270226_ETH;
|
|
838
|
-
const MORPHO_MIDNIGHT_CBBTC_USDC_860_20270326_ETH = () => createCbBTCUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightCbBTCUSDC_860_20270326_Eth, 'cbbtc-usdc-20270326', 1806073200, // 2027-03-26T15:00:00Z
|
|
839
|
-
'0xb00767d2cc7d5d9e27501a14e7912a089e34da675a2eb9e030072233db2c4c3b');
|
|
840
|
-
exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20270326_ETH = MORPHO_MIDNIGHT_CBBTC_USDC_860_20270326_ETH;
|
|
841
|
-
// ETHEREUM — Tenor-curated, one rolling ladder per pair
|
|
842
|
-
const createTenorReUSDUsdcEthMarket = (value, url, maturity, marketId) => ({
|
|
843
|
-
chainIds: [types_1.NetworkNumber.Eth],
|
|
844
|
-
label: 'Tenor reUSD/USDC',
|
|
845
|
-
shortLabel: 'Tenor reUSD/USDC',
|
|
846
|
-
url,
|
|
847
|
-
value,
|
|
848
|
-
midnight: exports.MIDNIGHT_ETH,
|
|
849
|
-
loanToken: USDC_ETH,
|
|
850
|
-
collaterals: [{
|
|
851
|
-
token: REUSD_ETH,
|
|
852
|
-
lltv: 0.915,
|
|
853
|
-
liquidationCursor: '300000000000000000',
|
|
854
|
-
oracle: '0xA66a4F03Fd8031973f8C7718904ce32385f54E70',
|
|
855
|
-
}, {
|
|
856
|
-
token: TENOR_REUSD_USDC_VAULT_ETH,
|
|
857
|
-
lltv: 0.98,
|
|
858
|
-
liquidationCursor: '300000000000000000',
|
|
859
|
-
oracle: '0xE5f7f5A74E6f4dA2F68b1aa017F204a1883eC0df',
|
|
860
|
-
hidden: true,
|
|
861
|
-
}],
|
|
862
|
-
maturity,
|
|
863
|
-
rcfThreshold: '500000000000',
|
|
864
|
-
enterGate: constants_1.ZERO_ADDRESS,
|
|
865
|
-
liquidatorGate: constants_1.ZERO_ADDRESS,
|
|
866
|
-
marketId,
|
|
867
|
-
protocolName: 'morpho-midnight',
|
|
868
|
-
curator: 'Tenor',
|
|
869
|
-
});
|
|
870
|
-
const MORPHO_MIDNIGHT_TENOR_REUSD_USDC_915_20260925_ETH = () => createTenorReUSDUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightTenorReUSDUSDC_20260925_Eth, 'tenor-reusd-usdc-20260925', 1790348400, // 2026-09-25T15:00:00Z
|
|
871
|
-
'0xdba251b941d135577e1b423301b2eb6a76dfe11479c843185d20bee9208e7393');
|
|
872
|
-
exports.MORPHO_MIDNIGHT_TENOR_REUSD_USDC_915_20260925_ETH = MORPHO_MIDNIGHT_TENOR_REUSD_USDC_915_20260925_ETH;
|
|
873
|
-
const MORPHO_MIDNIGHT_TENOR_REUSD_USDC_915_20261030_ETH = () => createTenorReUSDUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightTenorReUSDUSDC_20261030_Eth, 'tenor-reusd-usdc-20261030', 1793372400, // 2026-10-30T15:00:00Z
|
|
874
|
-
'0x0fdbbc14a6275905b3fc7372e7ce2828eafced9f2c3e442990682055839092c3');
|
|
875
|
-
exports.MORPHO_MIDNIGHT_TENOR_REUSD_USDC_915_20261030_ETH = MORPHO_MIDNIGHT_TENOR_REUSD_USDC_915_20261030_ETH;
|
|
876
|
-
const MORPHO_MIDNIGHT_TENOR_REUSD_USDC_915_20261127_ETH = () => createTenorReUSDUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightTenorReUSDUSDC_20261127_Eth, 'tenor-reusd-usdc-20261127', 1795791600, // 2026-11-27T15:00:00Z
|
|
877
|
-
'0x1cf59f7382f72aee174e251ffaed5b8ada9e052da326fc3f32626bb52e126db6');
|
|
878
|
-
exports.MORPHO_MIDNIGHT_TENOR_REUSD_USDC_915_20261127_ETH = MORPHO_MIDNIGHT_TENOR_REUSD_USDC_915_20261127_ETH;
|
|
879
|
-
const MORPHO_MIDNIGHT_TENOR_REUSD_USDC_915_20261225_ETH = () => createTenorReUSDUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightTenorReUSDUSDC_20261225_Eth, 'tenor-reusd-usdc-20261225', 1798210800, // 2026-12-25T15:00:00Z
|
|
880
|
-
'0xc78981202d07dae20266843ca668a20057beaafe3291b326529558227a03c9ad');
|
|
881
|
-
exports.MORPHO_MIDNIGHT_TENOR_REUSD_USDC_915_20261225_ETH = MORPHO_MIDNIGHT_TENOR_REUSD_USDC_915_20261225_ETH;
|
|
882
|
-
const createTenorSiUSDUsdcEthMarket = (value, url, maturity, marketId) => ({
|
|
883
|
-
chainIds: [types_1.NetworkNumber.Eth],
|
|
884
|
-
label: 'Tenor siUSD/USDC',
|
|
885
|
-
shortLabel: 'Tenor siUSD/USDC',
|
|
886
|
-
url,
|
|
887
|
-
value,
|
|
888
|
-
midnight: exports.MIDNIGHT_ETH,
|
|
889
|
-
loanToken: USDC_ETH,
|
|
890
|
-
collaterals: [{
|
|
891
|
-
token: TENOR_SIUSD_USDC_VAULT_ETH,
|
|
892
|
-
lltv: 0.98,
|
|
893
|
-
liquidationCursor: '300000000000000000',
|
|
894
|
-
oracle: '0xE872d1d33b13B52aE7cD9A0CDD4102468350e5fa',
|
|
895
|
-
hidden: true,
|
|
896
|
-
}, {
|
|
897
|
-
token: SIUSD_ETH,
|
|
898
|
-
lltv: 0.915,
|
|
899
|
-
liquidationCursor: '300000000000000000',
|
|
900
|
-
oracle: '0xd2cC46b9B2D761502eF933320ecf0268EC0dfa6d',
|
|
901
|
-
}],
|
|
902
|
-
maturity,
|
|
903
|
-
rcfThreshold: '500000000000',
|
|
904
|
-
enterGate: constants_1.ZERO_ADDRESS,
|
|
905
|
-
liquidatorGate: constants_1.ZERO_ADDRESS,
|
|
906
|
-
marketId,
|
|
907
|
-
protocolName: 'morpho-midnight',
|
|
908
|
-
curator: 'Tenor',
|
|
909
|
-
});
|
|
910
|
-
const MORPHO_MIDNIGHT_TENOR_SIUSD_USDC_915_20260925_ETH = () => createTenorSiUSDUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightTenorSiUSDUSDC_20260925_Eth, 'tenor-siusd-usdc-20260925', 1790348400, // 2026-09-25T15:00:00Z
|
|
911
|
-
'0x48d95ace842493ce2c1c474c0cb60ac208e9d8a714258e278af9c8ae01a88fa5');
|
|
912
|
-
exports.MORPHO_MIDNIGHT_TENOR_SIUSD_USDC_915_20260925_ETH = MORPHO_MIDNIGHT_TENOR_SIUSD_USDC_915_20260925_ETH;
|
|
913
|
-
const MORPHO_MIDNIGHT_TENOR_SIUSD_USDC_915_20261030_ETH = () => createTenorSiUSDUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightTenorSiUSDUSDC_20261030_Eth, 'tenor-siusd-usdc-20261030', 1793372400, // 2026-10-30T15:00:00Z
|
|
914
|
-
'0x64985d39a1bae43d2741e7900cd42a2456dbacaee10e73f937abb1c9885d79da');
|
|
915
|
-
exports.MORPHO_MIDNIGHT_TENOR_SIUSD_USDC_915_20261030_ETH = MORPHO_MIDNIGHT_TENOR_SIUSD_USDC_915_20261030_ETH;
|
|
916
|
-
const MORPHO_MIDNIGHT_TENOR_SIUSD_USDC_915_20261127_ETH = () => createTenorSiUSDUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightTenorSiUSDUSDC_20261127_Eth, 'tenor-siusd-usdc-20261127', 1795791600, // 2026-11-27T15:00:00Z
|
|
917
|
-
'0xed33721166c3f28bc834ce34135cf19b407056275eedf5faf662ccc7a821b7eb');
|
|
918
|
-
exports.MORPHO_MIDNIGHT_TENOR_SIUSD_USDC_915_20261127_ETH = MORPHO_MIDNIGHT_TENOR_SIUSD_USDC_915_20261127_ETH;
|
|
919
|
-
const MORPHO_MIDNIGHT_TENOR_SIUSD_USDC_915_20261225_ETH = () => createTenorSiUSDUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightTenorSiUSDUSDC_20261225_Eth, 'tenor-siusd-usdc-20261225', 1798210800, // 2026-12-25T15:00:00Z
|
|
920
|
-
'0xe47e71bd0faf8383881b81b7d781ab93bf7bd4d4dc44c9c40add360841e5b26d');
|
|
921
|
-
exports.MORPHO_MIDNIGHT_TENOR_SIUSD_USDC_915_20261225_ETH = MORPHO_MIDNIGHT_TENOR_SIUSD_USDC_915_20261225_ETH;
|
|
922
|
-
const createTenorStrUSDUsdcEthMarket = (value, url, maturity, marketId) => ({
|
|
923
|
-
chainIds: [types_1.NetworkNumber.Eth],
|
|
924
|
-
label: 'Tenor strUSD/USDC',
|
|
925
|
-
shortLabel: 'Tenor strUSD/USDC',
|
|
926
|
-
url,
|
|
927
|
-
value,
|
|
928
|
-
midnight: exports.MIDNIGHT_ETH,
|
|
929
|
-
loanToken: USDC_ETH,
|
|
930
|
-
collaterals: [{
|
|
931
|
-
token: STRUSD_ETH,
|
|
932
|
-
lltv: 0.86,
|
|
933
|
-
liquidationCursor: '300000000000000000',
|
|
934
|
-
oracle: '0x1506c98cE61aC63c8438B710C054a51c5dD9A6A4',
|
|
935
|
-
}, {
|
|
936
|
-
token: TENOR_STRUSD_USDC_VAULT_ETH,
|
|
937
|
-
lltv: 0.98,
|
|
938
|
-
liquidationCursor: '300000000000000000',
|
|
939
|
-
oracle: '0x361904890a43d4af2D1b8cF642A6C5e661Da5641',
|
|
940
|
-
hidden: true,
|
|
941
|
-
}],
|
|
942
|
-
maturity,
|
|
943
|
-
rcfThreshold: '300000000000',
|
|
944
|
-
enterGate: constants_1.ZERO_ADDRESS,
|
|
945
|
-
liquidatorGate: constants_1.ZERO_ADDRESS,
|
|
946
|
-
marketId,
|
|
947
|
-
protocolName: 'morpho-midnight',
|
|
948
|
-
curator: 'Tenor',
|
|
949
|
-
});
|
|
950
|
-
const MORPHO_MIDNIGHT_TENOR_STRUSD_USDC_860_20260925_ETH = () => createTenorStrUSDUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightTenorStrUSDUSDC_20260925_Eth, 'tenor-strusd-usdc-20260925', 1790348400, // 2026-09-25T15:00:00Z
|
|
951
|
-
'0xa46399e45fe90b7d3c0488c4c73e9b361f758c4481734832a43d764ccdde0c64');
|
|
952
|
-
exports.MORPHO_MIDNIGHT_TENOR_STRUSD_USDC_860_20260925_ETH = MORPHO_MIDNIGHT_TENOR_STRUSD_USDC_860_20260925_ETH;
|
|
953
|
-
const MORPHO_MIDNIGHT_TENOR_STRUSD_USDC_860_20261030_ETH = () => createTenorStrUSDUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightTenorStrUSDUSDC_20261030_Eth, 'tenor-strusd-usdc-20261030', 1793372400, // 2026-10-30T15:00:00Z
|
|
954
|
-
'0xe473f755d4bd358a676d9385036d8a9e28b64aac250d0959d56d935bed80d675');
|
|
955
|
-
exports.MORPHO_MIDNIGHT_TENOR_STRUSD_USDC_860_20261030_ETH = MORPHO_MIDNIGHT_TENOR_STRUSD_USDC_860_20261030_ETH;
|
|
956
|
-
const MORPHO_MIDNIGHT_TENOR_STRUSD_USDC_860_20261127_ETH = () => createTenorStrUSDUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightTenorStrUSDUSDC_20261127_Eth, 'tenor-strusd-usdc-20261127', 1795791600, // 2026-11-27T15:00:00Z
|
|
957
|
-
'0x41d4f364feb13ead0b892b252eeb3636969de96a5be843400c86835aa98b1d67');
|
|
958
|
-
exports.MORPHO_MIDNIGHT_TENOR_STRUSD_USDC_860_20261127_ETH = MORPHO_MIDNIGHT_TENOR_STRUSD_USDC_860_20261127_ETH;
|
|
959
|
-
const MORPHO_MIDNIGHT_TENOR_STRUSD_USDC_860_20261225_ETH = () => createTenorStrUSDUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightTenorStrUSDUSDC_20261225_Eth, 'tenor-strusd-usdc-20261225', 1798210800, // 2026-12-25T15:00:00Z
|
|
960
|
-
'0x91e872193d98f3452424b5dd05e15ac291ed38236af5ff9ff02371bb8efbedb7');
|
|
961
|
-
exports.MORPHO_MIDNIGHT_TENOR_STRUSD_USDC_860_20261225_ETH = MORPHO_MIDNIGHT_TENOR_STRUSD_USDC_860_20261225_ETH;
|
|
962
|
-
const createTenorUSD3UsdcEthMarket = (value, url, maturity, marketId) => ({
|
|
963
|
-
chainIds: [types_1.NetworkNumber.Eth],
|
|
964
|
-
label: 'Tenor USD3/USDC',
|
|
965
|
-
shortLabel: 'Tenor USD3/USDC',
|
|
966
|
-
url,
|
|
967
|
-
value,
|
|
968
|
-
midnight: exports.MIDNIGHT_ETH,
|
|
969
|
-
loanToken: USDC_ETH,
|
|
970
|
-
collaterals: [{
|
|
971
|
-
token: USD3_ETH,
|
|
972
|
-
lltv: 0.915,
|
|
973
|
-
liquidationCursor: '300000000000000000',
|
|
974
|
-
oracle: '0x68b4c2B2b2e245AB54a3bD55DfD5A9d84f029C06',
|
|
975
|
-
}, {
|
|
976
|
-
token: TENOR_USD3_USDC_VAULT_ETH,
|
|
977
|
-
lltv: 0.98,
|
|
978
|
-
liquidationCursor: '300000000000000000',
|
|
979
|
-
oracle: '0x2C198EC459e0a035078565dEdc3c206604b57d4D',
|
|
980
|
-
hidden: true,
|
|
981
|
-
}],
|
|
982
|
-
maturity,
|
|
983
|
-
rcfThreshold: '500000000000',
|
|
984
|
-
enterGate: constants_1.ZERO_ADDRESS,
|
|
985
|
-
liquidatorGate: constants_1.ZERO_ADDRESS,
|
|
986
|
-
marketId,
|
|
987
|
-
protocolName: 'morpho-midnight',
|
|
988
|
-
curator: 'Tenor',
|
|
989
|
-
});
|
|
990
|
-
const MORPHO_MIDNIGHT_TENOR_USD3_USDC_915_20260925_ETH = () => createTenorUSD3UsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightTenorUSD3USDC_20260925_Eth, 'tenor-usd3-usdc-20260925', 1790348400, // 2026-09-25T15:00:00Z
|
|
991
|
-
'0x1edea0a3875af341ea885fc7eac7e02bfce90c534a1602dbd40fefccfe4c24d4');
|
|
992
|
-
exports.MORPHO_MIDNIGHT_TENOR_USD3_USDC_915_20260925_ETH = MORPHO_MIDNIGHT_TENOR_USD3_USDC_915_20260925_ETH;
|
|
993
|
-
const MORPHO_MIDNIGHT_TENOR_USD3_USDC_915_20261030_ETH = () => createTenorUSD3UsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightTenorUSD3USDC_20261030_Eth, 'tenor-usd3-usdc-20261030', 1793372400, // 2026-10-30T15:00:00Z
|
|
994
|
-
'0x11c6795118a68a7bf5d8995240614454291a698ac387aa6c0e23db46ec5112ed');
|
|
995
|
-
exports.MORPHO_MIDNIGHT_TENOR_USD3_USDC_915_20261030_ETH = MORPHO_MIDNIGHT_TENOR_USD3_USDC_915_20261030_ETH;
|
|
996
|
-
const MORPHO_MIDNIGHT_TENOR_USD3_USDC_915_20261127_ETH = () => createTenorUSD3UsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightTenorUSD3USDC_20261127_Eth, 'tenor-usd3-usdc-20261127', 1795791600, // 2026-11-27T15:00:00Z
|
|
997
|
-
'0x72ee2771278a1d78e7970a60dc1723c95e16a4384893b044cdbd707347f1abf6');
|
|
998
|
-
exports.MORPHO_MIDNIGHT_TENOR_USD3_USDC_915_20261127_ETH = MORPHO_MIDNIGHT_TENOR_USD3_USDC_915_20261127_ETH;
|
|
999
|
-
const MORPHO_MIDNIGHT_TENOR_USD3_USDC_915_20261225_ETH = () => createTenorUSD3UsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightTenorUSD3USDC_20261225_Eth, 'tenor-usd3-usdc-20261225', 1798210800, // 2026-12-25T15:00:00Z
|
|
1000
|
-
'0x2a6b8c5d4fc953e0f747590267d7b4018f35246ba0fdbf8adbc269a2491bdde1');
|
|
1001
|
-
exports.MORPHO_MIDNIGHT_TENOR_USD3_USDC_915_20261225_ETH = MORPHO_MIDNIGHT_TENOR_USD3_USDC_915_20261225_ETH;
|
|
1002
|
-
const createTenorWETHUsdcEthMarket = (value, url, maturity, marketId) => ({
|
|
1003
|
-
chainIds: [types_1.NetworkNumber.Eth],
|
|
1004
|
-
label: 'Tenor WETH/USDC',
|
|
1005
|
-
shortLabel: 'Tenor WETH/USDC',
|
|
1006
|
-
url,
|
|
1007
|
-
value,
|
|
1008
|
-
midnight: exports.MIDNIGHT_ETH,
|
|
1009
|
-
loanToken: USDC_ETH,
|
|
1010
|
-
collaterals: [{
|
|
1011
|
-
token: TENOR_WETH_USDC_VAULT_ETH,
|
|
1012
|
-
lltv: 0.98,
|
|
1013
|
-
liquidationCursor: '300000000000000000',
|
|
1014
|
-
oracle: '0x5c4fd2864C21F0b81730B4EC74030130aA2193Ca',
|
|
1015
|
-
hidden: true,
|
|
1016
|
-
}, {
|
|
1017
|
-
token: WETH_ETH,
|
|
1018
|
-
lltv: 0.86,
|
|
1019
|
-
liquidationCursor: '300000000000000000',
|
|
1020
|
-
oracle: '0x0F948CBa8231Db7898ef36A4212581Ad7b1B4580',
|
|
1021
|
-
}],
|
|
1022
|
-
maturity,
|
|
1023
|
-
rcfThreshold: '300000000000',
|
|
1024
|
-
enterGate: constants_1.ZERO_ADDRESS,
|
|
1025
|
-
liquidatorGate: constants_1.ZERO_ADDRESS,
|
|
1026
|
-
marketId,
|
|
1027
|
-
protocolName: 'morpho-midnight',
|
|
1028
|
-
curator: 'Tenor',
|
|
1029
|
-
});
|
|
1030
|
-
const MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20260925_ETH = () => createTenorWETHUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightTenorWETHUSDC_20260925_Eth, 'tenor-weth-usdc-20260925', 1790348400, // 2026-09-25T15:00:00Z
|
|
1031
|
-
'0x6a463fa464b97f7ba86516be7de82761bfa411522701ede713a269c2c385c70a');
|
|
1032
|
-
exports.MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20260925_ETH = MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20260925_ETH;
|
|
1033
|
-
const MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20261030_ETH = () => createTenorWETHUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightTenorWETHUSDC_20261030_Eth, 'tenor-weth-usdc-20261030', 1793372400, // 2026-10-30T15:00:00Z
|
|
1034
|
-
'0xbd6a19559ca14acff13ac124ac0302c0ce6c41ff6a34841242752601e8b0e42c');
|
|
1035
|
-
exports.MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20261030_ETH = MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20261030_ETH;
|
|
1036
|
-
const MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20261127_ETH = () => createTenorWETHUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightTenorWETHUSDC_20261127_Eth, 'tenor-weth-usdc-20261127', 1795791600, // 2026-11-27T15:00:00Z
|
|
1037
|
-
'0x348fb368e0f88eb63e739c6753bb0fbf306fb269a8dc0585542a6e4be5c63d6c');
|
|
1038
|
-
exports.MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20261127_ETH = MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20261127_ETH;
|
|
1039
|
-
const MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20261225_ETH = () => createTenorWETHUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightTenorWETHUSDC_20261225_Eth, 'tenor-weth-usdc-20261225', 1798210800, // 2026-12-25T15:00:00Z
|
|
1040
|
-
'0xbe554be39e1df0ac1e8287d78ec8de26f0ea6197c6797bdeaed5350f45ae5b9f');
|
|
1041
|
-
exports.MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20261225_ETH = MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20261225_ETH;
|
|
1042
|
-
const createTenorWsrUSDUsdcEthMarket = (value, url, maturity, marketId) => ({
|
|
1043
|
-
chainIds: [types_1.NetworkNumber.Eth],
|
|
1044
|
-
label: 'Tenor wsrUSD/USDC',
|
|
1045
|
-
shortLabel: 'Tenor wsrUSD/USDC',
|
|
1046
|
-
url,
|
|
1047
|
-
value,
|
|
1048
|
-
midnight: exports.MIDNIGHT_ETH,
|
|
1049
|
-
loanToken: USDC_ETH,
|
|
1050
|
-
collaterals: [{
|
|
1051
|
-
token: TENOR_WSRUSD_USDC_VAULT_ETH,
|
|
1052
|
-
lltv: 0.98,
|
|
1053
|
-
liquidationCursor: '300000000000000000',
|
|
1054
|
-
oracle: '0x7C997e4dddF1D4B7C0D5f290B92d0909ba227c14',
|
|
1055
|
-
hidden: true,
|
|
1056
|
-
}, {
|
|
1057
|
-
token: WSRUSD_ETH,
|
|
1058
|
-
lltv: 0.945,
|
|
1059
|
-
liquidationCursor: '300000000000000000',
|
|
1060
|
-
oracle: '0x938D2eDb20425cF80F008E7ec314Eb456940Da15',
|
|
1061
|
-
}],
|
|
1062
|
-
maturity,
|
|
1063
|
-
rcfThreshold: '700000000000',
|
|
1064
|
-
enterGate: constants_1.ZERO_ADDRESS,
|
|
1065
|
-
liquidatorGate: constants_1.ZERO_ADDRESS,
|
|
1066
|
-
marketId,
|
|
1067
|
-
protocolName: 'morpho-midnight',
|
|
1068
|
-
curator: 'Tenor',
|
|
1069
|
-
});
|
|
1070
|
-
const MORPHO_MIDNIGHT_TENOR_WSRUSD_USDC_945_20260925_ETH = () => createTenorWsrUSDUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightTenorWsrUSDUSDC_20260925_Eth, 'tenor-wsrusd-usdc-20260925', 1790348400, // 2026-09-25T15:00:00Z
|
|
1071
|
-
'0xc028a0b50ba0c606fbf83e5620018f23019b1fb5d1d15b4a5a0d17cc72edcfeb');
|
|
1072
|
-
exports.MORPHO_MIDNIGHT_TENOR_WSRUSD_USDC_945_20260925_ETH = MORPHO_MIDNIGHT_TENOR_WSRUSD_USDC_945_20260925_ETH;
|
|
1073
|
-
const MORPHO_MIDNIGHT_TENOR_WSRUSD_USDC_945_20261030_ETH = () => createTenorWsrUSDUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightTenorWsrUSDUSDC_20261030_Eth, 'tenor-wsrusd-usdc-20261030', 1793372400, // 2026-10-30T15:00:00Z
|
|
1074
|
-
'0xc6079abce78d158671adedd6778c55edb786f4e4bc7097a59e7fb56e9ddda1b9');
|
|
1075
|
-
exports.MORPHO_MIDNIGHT_TENOR_WSRUSD_USDC_945_20261030_ETH = MORPHO_MIDNIGHT_TENOR_WSRUSD_USDC_945_20261030_ETH;
|
|
1076
|
-
const MORPHO_MIDNIGHT_TENOR_WSRUSD_USDC_945_20261127_ETH = () => createTenorWsrUSDUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightTenorWsrUSDUSDC_20261127_Eth, 'tenor-wsrusd-usdc-20261127', 1795791600, // 2026-11-27T15:00:00Z
|
|
1077
|
-
'0x8d4dafdceb706a31e06fba2946e5e12ac9656f98ba430eeb695b553333d78640');
|
|
1078
|
-
exports.MORPHO_MIDNIGHT_TENOR_WSRUSD_USDC_945_20261127_ETH = MORPHO_MIDNIGHT_TENOR_WSRUSD_USDC_945_20261127_ETH;
|
|
1079
|
-
const MORPHO_MIDNIGHT_TENOR_WSRUSD_USDC_945_20261225_ETH = () => createTenorWsrUSDUsdcEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightTenorWsrUSDUSDC_20261225_Eth, 'tenor-wsrusd-usdc-20261225', 1798210800, // 2026-12-25T15:00:00Z
|
|
1080
|
-
'0x02763ffcac291ea4b16ed0b3e3e524ee9aa07248a6e4ea6613e3724b54cce116');
|
|
1081
|
-
exports.MORPHO_MIDNIGHT_TENOR_WSRUSD_USDC_945_20261225_ETH = MORPHO_MIDNIGHT_TENOR_WSRUSD_USDC_945_20261225_ETH;
|
|
1082
|
-
const createTenorWstETHWethEthMarket = (value, url, maturity, marketId) => ({
|
|
1083
|
-
chainIds: [types_1.NetworkNumber.Eth],
|
|
1084
|
-
label: 'Tenor wstETH/WETH',
|
|
1085
|
-
shortLabel: 'Tenor wstETH/WETH',
|
|
1086
|
-
url,
|
|
1087
|
-
value,
|
|
1088
|
-
midnight: exports.MIDNIGHT_ETH,
|
|
1089
|
-
loanToken: WETH_ETH,
|
|
1090
|
-
collaterals: [{
|
|
1091
|
-
token: WSTETH_ETH,
|
|
1092
|
-
lltv: 0.965,
|
|
1093
|
-
liquidationCursor: '300000000000000000',
|
|
1094
|
-
oracle: '0xbD60A6770b27E084E8617335ddE769241B0e71D8',
|
|
1095
|
-
}, {
|
|
1096
|
-
token: TENOR_WSTETH_WETH_VAULT_ETH,
|
|
1097
|
-
lltv: 0.98,
|
|
1098
|
-
liquidationCursor: '300000000000000000',
|
|
1099
|
-
oracle: '0x4eA702113EFAE91B906fC9eC1415dd7a9B860c89',
|
|
1100
|
-
hidden: true,
|
|
1101
|
-
}],
|
|
1102
|
-
maturity,
|
|
1103
|
-
rcfThreshold: '600000000000000000000',
|
|
1104
|
-
enterGate: constants_1.ZERO_ADDRESS,
|
|
1105
|
-
liquidatorGate: constants_1.ZERO_ADDRESS,
|
|
1106
|
-
marketId,
|
|
1107
|
-
protocolName: 'morpho-midnight',
|
|
1108
|
-
curator: 'Tenor',
|
|
1109
|
-
});
|
|
1110
|
-
const MORPHO_MIDNIGHT_TENOR_WSTETH_WETH_965_20260925_ETH = () => createTenorWstETHWethEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightTenorWstETHWETH_20260925_Eth, 'tenor-wsteth-weth-20260925', 1790348400, // 2026-09-25T15:00:00Z
|
|
1111
|
-
'0x9ac6a639ace1c291b68b212eb1a95fd080332793f7bfc7dbed58b92bc518ca70');
|
|
1112
|
-
exports.MORPHO_MIDNIGHT_TENOR_WSTETH_WETH_965_20260925_ETH = MORPHO_MIDNIGHT_TENOR_WSTETH_WETH_965_20260925_ETH;
|
|
1113
|
-
const MORPHO_MIDNIGHT_TENOR_WSTETH_WETH_965_20261030_ETH = () => createTenorWstETHWethEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightTenorWstETHWETH_20261030_Eth, 'tenor-wsteth-weth-20261030', 1793372400, // 2026-10-30T15:00:00Z
|
|
1114
|
-
'0xf032c0184869e9b856b20cdcc298a1ebbec2cd4ee86e6189ff94852fa368a1b3');
|
|
1115
|
-
exports.MORPHO_MIDNIGHT_TENOR_WSTETH_WETH_965_20261030_ETH = MORPHO_MIDNIGHT_TENOR_WSTETH_WETH_965_20261030_ETH;
|
|
1116
|
-
const MORPHO_MIDNIGHT_TENOR_WSTETH_WETH_965_20261127_ETH = () => createTenorWstETHWethEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightTenorWstETHWETH_20261127_Eth, 'tenor-wsteth-weth-20261127', 1795791600, // 2026-11-27T15:00:00Z
|
|
1117
|
-
'0x0cc2301b2247d109d5a05d7a95012077cbdf9908f9f72f315de601c1f7b438f9');
|
|
1118
|
-
exports.MORPHO_MIDNIGHT_TENOR_WSTETH_WETH_965_20261127_ETH = MORPHO_MIDNIGHT_TENOR_WSTETH_WETH_965_20261127_ETH;
|
|
1119
|
-
const MORPHO_MIDNIGHT_TENOR_WSTETH_WETH_965_20261225_ETH = () => createTenorWstETHWethEthMarket(types_1.MorphoMidnightVersions.MorphoMidnightTenorWstETHWETH_20261225_Eth, 'tenor-wsteth-weth-20261225', 1798210800, // 2026-12-25T15:00:00Z
|
|
1120
|
-
'0x646f7959780a1555f7696aad335a197fe45710f73f0bcf70f26712923249af4b');
|
|
1121
|
-
exports.MORPHO_MIDNIGHT_TENOR_WSTETH_WETH_965_20261225_ETH = MORPHO_MIDNIGHT_TENOR_WSTETH_WETH_965_20261225_ETH;
|
|
1122
|
-
/**
|
|
1123
|
-
* Collaterals we deliberately do not list. Their markets are defined and verified above — they are real
|
|
1124
|
-
* markets — but withheld from the map below, so nothing in the app offers, prices or routes to them.
|
|
1125
|
-
*/
|
|
1126
|
-
const EXCLUDED_COLLATERALS = [STRUSD_ETH, WSRUSD_ETH, REUSD_ETH, SIUSD_ETH, USD3_ETH];
|
|
1127
|
-
const isExcludedMarket = (market) => market.collaterals.some((collateral) => !collateral.hidden
|
|
1128
|
-
&& EXCLUDED_COLLATERALS.some((token) => token.toLowerCase() === collateral.token.toLowerCase()));
|
|
1129
|
-
const allMorphoMidnightMarkets = (networkId) => ({
|
|
719
|
+
const MorphoMidnightMarkets = (networkId) => ({
|
|
1130
720
|
// BASE — Morpho-curated
|
|
1131
721
|
[types_1.MorphoMidnightVersions.MorphoMidnightCbBTCUSDC_860_20260731_Base]: (0, exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20260731)(networkId),
|
|
1132
722
|
[types_1.MorphoMidnightVersions.MorphoMidnightCbBTCUSDC_860_20260828_Base]: (0, exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20260828)(networkId),
|
|
@@ -1161,58 +751,9 @@ const allMorphoMidnightMarkets = (networkId) => ({
|
|
|
1161
751
|
[types_1.MorphoMidnightVersions.MorphoMidnightTenorCbETHWETH_20261127_Base]: (0, exports.MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20261127)(),
|
|
1162
752
|
[types_1.MorphoMidnightVersions.MorphoMidnightTenorCbETHWETH_20261225_Base]: (0, exports.MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20261225)(),
|
|
1163
753
|
[types_1.MorphoMidnightVersions.MorphoMidnightTenorCbETHWETH_20270129_Base]: (0, exports.MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20270129)(),
|
|
1164
|
-
// ETHEREUM — Morpho-curated
|
|
1165
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightWBTCUSDC_860_20260925_Eth]: (0, exports.MORPHO_MIDNIGHT_WBTC_USDC_860_20260925_ETH)(),
|
|
1166
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightWBTCUSDC_860_20261030_Eth]: (0, exports.MORPHO_MIDNIGHT_WBTC_USDC_860_20261030_ETH)(),
|
|
1167
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightWBTCUSDC_860_20261127_Eth]: (0, exports.MORPHO_MIDNIGHT_WBTC_USDC_860_20261127_ETH)(),
|
|
1168
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightWBTCUSDC_860_20261225_Eth]: (0, exports.MORPHO_MIDNIGHT_WBTC_USDC_860_20261225_ETH)(),
|
|
1169
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightWBTCUSDC_860_20270129_Eth]: (0, exports.MORPHO_MIDNIGHT_WBTC_USDC_860_20270129_ETH)(),
|
|
1170
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightWBTCUSDC_860_20270226_Eth]: (0, exports.MORPHO_MIDNIGHT_WBTC_USDC_860_20270226_ETH)(),
|
|
1171
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightWBTCUSDC_860_20270326_Eth]: (0, exports.MORPHO_MIDNIGHT_WBTC_USDC_860_20270326_ETH)(),
|
|
1172
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightCbBTCUSDC_860_20260925_Eth]: (0, exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20260925_ETH)(),
|
|
1173
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightCbBTCUSDC_860_20261030_Eth]: (0, exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20261030_ETH)(),
|
|
1174
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightCbBTCUSDC_860_20261127_Eth]: (0, exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20261127_ETH)(),
|
|
1175
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightCbBTCUSDC_860_20261225_Eth]: (0, exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20261225_ETH)(),
|
|
1176
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightCbBTCUSDC_860_20270129_Eth]: (0, exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20270129_ETH)(),
|
|
1177
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightCbBTCUSDC_860_20270226_Eth]: (0, exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20270226_ETH)(),
|
|
1178
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightCbBTCUSDC_860_20270326_Eth]: (0, exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20270326_ETH)(),
|
|
1179
|
-
// ETHEREUM — Tenor-curated
|
|
1180
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightTenorReUSDUSDC_20260925_Eth]: (0, exports.MORPHO_MIDNIGHT_TENOR_REUSD_USDC_915_20260925_ETH)(),
|
|
1181
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightTenorReUSDUSDC_20261030_Eth]: (0, exports.MORPHO_MIDNIGHT_TENOR_REUSD_USDC_915_20261030_ETH)(),
|
|
1182
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightTenorReUSDUSDC_20261127_Eth]: (0, exports.MORPHO_MIDNIGHT_TENOR_REUSD_USDC_915_20261127_ETH)(),
|
|
1183
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightTenorReUSDUSDC_20261225_Eth]: (0, exports.MORPHO_MIDNIGHT_TENOR_REUSD_USDC_915_20261225_ETH)(),
|
|
1184
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightTenorSiUSDUSDC_20260925_Eth]: (0, exports.MORPHO_MIDNIGHT_TENOR_SIUSD_USDC_915_20260925_ETH)(),
|
|
1185
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightTenorSiUSDUSDC_20261030_Eth]: (0, exports.MORPHO_MIDNIGHT_TENOR_SIUSD_USDC_915_20261030_ETH)(),
|
|
1186
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightTenorSiUSDUSDC_20261127_Eth]: (0, exports.MORPHO_MIDNIGHT_TENOR_SIUSD_USDC_915_20261127_ETH)(),
|
|
1187
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightTenorSiUSDUSDC_20261225_Eth]: (0, exports.MORPHO_MIDNIGHT_TENOR_SIUSD_USDC_915_20261225_ETH)(),
|
|
1188
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightTenorStrUSDUSDC_20260925_Eth]: (0, exports.MORPHO_MIDNIGHT_TENOR_STRUSD_USDC_860_20260925_ETH)(),
|
|
1189
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightTenorStrUSDUSDC_20261030_Eth]: (0, exports.MORPHO_MIDNIGHT_TENOR_STRUSD_USDC_860_20261030_ETH)(),
|
|
1190
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightTenorStrUSDUSDC_20261127_Eth]: (0, exports.MORPHO_MIDNIGHT_TENOR_STRUSD_USDC_860_20261127_ETH)(),
|
|
1191
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightTenorStrUSDUSDC_20261225_Eth]: (0, exports.MORPHO_MIDNIGHT_TENOR_STRUSD_USDC_860_20261225_ETH)(),
|
|
1192
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightTenorUSD3USDC_20260925_Eth]: (0, exports.MORPHO_MIDNIGHT_TENOR_USD3_USDC_915_20260925_ETH)(),
|
|
1193
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightTenorUSD3USDC_20261030_Eth]: (0, exports.MORPHO_MIDNIGHT_TENOR_USD3_USDC_915_20261030_ETH)(),
|
|
1194
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightTenorUSD3USDC_20261127_Eth]: (0, exports.MORPHO_MIDNIGHT_TENOR_USD3_USDC_915_20261127_ETH)(),
|
|
1195
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightTenorUSD3USDC_20261225_Eth]: (0, exports.MORPHO_MIDNIGHT_TENOR_USD3_USDC_915_20261225_ETH)(),
|
|
1196
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightTenorWETHUSDC_20260925_Eth]: (0, exports.MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20260925_ETH)(),
|
|
1197
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightTenorWETHUSDC_20261030_Eth]: (0, exports.MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20261030_ETH)(),
|
|
1198
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightTenorWETHUSDC_20261127_Eth]: (0, exports.MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20261127_ETH)(),
|
|
1199
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightTenorWETHUSDC_20261225_Eth]: (0, exports.MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20261225_ETH)(),
|
|
1200
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightTenorWsrUSDUSDC_20260925_Eth]: (0, exports.MORPHO_MIDNIGHT_TENOR_WSRUSD_USDC_945_20260925_ETH)(),
|
|
1201
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightTenorWsrUSDUSDC_20261030_Eth]: (0, exports.MORPHO_MIDNIGHT_TENOR_WSRUSD_USDC_945_20261030_ETH)(),
|
|
1202
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightTenorWsrUSDUSDC_20261127_Eth]: (0, exports.MORPHO_MIDNIGHT_TENOR_WSRUSD_USDC_945_20261127_ETH)(),
|
|
1203
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightTenorWsrUSDUSDC_20261225_Eth]: (0, exports.MORPHO_MIDNIGHT_TENOR_WSRUSD_USDC_945_20261225_ETH)(),
|
|
1204
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightTenorWstETHWETH_20260925_Eth]: (0, exports.MORPHO_MIDNIGHT_TENOR_WSTETH_WETH_965_20260925_ETH)(),
|
|
1205
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightTenorWstETHWETH_20261030_Eth]: (0, exports.MORPHO_MIDNIGHT_TENOR_WSTETH_WETH_965_20261030_ETH)(),
|
|
1206
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightTenorWstETHWETH_20261127_Eth]: (0, exports.MORPHO_MIDNIGHT_TENOR_WSTETH_WETH_965_20261127_ETH)(),
|
|
1207
|
-
[types_1.MorphoMidnightVersions.MorphoMidnightTenorWstETHWETH_20261225_Eth]: (0, exports.MORPHO_MIDNIGHT_TENOR_WSTETH_WETH_965_20261225_ETH)(),
|
|
1208
754
|
});
|
|
1209
|
-
const MorphoMidnightMarkets = (networkId) => {
|
|
1210
|
-
const all = allMorphoMidnightMarkets(networkId);
|
|
1211
|
-
if (!EXCLUDED_COLLATERALS.length)
|
|
1212
|
-
return all;
|
|
1213
|
-
return Object.fromEntries(Object.entries(all).filter(([, market]) => !isExcludedMarket(market)));
|
|
1214
|
-
};
|
|
1215
755
|
exports.MorphoMidnightMarkets = MorphoMidnightMarkets;
|
|
756
|
+
// Which markets Tenor's router quotes, by id, for the quote helpers that only receive one.
|
|
1216
757
|
const TENOR_MARKET_IDS = new Set(Object.values((0, exports.MorphoMidnightMarkets)(types_1.NetworkNumber.Base))
|
|
1217
758
|
.filter((market) => market.curator === 'Tenor')
|
|
1218
759
|
.map((market) => market.marketId.toLowerCase()));
|
|
@@ -1220,13 +761,13 @@ const isTenorMidnightMarket = (market) => (typeof market === 'string'
|
|
|
1220
761
|
? TENOR_MARKET_IDS.has(market.toLowerCase())
|
|
1221
762
|
: market.curator === 'Tenor');
|
|
1222
763
|
exports.isTenorMidnightMarket = isTenorMidnightMarket;
|
|
1223
|
-
const findMorphoMidnightMarket = (marketId, network) =>
|
|
1224
|
-
.find((market) => market.marketId.toLowerCase() === marketId.toLowerCase()
|
|
1225
|
-
&& (network === undefined || market.chainIds.includes(network))));
|
|
764
|
+
const findMorphoMidnightMarket = (marketId, network = types_1.NetworkNumber.Base) => Object.values((0, exports.MorphoMidnightMarkets)(network)).find((market) => market.marketId.toLowerCase() === marketId.toLowerCase());
|
|
1226
765
|
exports.findMorphoMidnightMarket = findMorphoMidnightMarket;
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
766
|
+
/**
|
|
767
|
+
* The market's collateral set as the chain knows it: the listed collaterals followed by the curator's
|
|
768
|
+
* hidden ones. This — not `collaterals` — is what a `Market` struct takes, since the market id is the hash
|
|
769
|
+
* of that struct. Anything assembling one for a contract call goes through here so it can't quietly build
|
|
770
|
+
* a market of its own instead.
|
|
771
|
+
*/
|
|
772
|
+
const morphoMidnightMarketCollateralParams = (market) => [...market.collaterals, ...(market.hiddenCollaterals || [])];
|
|
1230
773
|
exports.morphoMidnightMarketCollateralParams = morphoMidnightMarketCollateralParams;
|
|
1231
|
-
const morphoMidnightVisibleCollaterals = (market) => market.collaterals.filter((collateral) => !collateral.hidden);
|
|
1232
|
-
exports.morphoMidnightVisibleCollaterals = morphoMidnightVisibleCollaterals;
|