@defisaver/positions-sdk 2.1.151 → 2.1.152-shifter-v2-2-dev
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/aaveV2/index.js +2 -0
- package/cjs/claiming/compV3.js +0 -1
- package/cjs/config/contracts.d.ts +4 -0
- package/cjs/config/contracts.js +4 -0
- package/cjs/fluid/index.d.ts +5 -0
- package/cjs/fluid/index.js +36 -1
- package/cjs/helpers/aaveHelpers/index.js +3 -0
- package/cjs/helpers/aaveV4Helpers/index.js +1 -0
- package/cjs/helpers/compoundHelpers/index.js +2 -0
- package/cjs/helpers/curveUsdHelpers/index.js +2 -0
- package/cjs/helpers/fluidHelpers/index.js +1 -0
- package/cjs/helpers/liquityV2Helpers/index.js +1 -0
- package/cjs/helpers/llamaLendHelpers/index.js +2 -0
- package/cjs/helpers/morphoBlueHelpers/index.js +2 -0
- package/cjs/helpers/morphoMidnightHelpers/index.js +2 -0
- package/cjs/helpers/morphoMidnightHelpers/tenor.d.ts +6 -2
- package/cjs/helpers/morphoMidnightHelpers/tenor.js +5 -1
- package/cjs/helpers/sparkHelpers/index.js +1 -0
- package/cjs/liquity/index.js +8 -1
- package/cjs/maker/index.d.ts +7 -2
- package/cjs/maker/index.js +30 -10
- package/cjs/markets/index.d.ts +2 -1
- package/cjs/markets/index.js +4 -1
- package/cjs/markets/maker/index.d.ts +1 -0
- package/cjs/markets/maker/index.js +13 -0
- package/cjs/markets/morphoMidnight/index.d.ts +92 -10
- package/cjs/markets/morphoMidnight/index.js +519 -60
- package/cjs/morphoMidnight/index.js +11 -1
- package/cjs/portfolio/index.d.ts +5 -1
- package/cjs/portfolio/index.js +287 -0
- package/cjs/types/aave.d.ts +2 -0
- package/cjs/types/aaveV4.d.ts +1 -0
- package/cjs/types/compound.d.ts +2 -0
- package/cjs/types/fluid.d.ts +1 -0
- package/cjs/types/liquity.d.ts +1 -0
- package/cjs/types/liquityV2.d.ts +2 -0
- package/cjs/types/maker.d.ts +1 -0
- package/cjs/types/morphoBlue.d.ts +2 -0
- package/cjs/types/morphoMidnight.d.ts +58 -4
- package/cjs/types/morphoMidnight.js +45 -0
- package/cjs/types/portfolio.d.ts +26 -10
- package/cjs/types/spark.d.ts +2 -0
- package/esm/aaveV2/index.js +2 -0
- package/esm/claiming/compV3.js +0 -1
- package/esm/config/contracts.d.ts +4 -0
- package/esm/config/contracts.js +4 -0
- package/esm/fluid/index.d.ts +5 -0
- package/esm/fluid/index.js +33 -0
- package/esm/helpers/aaveHelpers/index.js +3 -0
- package/esm/helpers/aaveV4Helpers/index.js +1 -0
- package/esm/helpers/compoundHelpers/index.js +2 -0
- package/esm/helpers/curveUsdHelpers/index.js +2 -0
- package/esm/helpers/fluidHelpers/index.js +1 -0
- package/esm/helpers/liquityV2Helpers/index.js +1 -0
- package/esm/helpers/llamaLendHelpers/index.js +2 -0
- package/esm/helpers/morphoBlueHelpers/index.js +2 -0
- package/esm/helpers/morphoMidnightHelpers/index.js +2 -0
- package/esm/helpers/morphoMidnightHelpers/tenor.d.ts +6 -2
- package/esm/helpers/morphoMidnightHelpers/tenor.js +6 -2
- package/esm/helpers/sparkHelpers/index.js +1 -0
- package/esm/liquity/index.js +8 -1
- package/esm/maker/index.d.ts +7 -2
- package/esm/maker/index.js +29 -11
- package/esm/markets/index.d.ts +2 -1
- package/esm/markets/index.js +2 -1
- package/esm/markets/maker/index.d.ts +1 -0
- package/esm/markets/maker/index.js +10 -0
- package/esm/markets/morphoMidnight/index.d.ts +92 -10
- package/esm/markets/morphoMidnight/index.js +473 -59
- package/esm/morphoMidnight/index.js +11 -1
- package/esm/portfolio/index.d.ts +5 -1
- package/esm/portfolio/index.js +289 -3
- package/esm/types/aave.d.ts +2 -0
- package/esm/types/aaveV4.d.ts +1 -0
- package/esm/types/compound.d.ts +2 -0
- package/esm/types/fluid.d.ts +1 -0
- package/esm/types/liquity.d.ts +1 -0
- package/esm/types/liquityV2.d.ts +2 -0
- package/esm/types/maker.d.ts +1 -0
- package/esm/types/morphoBlue.d.ts +2 -0
- package/esm/types/morphoMidnight.d.ts +58 -4
- package/esm/types/morphoMidnight.js +45 -0
- package/esm/types/portfolio.d.ts +26 -10
- package/esm/types/spark.d.ts +2 -0
- package/package.json +1 -1
- package/src/aaveV2/index.ts +2 -0
- package/src/claiming/compV3.ts +0 -1
- package/src/config/contracts.ts +4 -0
- package/src/fluid/index.ts +40 -0
- package/src/helpers/aaveHelpers/index.ts +3 -0
- package/src/helpers/aaveV4Helpers/index.ts +1 -0
- package/src/helpers/compoundHelpers/index.ts +2 -0
- package/src/helpers/curveUsdHelpers/index.ts +2 -0
- package/src/helpers/fluidHelpers/index.ts +1 -0
- package/src/helpers/liquityV2Helpers/index.ts +1 -0
- package/src/helpers/llamaLendHelpers/index.ts +2 -0
- package/src/helpers/morphoBlueHelpers/index.ts +2 -0
- package/src/helpers/morphoMidnightHelpers/index.ts +2 -0
- package/src/helpers/morphoMidnightHelpers/tenor.ts +6 -2
- package/src/helpers/sparkHelpers/index.ts +1 -0
- package/src/liquity/index.ts +8 -1
- package/src/maker/index.ts +59 -28
- package/src/markets/index.ts +3 -1
- package/src/markets/maker/index.ts +10 -0
- package/src/markets/morphoMidnight/index.ts +724 -61
- package/src/morphoMidnight/index.ts +8 -1
- package/src/portfolio/index.ts +270 -2
- package/src/types/aave.ts +3 -0
- package/src/types/aaveV4.ts +1 -0
- package/src/types/compound.ts +2 -0
- package/src/types/fluid.ts +1 -0
- package/src/types/liquity.ts +2 -0
- package/src/types/liquityV2.ts +2 -0
- package/src/types/maker.ts +2 -0
- package/src/types/morphoBlue.ts +2 -0
- package/src/types/morphoMidnight.ts +60 -3
- package/src/types/portfolio.ts +31 -12
- package/src/types/spark.ts +2 -0
|
@@ -1,24 +1,46 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.MORPHO_MIDNIGHT_TENOR_REUSD_USDC_915_20260925_ETH = exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20270326_ETH = exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20270226_ETH = exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20270129_ETH = exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20261225_ETH = exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20261127_ETH = exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20261030_ETH = exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20260925_ETH = exports.MORPHO_MIDNIGHT_WBTC_USDC_860_20270326_ETH = exports.MORPHO_MIDNIGHT_WBTC_USDC_860_20270226_ETH = exports.MORPHO_MIDNIGHT_WBTC_USDC_860_20270129_ETH = exports.MORPHO_MIDNIGHT_WBTC_USDC_860_20261225_ETH = exports.MORPHO_MIDNIGHT_WBTC_USDC_860_20261127_ETH = exports.MORPHO_MIDNIGHT_WBTC_USDC_860_20261030_ETH = exports.MORPHO_MIDNIGHT_WBTC_USDC_860_20260925_ETH = 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.midnightCoreAddress = exports.MIDNIGHT_ETH = exports.MIDNIGHT_BASE = void 0;
|
|
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;
|
|
4
5
|
const types_1 = require("../../types");
|
|
5
6
|
const constants_1 = require("../../constants");
|
|
6
7
|
/**
|
|
7
|
-
* Morpho Midnight core contract
|
|
8
|
-
*
|
|
9
|
-
* encode for `Midnight.take`.
|
|
8
|
+
* Morpho Midnight core contract, one per chain. Every Midnight market on a chain trades against its core,
|
|
9
|
+
* whoever curates the order book — it is part of the market struct the id is hashed from, and it is what
|
|
10
|
+
* offer tuples encode for `Midnight.take`. Listed at
|
|
11
|
+
* https://docs.morpho.org/get-started/resources/addresses/.
|
|
10
12
|
*/
|
|
11
13
|
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;
|
|
12
17
|
const USDC_BASE = '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913';
|
|
13
18
|
const WETH_BASE = '0x4200000000000000000000000000000000000006';
|
|
14
19
|
const CBBTC_BASE = '0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf';
|
|
15
20
|
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';
|
|
16
31
|
// Tenor's ERC-4626 collateral vaults, one per pair and shared by that pair's whole maturity ladder. Each
|
|
17
32
|
// is a collateral of its markets on-chain without being an asset the app deals in — see the note above
|
|
18
33
|
// the Tenor markets below, and https://www.docs.tenor.finance/technical-docs/addresses/#vaults.
|
|
19
34
|
const TENOR_CBBTC_USDC_VAULT_BASE = '0xf6a70085b7f79FA76B04EbF7A2D7D87C3c5c04BC';
|
|
20
35
|
const TENOR_WETH_USDC_VAULT_BASE = '0xe690a58EF52854513462745237F6A213a0d54dF1';
|
|
21
36
|
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';
|
|
22
44
|
// Sourced from the official listing at https://markets.morpho.org/fixed/base
|
|
23
45
|
// BASE — USDC/cbBTC, 86% LLTV, monthly maturity ladder
|
|
24
46
|
const MORPHO_MIDNIGHT_CBBTC_USDC_860_20260731 = (networkId = types_1.NetworkNumber.Base) => ({
|
|
@@ -190,19 +212,20 @@ exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20270129 = MORPHO_MIDNIGHT_CBBTC_USDC_860
|
|
|
190
212
|
// = Tenor's `fixedMarketIdentifier`; they come back `listed: false`, meaning Tenor — not Morpho — serves
|
|
191
213
|
// the book.
|
|
192
214
|
//
|
|
193
|
-
// Every market below is verified
|
|
194
|
-
// maturity, rcfThreshold, loan token, gates and
|
|
195
|
-
//
|
|
196
|
-
//
|
|
197
|
-
// https://www.docs.tenor.finance/technical-docs/addresses/#vaults). The
|
|
198
|
-
// deals in, so it
|
|
199
|
-
//
|
|
200
|
-
// set, the SDK's positional `prices[i]` / `collateral[i]` reads stay aligned with `collaterals`.
|
|
215
|
+
// Every market below is verified by replaying `MidnightView.toId` over the struct these fields build:
|
|
216
|
+
// core address, maturity, rcfThreshold, loan token, gates and the whole ordered collateral set have to
|
|
217
|
+
// match or the hash does not come back as the recorded `marketId`. On-chain each market carries **two**
|
|
218
|
+
// collaterals — the pair's own token, and Tenor's ERC-4626 vault at 98% LLTV (the `metadata.vault` of the
|
|
219
|
+
// parent tenor market, listed at https://www.docs.tenor.finance/technical-docs/addresses/#vaults). The
|
|
220
|
+
// vault is not an asset the app deals in, so it carries `hidden: true`: everything that renders or prices
|
|
221
|
+
// a position skips it and sees a single-collateral market.
|
|
201
222
|
//
|
|
202
|
-
// It is only
|
|
203
|
-
// to the core has to
|
|
204
|
-
//
|
|
205
|
-
//
|
|
223
|
+
// It is only flagged, never dropped or reordered: the market id is the hash of the full struct, so a
|
|
224
|
+
// `Market` handed to the core has to carry the complete set in the chain's own order or the call
|
|
225
|
+
// addresses a market of its own making — which does not revert, because markets are permissionless. On
|
|
226
|
+
// Base the vault happens to come last every time; on mainnet the order varies per market, which is why
|
|
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.
|
|
206
229
|
const MORPHO_MIDNIGHT_TENOR_CBBTC_USDC_860_20260827 = (networkId = types_1.NetworkNumber.Base) => ({
|
|
207
230
|
chainIds: [types_1.NetworkNumber.Base],
|
|
208
231
|
label: 'Tenor cbBTC/USDC',
|
|
@@ -216,12 +239,12 @@ const MORPHO_MIDNIGHT_TENOR_CBBTC_USDC_860_20260827 = (networkId = types_1.Netwo
|
|
|
216
239
|
lltv: 0.86,
|
|
217
240
|
liquidationCursor: '300000000000000000',
|
|
218
241
|
oracle: '0x663BECd10daE6C4A3Dcd89F1d76c1174199639B9',
|
|
219
|
-
}
|
|
220
|
-
hiddenCollaterals: [{
|
|
242
|
+
}, {
|
|
221
243
|
token: TENOR_CBBTC_USDC_VAULT_BASE,
|
|
222
244
|
lltv: 0.98,
|
|
223
245
|
liquidationCursor: '300000000000000000',
|
|
224
246
|
oracle: '0x4a24e4bf269cE26aAD2dF00437e7730d25FCdE26',
|
|
247
|
+
hidden: true,
|
|
225
248
|
}],
|
|
226
249
|
maturity: 1787788800, // 2026-08-27T00:00:00Z
|
|
227
250
|
rcfThreshold: '3000000000',
|
|
@@ -245,12 +268,12 @@ const MORPHO_MIDNIGHT_TENOR_CBBTC_USDC_860_20260924 = (networkId = types_1.Netwo
|
|
|
245
268
|
lltv: 0.86,
|
|
246
269
|
liquidationCursor: '300000000000000000',
|
|
247
270
|
oracle: '0x663BECd10daE6C4A3Dcd89F1d76c1174199639B9',
|
|
248
|
-
}
|
|
249
|
-
hiddenCollaterals: [{
|
|
271
|
+
}, {
|
|
250
272
|
token: TENOR_CBBTC_USDC_VAULT_BASE,
|
|
251
273
|
lltv: 0.98,
|
|
252
274
|
liquidationCursor: '300000000000000000',
|
|
253
275
|
oracle: '0x4a24e4bf269cE26aAD2dF00437e7730d25FCdE26',
|
|
276
|
+
hidden: true,
|
|
254
277
|
}],
|
|
255
278
|
maturity: 1790208000, // 2026-09-24T00:00:00Z
|
|
256
279
|
rcfThreshold: '3000000000',
|
|
@@ -274,12 +297,12 @@ const MORPHO_MIDNIGHT_TENOR_CBBTC_USDC_860_20261022 = (networkId = types_1.Netwo
|
|
|
274
297
|
lltv: 0.86,
|
|
275
298
|
liquidationCursor: '300000000000000000',
|
|
276
299
|
oracle: '0x663BECd10daE6C4A3Dcd89F1d76c1174199639B9',
|
|
277
|
-
}
|
|
278
|
-
hiddenCollaterals: [{
|
|
300
|
+
}, {
|
|
279
301
|
token: TENOR_CBBTC_USDC_VAULT_BASE,
|
|
280
302
|
lltv: 0.98,
|
|
281
303
|
liquidationCursor: '300000000000000000',
|
|
282
304
|
oracle: '0x4a24e4bf269cE26aAD2dF00437e7730d25FCdE26',
|
|
305
|
+
hidden: true,
|
|
283
306
|
}],
|
|
284
307
|
maturity: 1792627200, // 2026-10-22T00:00:00Z
|
|
285
308
|
rcfThreshold: '3000000000',
|
|
@@ -303,12 +326,12 @@ const MORPHO_MIDNIGHT_TENOR_CBBTC_USDC_860_20261119 = (networkId = types_1.Netwo
|
|
|
303
326
|
lltv: 0.86,
|
|
304
327
|
liquidationCursor: '300000000000000000',
|
|
305
328
|
oracle: '0x663BECd10daE6C4A3Dcd89F1d76c1174199639B9',
|
|
306
|
-
}
|
|
307
|
-
hiddenCollaterals: [{
|
|
329
|
+
}, {
|
|
308
330
|
token: TENOR_CBBTC_USDC_VAULT_BASE,
|
|
309
331
|
lltv: 0.98,
|
|
310
332
|
liquidationCursor: '300000000000000000',
|
|
311
333
|
oracle: '0x4a24e4bf269cE26aAD2dF00437e7730d25FCdE26',
|
|
334
|
+
hidden: true,
|
|
312
335
|
}],
|
|
313
336
|
maturity: 1795046400, // 2026-11-19T00:00:00Z
|
|
314
337
|
rcfThreshold: '3000000000',
|
|
@@ -332,12 +355,12 @@ const MORPHO_MIDNIGHT_TENOR_CBBTC_USDC_860_20261217 = (networkId = types_1.Netwo
|
|
|
332
355
|
lltv: 0.86,
|
|
333
356
|
liquidationCursor: '300000000000000000',
|
|
334
357
|
oracle: '0x663BECd10daE6C4A3Dcd89F1d76c1174199639B9',
|
|
335
|
-
}
|
|
336
|
-
hiddenCollaterals: [{
|
|
358
|
+
}, {
|
|
337
359
|
token: TENOR_CBBTC_USDC_VAULT_BASE,
|
|
338
360
|
lltv: 0.98,
|
|
339
361
|
liquidationCursor: '300000000000000000',
|
|
340
362
|
oracle: '0x4a24e4bf269cE26aAD2dF00437e7730d25FCdE26',
|
|
363
|
+
hidden: true,
|
|
341
364
|
}],
|
|
342
365
|
maturity: 1797465600, // 2026-12-17T00:00:00Z
|
|
343
366
|
rcfThreshold: '3000000000',
|
|
@@ -361,12 +384,12 @@ const MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20260827 = (networkId = types_1.Networ
|
|
|
361
384
|
lltv: 0.86,
|
|
362
385
|
liquidationCursor: '300000000000000000',
|
|
363
386
|
oracle: '0xFEa2D58cEfCb9fcb597723c6bAE66fFE4193aFE4',
|
|
364
|
-
}
|
|
365
|
-
hiddenCollaterals: [{
|
|
387
|
+
}, {
|
|
366
388
|
token: TENOR_WETH_USDC_VAULT_BASE,
|
|
367
389
|
lltv: 0.98,
|
|
368
390
|
liquidationCursor: '300000000000000000',
|
|
369
391
|
oracle: '0x784519B1b59A1e1498f077066bB9336672bcc3EE',
|
|
392
|
+
hidden: true,
|
|
370
393
|
}],
|
|
371
394
|
maturity: 1787788800,
|
|
372
395
|
rcfThreshold: '3000000000',
|
|
@@ -390,12 +413,12 @@ const MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20260924 = (networkId = types_1.Networ
|
|
|
390
413
|
lltv: 0.86,
|
|
391
414
|
liquidationCursor: '300000000000000000',
|
|
392
415
|
oracle: '0xFEa2D58cEfCb9fcb597723c6bAE66fFE4193aFE4',
|
|
393
|
-
}
|
|
394
|
-
hiddenCollaterals: [{
|
|
416
|
+
}, {
|
|
395
417
|
token: TENOR_WETH_USDC_VAULT_BASE,
|
|
396
418
|
lltv: 0.98,
|
|
397
419
|
liquidationCursor: '300000000000000000',
|
|
398
420
|
oracle: '0x784519B1b59A1e1498f077066bB9336672bcc3EE',
|
|
421
|
+
hidden: true,
|
|
399
422
|
}],
|
|
400
423
|
maturity: 1790208000,
|
|
401
424
|
rcfThreshold: '3000000000',
|
|
@@ -419,12 +442,12 @@ const MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20261022 = (networkId = types_1.Networ
|
|
|
419
442
|
lltv: 0.86,
|
|
420
443
|
liquidationCursor: '300000000000000000',
|
|
421
444
|
oracle: '0xFEa2D58cEfCb9fcb597723c6bAE66fFE4193aFE4',
|
|
422
|
-
}
|
|
423
|
-
hiddenCollaterals: [{
|
|
445
|
+
}, {
|
|
424
446
|
token: TENOR_WETH_USDC_VAULT_BASE,
|
|
425
447
|
lltv: 0.98,
|
|
426
448
|
liquidationCursor: '300000000000000000',
|
|
427
449
|
oracle: '0x784519B1b59A1e1498f077066bB9336672bcc3EE',
|
|
450
|
+
hidden: true,
|
|
428
451
|
}],
|
|
429
452
|
maturity: 1792627200,
|
|
430
453
|
rcfThreshold: '3000000000',
|
|
@@ -448,12 +471,12 @@ const MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20261119 = (networkId = types_1.Networ
|
|
|
448
471
|
lltv: 0.86,
|
|
449
472
|
liquidationCursor: '300000000000000000',
|
|
450
473
|
oracle: '0xFEa2D58cEfCb9fcb597723c6bAE66fFE4193aFE4',
|
|
451
|
-
}
|
|
452
|
-
hiddenCollaterals: [{
|
|
474
|
+
}, {
|
|
453
475
|
token: TENOR_WETH_USDC_VAULT_BASE,
|
|
454
476
|
lltv: 0.98,
|
|
455
477
|
liquidationCursor: '300000000000000000',
|
|
456
478
|
oracle: '0x784519B1b59A1e1498f077066bB9336672bcc3EE',
|
|
479
|
+
hidden: true,
|
|
457
480
|
}],
|
|
458
481
|
maturity: 1795046400,
|
|
459
482
|
rcfThreshold: '3000000000',
|
|
@@ -477,12 +500,12 @@ const MORPHO_MIDNIGHT_TENOR_WETH_USDC_860_20261217 = (networkId = types_1.Networ
|
|
|
477
500
|
lltv: 0.86,
|
|
478
501
|
liquidationCursor: '300000000000000000',
|
|
479
502
|
oracle: '0xFEa2D58cEfCb9fcb597723c6bAE66fFE4193aFE4',
|
|
480
|
-
}
|
|
481
|
-
hiddenCollaterals: [{
|
|
503
|
+
}, {
|
|
482
504
|
token: TENOR_WETH_USDC_VAULT_BASE,
|
|
483
505
|
lltv: 0.98,
|
|
484
506
|
liquidationCursor: '300000000000000000',
|
|
485
507
|
oracle: '0x784519B1b59A1e1498f077066bB9336672bcc3EE',
|
|
508
|
+
hidden: true,
|
|
486
509
|
}],
|
|
487
510
|
maturity: 1797465600,
|
|
488
511
|
rcfThreshold: '3000000000',
|
|
@@ -506,12 +529,12 @@ const MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20260827 = (networkId = types_1.Netwo
|
|
|
506
529
|
lltv: 0.945,
|
|
507
530
|
liquidationCursor: '300000000000000000',
|
|
508
531
|
oracle: '0xB03855Ad5AFD6B8db8091DD5551CAC4ed621d9E6',
|
|
509
|
-
}
|
|
510
|
-
hiddenCollaterals: [{
|
|
532
|
+
}, {
|
|
511
533
|
token: TENOR_CBETH_WETH_VAULT_BASE,
|
|
512
534
|
lltv: 0.98,
|
|
513
535
|
liquidationCursor: '300000000000000000',
|
|
514
536
|
oracle: '0xa02f629871be35d6db0F88C944cF955554Ec87c0',
|
|
537
|
+
hidden: true,
|
|
515
538
|
}],
|
|
516
539
|
maturity: 1787788800,
|
|
517
540
|
rcfThreshold: '4000000000000000000',
|
|
@@ -535,12 +558,12 @@ const MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20260924 = (networkId = types_1.Netwo
|
|
|
535
558
|
lltv: 0.945,
|
|
536
559
|
liquidationCursor: '300000000000000000',
|
|
537
560
|
oracle: '0xB03855Ad5AFD6B8db8091DD5551CAC4ed621d9E6',
|
|
538
|
-
}
|
|
539
|
-
hiddenCollaterals: [{
|
|
561
|
+
}, {
|
|
540
562
|
token: TENOR_CBETH_WETH_VAULT_BASE,
|
|
541
563
|
lltv: 0.98,
|
|
542
564
|
liquidationCursor: '300000000000000000',
|
|
543
565
|
oracle: '0xa02f629871be35d6db0F88C944cF955554Ec87c0',
|
|
566
|
+
hidden: true,
|
|
544
567
|
}],
|
|
545
568
|
maturity: 1790208000,
|
|
546
569
|
rcfThreshold: '4000000000000000000',
|
|
@@ -564,12 +587,12 @@ const MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20261022 = (networkId = types_1.Netwo
|
|
|
564
587
|
lltv: 0.945,
|
|
565
588
|
liquidationCursor: '300000000000000000',
|
|
566
589
|
oracle: '0xB03855Ad5AFD6B8db8091DD5551CAC4ed621d9E6',
|
|
567
|
-
}
|
|
568
|
-
hiddenCollaterals: [{
|
|
590
|
+
}, {
|
|
569
591
|
token: TENOR_CBETH_WETH_VAULT_BASE,
|
|
570
592
|
lltv: 0.98,
|
|
571
593
|
liquidationCursor: '300000000000000000',
|
|
572
594
|
oracle: '0xa02f629871be35d6db0F88C944cF955554Ec87c0',
|
|
595
|
+
hidden: true,
|
|
573
596
|
}],
|
|
574
597
|
maturity: 1792627200,
|
|
575
598
|
rcfThreshold: '4000000000000000000',
|
|
@@ -593,12 +616,12 @@ const MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20261119 = (networkId = types_1.Netwo
|
|
|
593
616
|
lltv: 0.945,
|
|
594
617
|
liquidationCursor: '300000000000000000',
|
|
595
618
|
oracle: '0xB03855Ad5AFD6B8db8091DD5551CAC4ed621d9E6',
|
|
596
|
-
}
|
|
597
|
-
hiddenCollaterals: [{
|
|
619
|
+
}, {
|
|
598
620
|
token: TENOR_CBETH_WETH_VAULT_BASE,
|
|
599
621
|
lltv: 0.98,
|
|
600
622
|
liquidationCursor: '300000000000000000',
|
|
601
623
|
oracle: '0xa02f629871be35d6db0F88C944cF955554Ec87c0',
|
|
624
|
+
hidden: true,
|
|
602
625
|
}],
|
|
603
626
|
maturity: 1795046400,
|
|
604
627
|
rcfThreshold: '4000000000000000000',
|
|
@@ -622,12 +645,12 @@ const MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20261217 = (networkId = types_1.Netwo
|
|
|
622
645
|
lltv: 0.945,
|
|
623
646
|
liquidationCursor: '300000000000000000',
|
|
624
647
|
oracle: '0xB03855Ad5AFD6B8db8091DD5551CAC4ed621d9E6',
|
|
625
|
-
}
|
|
626
|
-
hiddenCollaterals: [{
|
|
648
|
+
}, {
|
|
627
649
|
token: TENOR_CBETH_WETH_VAULT_BASE,
|
|
628
650
|
lltv: 0.98,
|
|
629
651
|
liquidationCursor: '300000000000000000',
|
|
630
652
|
oracle: '0xa02f629871be35d6db0F88C944cF955554Ec87c0',
|
|
653
|
+
hidden: true,
|
|
631
654
|
}],
|
|
632
655
|
maturity: 1797465600,
|
|
633
656
|
rcfThreshold: '4000000000000000000',
|
|
@@ -653,12 +676,12 @@ const createTenorWethUsdcRollingMarket = (value, url, maturity, marketId) => ({
|
|
|
653
676
|
lltv: 0.86,
|
|
654
677
|
liquidationCursor: '300000000000000000',
|
|
655
678
|
oracle: '0xFEa2D58cEfCb9fcb597723c6bAE66fFE4193aFE4',
|
|
656
|
-
}
|
|
657
|
-
hiddenCollaterals: [{
|
|
679
|
+
}, {
|
|
658
680
|
token: TENOR_WETH_USDC_VAULT_BASE,
|
|
659
681
|
lltv: 0.98,
|
|
660
682
|
liquidationCursor: '300000000000000000',
|
|
661
683
|
oracle: '0x784519B1b59A1e1498f077066bB9336672bcc3EE',
|
|
684
|
+
hidden: true,
|
|
662
685
|
}],
|
|
663
686
|
maturity,
|
|
664
687
|
rcfThreshold: '3000000000',
|
|
@@ -681,12 +704,12 @@ const createTenorCbEthWethRollingMarket = (value, url, maturity, marketId) => ({
|
|
|
681
704
|
lltv: 0.945,
|
|
682
705
|
liquidationCursor: '300000000000000000',
|
|
683
706
|
oracle: '0xB03855Ad5AFD6B8db8091DD5551CAC4ed621d9E6',
|
|
684
|
-
}
|
|
685
|
-
hiddenCollaterals: [{
|
|
707
|
+
}, {
|
|
686
708
|
token: TENOR_CBETH_WETH_VAULT_BASE,
|
|
687
709
|
lltv: 0.98,
|
|
688
710
|
liquidationCursor: '300000000000000000',
|
|
689
711
|
oracle: '0xa02f629871be35d6db0F88C944cF955554Ec87c0',
|
|
712
|
+
hidden: true,
|
|
690
713
|
}],
|
|
691
714
|
maturity,
|
|
692
715
|
rcfThreshold: '4000000000000000000',
|
|
@@ -716,7 +739,394 @@ const MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20261225 = () => createTenorCbEthWeth
|
|
|
716
739
|
exports.MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20261225 = MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20261225;
|
|
717
740
|
const MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20270129 = () => createTenorCbEthWethRollingMarket(types_1.MorphoMidnightVersions.MorphoMidnightTenorCbETHWETH_20270129_Base, 'tenor-cbeth-weth-20270129', 1801234800, '0x3cfda244eeec7e5cda2a07ef23e2a5e3fe6ba17882417cafbf3f3c432377ff1d');
|
|
718
741
|
exports.MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20270129 = MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20270129;
|
|
719
|
-
|
|
742
|
+
// ── ETHEREUM ─────────────────────────────────────────────────────────────────────────────────────
|
|
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) => ({
|
|
720
1130
|
// BASE — Morpho-curated
|
|
721
1131
|
[types_1.MorphoMidnightVersions.MorphoMidnightCbBTCUSDC_860_20260731_Base]: (0, exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20260731)(networkId),
|
|
722
1132
|
[types_1.MorphoMidnightVersions.MorphoMidnightCbBTCUSDC_860_20260828_Base]: (0, exports.MORPHO_MIDNIGHT_CBBTC_USDC_860_20260828)(networkId),
|
|
@@ -751,9 +1161,58 @@ const MorphoMidnightMarkets = (networkId) => ({
|
|
|
751
1161
|
[types_1.MorphoMidnightVersions.MorphoMidnightTenorCbETHWETH_20261127_Base]: (0, exports.MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20261127)(),
|
|
752
1162
|
[types_1.MorphoMidnightVersions.MorphoMidnightTenorCbETHWETH_20261225_Base]: (0, exports.MORPHO_MIDNIGHT_TENOR_CBETH_WETH_945_20261225)(),
|
|
753
1163
|
[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)(),
|
|
754
1208
|
});
|
|
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
|
+
};
|
|
755
1215
|
exports.MorphoMidnightMarkets = MorphoMidnightMarkets;
|
|
756
|
-
// Which markets Tenor's router quotes, by id, for the quote helpers that only receive one.
|
|
757
1216
|
const TENOR_MARKET_IDS = new Set(Object.values((0, exports.MorphoMidnightMarkets)(types_1.NetworkNumber.Base))
|
|
758
1217
|
.filter((market) => market.curator === 'Tenor')
|
|
759
1218
|
.map((market) => market.marketId.toLowerCase()));
|
|
@@ -761,13 +1220,13 @@ const isTenorMidnightMarket = (market) => (typeof market === 'string'
|
|
|
761
1220
|
? TENOR_MARKET_IDS.has(market.toLowerCase())
|
|
762
1221
|
: market.curator === 'Tenor');
|
|
763
1222
|
exports.isTenorMidnightMarket = isTenorMidnightMarket;
|
|
764
|
-
const findMorphoMidnightMarket = (marketId, network
|
|
1223
|
+
const findMorphoMidnightMarket = (marketId, network) => (Object.values((0, exports.MorphoMidnightMarkets)(network !== null && network !== void 0 ? network : types_1.NetworkNumber.Base))
|
|
1224
|
+
.find((market) => market.marketId.toLowerCase() === marketId.toLowerCase()
|
|
1225
|
+
&& (network === undefined || market.chainIds.includes(network))));
|
|
765
1226
|
exports.findMorphoMidnightMarket = findMorphoMidnightMarket;
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
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 || [])];
|
|
1227
|
+
const morphoMidnightMarketCollateralParams = (market) => market.collaterals.map(({ token, lltv, liquidationCursor, oracle, }) => ({
|
|
1228
|
+
token, lltv, liquidationCursor, oracle,
|
|
1229
|
+
}));
|
|
773
1230
|
exports.morphoMidnightMarketCollateralParams = morphoMidnightMarketCollateralParams;
|
|
1231
|
+
const morphoMidnightVisibleCollaterals = (market) => market.collaterals.filter((collateral) => !collateral.hidden);
|
|
1232
|
+
exports.morphoMidnightVisibleCollaterals = morphoMidnightVisibleCollaterals;
|