@1delta/margin-fetcher 5.0.23 → 5.0.26
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/dist/index.d.ts +283 -2
- package/dist/index.js +902 -236
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Lender } from '@1delta/lender-registry';
|
|
|
3
3
|
export { hasCrossMarginRisk, isAaveType, isAaveV2Type, isAaveV32Type, isAaveV3Type, isCompoundV3, isCompoundV3Type, isInit, isMorphoType, isMultiMarket, isYLDR } from '@1delta/lender-registry';
|
|
4
4
|
import { DebitData, LenderDebitData, LstAcceptedInput } from '@1delta/calldata-sdk';
|
|
5
5
|
import { RelayProxyConfig } from '@1delta/proxy-fetch';
|
|
6
|
-
import { TermMarketConfig, LiquityBranchConfig, LiquityConfigChain, RiverMarketConfig, RiverConfigChain, RiverChainData, InverseMarketConfig, InverseConfigChain, InverseChainData, ResupplyConfigChain, LlamaLendMarketConfig, LlamaLendConfigChain, LlamaLendChainData, UsddMarketConfig, UsddConfigChain, UsddChainData, FrankencoinMarketConfig, FrankencoinConfigChain, FrankencoinChainData, TellerPoolConfig, MorphoTypeVaultEntry } from '@1delta/data-sdk';
|
|
6
|
+
import { TermMarketConfig, LiquityBranchConfig, LiquityConfigChain, RiverMarketConfig, RiverConfigChain, RiverChainData, InverseMarketConfig, InverseConfigChain, InverseChainData, FraxlendConfigChain, ResupplyConfigChain, LlamaLendMarketConfig, LlamaLendConfigChain, LlamaLendChainData, UsddMarketConfig, UsddConfigChain, UsddChainData, FrankencoinMarketConfig, FrankencoinConfigChain, FrankencoinChainData, TellerPoolConfig, MorphoTypeVaultEntry } from '@1delta/data-sdk';
|
|
7
7
|
export { MorphoLensAbi } from '@1delta/abis';
|
|
8
8
|
|
|
9
9
|
interface GenericCurrency {
|
|
@@ -3395,6 +3395,174 @@ declare function convertInverseMarketsToResponse(raw: InverseMarketsRaw, chainId
|
|
|
3395
3395
|
[m: string]: MorphoGeneralPublicResponse;
|
|
3396
3396
|
};
|
|
3397
3397
|
|
|
3398
|
+
/**
|
|
3399
|
+
* One Fraxlend pair as read from the chain.
|
|
3400
|
+
*
|
|
3401
|
+
* A pair is an ISOLATED 2-asset market and a single contract: `asset` is the
|
|
3402
|
+
* supply + borrow leg (the pair itself is that leg's ERC-4626 vault) and
|
|
3403
|
+
* `collateral` is deposit-only. There is no supply side on the collateral leg
|
|
3404
|
+
* and no borrow side on the collateral leg — that asymmetry is the whole shape.
|
|
3405
|
+
*/
|
|
3406
|
+
interface FraxlendPairRaw {
|
|
3407
|
+
/** The `FraxlendPair` contract — the market id. */
|
|
3408
|
+
pair: string;
|
|
3409
|
+
/** The pair's own fToken symbol, e.g. `ffrxUSD(sfrxETH)-58`. */
|
|
3410
|
+
symbol: string;
|
|
3411
|
+
/** fToken share decimals. */
|
|
3412
|
+
decimals: number;
|
|
3413
|
+
asset: string;
|
|
3414
|
+
assetSymbol: string;
|
|
3415
|
+
assetName: string;
|
|
3416
|
+
assetDecimals: number;
|
|
3417
|
+
collateral: string;
|
|
3418
|
+
collateralSymbol: string;
|
|
3419
|
+
collateralName: string;
|
|
3420
|
+
collateralDecimals: number;
|
|
3421
|
+
/** RAW `maxLTV`, scaled by `ltvPrecision` (1e5) — 75 % reads `75000`. */
|
|
3422
|
+
maxLtv: bigint;
|
|
3423
|
+
ltvPrecision: bigint;
|
|
3424
|
+
exchangePrecision: bigint;
|
|
3425
|
+
/** Liquidation fees, scaled by `liqPrecision`. */
|
|
3426
|
+
cleanLiquidationFee: bigint;
|
|
3427
|
+
dirtyLiquidationFee: bigint;
|
|
3428
|
+
protocolLiquidationFee: bigint;
|
|
3429
|
+
liqPrecision: bigint;
|
|
3430
|
+
depositLimit: bigint;
|
|
3431
|
+
borrowLimit: bigint;
|
|
3432
|
+
totalAssetAmount: bigint;
|
|
3433
|
+
totalAssetShares: bigint;
|
|
3434
|
+
totalBorrowAmount: bigint;
|
|
3435
|
+
totalBorrowShares: bigint;
|
|
3436
|
+
totalCollateral: bigint;
|
|
3437
|
+
oracle: string;
|
|
3438
|
+
/** The two-sided band. BOTH are COLLATERAL-PER-ASSET, i.e. INVERTED, and
|
|
3439
|
+
* they must not be collapsed into one number: the protocol values
|
|
3440
|
+
* collateral with the HIGH rate for a borrow and the LOW rate for a
|
|
3441
|
+
* liquidation check. Equal on pairs whose oracle is a deterministic
|
|
3442
|
+
* ERC-4626 share price. */
|
|
3443
|
+
lowExchangeRate: bigint;
|
|
3444
|
+
highExchangeRate: bigint;
|
|
3445
|
+
/** Unix seconds of the last oracle refresh. Can be DAYS old — Fraxlend runs
|
|
3446
|
+
* at ~2.4 tx/day protocol-wide and the rate only updates on interaction. */
|
|
3447
|
+
exchangeRateLastTimestamp: bigint;
|
|
3448
|
+
maxOracleDeviation: number;
|
|
3449
|
+
/** Per-second, 1e18-scaled. */
|
|
3450
|
+
ratePerSec: bigint;
|
|
3451
|
+
/** The STATEFUL term of the V3 IRM: the rate at 100 % utilization, which
|
|
3452
|
+
* decays toward the current utilization with a 2-day half-life. Any offline
|
|
3453
|
+
* reproduction of the curve needs this AND a delta-time. */
|
|
3454
|
+
fullUtilizationRate: bigint;
|
|
3455
|
+
/** Protocol cut of borrower interest, `feeToProtocolRate / 1e5`. */
|
|
3456
|
+
feeToProtocolRate: number;
|
|
3457
|
+
rateLastTimestamp: bigint;
|
|
3458
|
+
/** The `VariableInterestRateV3` contract. Its `getNewRate` is a plain view,
|
|
3459
|
+
* so exact rate-at-depth needs no modelling. */
|
|
3460
|
+
rateContract: string;
|
|
3461
|
+
isRepayPaused: boolean;
|
|
3462
|
+
isWithdrawPaused: boolean;
|
|
3463
|
+
isLiquidatePaused: boolean;
|
|
3464
|
+
isInterestPaused: boolean;
|
|
3465
|
+
/**
|
|
3466
|
+
* `swappers(cfg.leverageSwapper)` — read LIVE, per pair, every refresh.
|
|
3467
|
+
*
|
|
3468
|
+
* THE gate for native looping. Owner-mutable in both directions and set per
|
|
3469
|
+
* pair, so it can never be cached across a roster or inferred from config.
|
|
3470
|
+
* `false` here means `leveragedPosition` reverts `BadSwapper()`.
|
|
3471
|
+
*/
|
|
3472
|
+
leverageSwapperApproved: boolean;
|
|
3473
|
+
/** Echo of which swapper was probed, so a consumer can encode the loop
|
|
3474
|
+
* without re-reading config. Undefined when none is configured. */
|
|
3475
|
+
leverageSwapper?: string;
|
|
3476
|
+
}
|
|
3477
|
+
interface FraxlendPairsRaw {
|
|
3478
|
+
lender: string;
|
|
3479
|
+
config?: FraxlendConfigChain;
|
|
3480
|
+
pairs: FraxlendPairRaw[];
|
|
3481
|
+
}
|
|
3482
|
+
|
|
3483
|
+
declare function fetchFraxlendPairs(lender: string, chainId: string): Promise<FraxlendPairsRaw>;
|
|
3484
|
+
|
|
3485
|
+
/**
|
|
3486
|
+
* Synthesized per-pair lender key, e.g. `FRAXLEND_1_AB3CB84C…`. The chain id
|
|
3487
|
+
* rides in the key (the Fluid / River / Resupply / Curvance convention) even
|
|
3488
|
+
* though Fraxlend is Ethereum-only today.
|
|
3489
|
+
*/
|
|
3490
|
+
declare function fraxlendLenderKey(lender: string, chainId: string | number, pair: string): string;
|
|
3491
|
+
/** Recover `{ lender, chainId, pair }` from a per-pair key. */
|
|
3492
|
+
declare function fraxlendKeyParts(key: string): {
|
|
3493
|
+
lender: string;
|
|
3494
|
+
chainId: string;
|
|
3495
|
+
pair: string;
|
|
3496
|
+
} | undefined;
|
|
3497
|
+
/**
|
|
3498
|
+
* How many ASSET units one COLLATERAL unit is worth, per the pair's own oracle.
|
|
3499
|
+
*
|
|
3500
|
+
* **`exchangeRate` is COLLATERAL-PER-ASSET — it is INVERTED relative to every
|
|
3501
|
+
* other lender we carry**, and it is NOT decimal-normalised. Fraxlend's own LTV
|
|
3502
|
+
* math is
|
|
3503
|
+
* `ltv = borrowAmount * exchangeRate * LTV_PRECISION
|
|
3504
|
+
* / (collateralAmount * EXCHANGE_PRECISION)`
|
|
3505
|
+
* which is only dimensionless if `exchangeRate` carries units of
|
|
3506
|
+
* collateral-per-asset in RAW BASE UNITS. So inverting it needs the decimal
|
|
3507
|
+
* correction too:
|
|
3508
|
+
*
|
|
3509
|
+
* assetPerCollateral = (EXCHANGE_PRECISION / exchangeRate)
|
|
3510
|
+
* * 10^(collateralDecimals - assetDecimals)
|
|
3511
|
+
*
|
|
3512
|
+
* Verified on-chain 2026-08-11 across three decimal shapes: frxUSD/sfrxETH
|
|
3513
|
+
* (18/18) -> 2162.2, frxUSD/WBTC (18/**8**) -> 60,386.5, frxUSD/sfrxUSD
|
|
3514
|
+
* (18/18) -> 1.2009. The WBTC pair is the one that catches a missing decimal
|
|
3515
|
+
* term — without it the price comes out 1e10 too large. The sfrxUSD figure was
|
|
3516
|
+
* independently confirmed against a simulated swap through the pair's approved
|
|
3517
|
+
* leverage swapper (1e18 frxUSD -> 0.8327e18 sfrxUSD = 1/1.2009).
|
|
3518
|
+
*
|
|
3519
|
+
* `which`: the protocol is deliberately two-sided. Use the HIGH rate to value
|
|
3520
|
+
* collateral for a BORROW (conservative: collateral looks cheaper) and the LOW
|
|
3521
|
+
* rate for a liquidation check. They are equal on pairs whose oracle is a
|
|
3522
|
+
* deterministic ERC-4626 share price.
|
|
3523
|
+
*/
|
|
3524
|
+
declare function fraxlendAssetPerCollateral(p: FraxlendPairRaw, which?: 'low' | 'high'): number;
|
|
3525
|
+
/**
|
|
3526
|
+
* Map one Fraxlend deployment's on-chain batch into the shared
|
|
3527
|
+
* `MorphoGeneralPublicResponse` shape, keyed `FRAXLEND_<chainId>_<PAIR>`.
|
|
3528
|
+
*
|
|
3529
|
+
* Modelling decisions worth knowing:
|
|
3530
|
+
*
|
|
3531
|
+
* - **A pair publishes TWO rows and they are ASYMMETRIC.** The `asset` leg is
|
|
3532
|
+
* supply + borrow (the pair itself is that leg's ERC-4626 vault). The
|
|
3533
|
+
* `collateral` leg is deposit-only: no lender side, no borrow side, 0 %
|
|
3534
|
+
* supply rate. That is not a gap in the data — Fraxlend genuinely pays
|
|
3535
|
+
* nothing on posted collateral, and its return is the underlying's own
|
|
3536
|
+
* intrinsic yield, which the yields layer attaches separately. Publishing a
|
|
3537
|
+
* supply rate there would double-count.
|
|
3538
|
+
* - **`maxLTV` is scaled by `LTV_PRECISION = 1e5`**, not WAD and not bps.
|
|
3539
|
+
* - **The LTV belongs to the COLLATERAL row.** Fraxlend has exactly one
|
|
3540
|
+
* collateral and one debt, so the pair-level `maxLTV` IS that row's
|
|
3541
|
+
* borrow-collateral factor; the asset row is never collateral.
|
|
3542
|
+
* - **Liquidation threshold == maxLTV.** Fraxlend has a single ratio: the
|
|
3543
|
+
* same `maxLTV` gates both opening a borrow and being liquidated
|
|
3544
|
+
* (`_isSolvent` uses it verbatim). There is no separate LT, so publishing
|
|
3545
|
+
* one would invent a safety buffer that does not exist.
|
|
3546
|
+
* - **Prices are derived from the pair's own oracle where possible.** The
|
|
3547
|
+
* shared price map covers the asset leg (frxUSD / FRAX / crvUSD / DOLA are
|
|
3548
|
+
* all well-priced), and the collateral leg is then priced RELATIVELY via
|
|
3549
|
+
* `fraxlendAssetPerCollateral`. That is strictly better than looking the
|
|
3550
|
+
* collateral up independently: it is the same number the protocol enforces
|
|
3551
|
+
* limits with, so health factors we publish agree with the chain. We fall
|
|
3552
|
+
* back to the price map only if the oracle read is unusable.
|
|
3553
|
+
* - **Caps are `type(uint256).max` on every live pair.** A pair is frozen by
|
|
3554
|
+
* setting them to 0, since v3.1.0 has NO deposit/borrow pause flag — the
|
|
3555
|
+
* four flags it does have cover repay / withdraw / liquidate / interest.
|
|
3556
|
+
* - **`isFrozen` means "cannot be entered", not "dead".** Exits stay open by
|
|
3557
|
+
* design so users can close; the Lista lesson is that a market in run-off
|
|
3558
|
+
* must keep its UI.
|
|
3559
|
+
*/
|
|
3560
|
+
declare function convertFraxlendPairsToResponse(raw: FraxlendPairsRaw, chainId: string, prices?: {
|
|
3561
|
+
[asset: string]: number;
|
|
3562
|
+
}, _additionalYields?: AdditionalYields, tokens?: GenericTokenList): {
|
|
3563
|
+
[m: string]: MorphoGeneralPublicResponse;
|
|
3564
|
+
};
|
|
3565
|
+
|
|
3398
3566
|
/**
|
|
3399
3567
|
* The immutable half of a Resupply pair. Cached across refreshes because none
|
|
3400
3568
|
* of it can change: `collateral` and `underlying` are set in the pair's
|
|
@@ -10812,6 +10980,16 @@ interface EarnRisk {
|
|
|
10812
10980
|
denomination?: Denomination;
|
|
10813
10981
|
/** The trust question, one field. */
|
|
10814
10982
|
counterparty?: CounterpartyTerms['solvency'];
|
|
10983
|
+
/**
|
|
10984
|
+
* `GREATEST(chain, lender, propagated_token)` — **higher is worse**. The rest
|
|
10985
|
+
* of the API lists `<= 4` by default and this surface matches it, so the earn
|
|
10986
|
+
* list does not disagree with `/pools` about what is listable.
|
|
10987
|
+
*/
|
|
10988
|
+
score?: number;
|
|
10989
|
+
/** Human band for `score` — 'low' | 'medium' | 'high' | … */
|
|
10990
|
+
label?: string;
|
|
10991
|
+
/** Claims a same-block exit but reports zero liquidity. See `isIlliquid`. */
|
|
10992
|
+
illiquid?: boolean;
|
|
10815
10993
|
}
|
|
10816
10994
|
interface EarnRefs {
|
|
10817
10995
|
/** Lending only — the full market (borrow side, pairs, IRM). */
|
|
@@ -10898,12 +11076,29 @@ interface EarnResponse {
|
|
|
10898
11076
|
* is opt-in.
|
|
10899
11077
|
*/
|
|
10900
11078
|
excluded: EarnExclusions;
|
|
11079
|
+
/**
|
|
11080
|
+
* What the server filtered WITHOUT being asked. Echoed so a default is never
|
|
11081
|
+
* invisible — an unseen filter is indistinguishable from missing data.
|
|
11082
|
+
*/
|
|
11083
|
+
appliedDefaults?: EarnAppliedDefaults;
|
|
10901
11084
|
/** What a client can filter by, derived from the data. See {@link EarnFacets}. */
|
|
10902
11085
|
facets: EarnFacets;
|
|
10903
11086
|
}
|
|
10904
11087
|
interface EarnExclusions {
|
|
10905
11088
|
/** Rows hidden because the venue adds ~nothing over the asset's own yield. */
|
|
10906
11089
|
passthrough: number;
|
|
11090
|
+
/** Claims a same-block exit but reports zero liquidity. */
|
|
11091
|
+
illiquid: number;
|
|
11092
|
+
/** Below the TVL floor — an APR there is a rounding artefact. */
|
|
11093
|
+
lowTvl: number;
|
|
11094
|
+
/** Above the risk ceiling the rest of the API also applies. */
|
|
11095
|
+
highRisk: number;
|
|
11096
|
+
}
|
|
11097
|
+
interface EarnAppliedDefaults {
|
|
11098
|
+
minTvlUsd: number;
|
|
11099
|
+
maxRiskScore: number;
|
|
11100
|
+
excludePassthrough: boolean;
|
|
11101
|
+
excludeIlliquid: boolean;
|
|
10907
11102
|
}
|
|
10908
11103
|
/**
|
|
10909
11104
|
* The filter vocabulary, published rather than hard-coded.
|
|
@@ -10920,6 +11115,14 @@ interface EarnExclusions {
|
|
|
10920
11115
|
* the other options vanish from the dropdown.
|
|
10921
11116
|
*/
|
|
10922
11117
|
interface EarnFacets {
|
|
11118
|
+
/**
|
|
11119
|
+
* Underlying assets by SYMBOL.
|
|
11120
|
+
*
|
|
11121
|
+
* Keyed by symbol rather than `assetGroup` because `assetGroup` is frequently
|
|
11122
|
+
* null, which left an asset dropdown built on it mostly empty. A symbol is
|
|
11123
|
+
* always present.
|
|
11124
|
+
*/
|
|
11125
|
+
assets: EarnFacetBucket[];
|
|
10923
11126
|
/**
|
|
10924
11127
|
* Venues grouped by BRAND — the dimension a filter UI should offer.
|
|
10925
11128
|
*
|
|
@@ -11021,6 +11224,67 @@ type EarnLabelDimension = keyof typeof EARN_LABELS;
|
|
|
11021
11224
|
*/
|
|
11022
11225
|
declare function earnLabel(dimension: EarnLabelDimension, key: string): string;
|
|
11023
11226
|
declare function earnDescription(dimension: keyof typeof EARN_DESCRIPTIONS, key: string): string | undefined;
|
|
11227
|
+
interface EarnMarketLabelInput {
|
|
11228
|
+
/** The asset being supplied, e.g. `USDC`. */
|
|
11229
|
+
assetSymbol?: string;
|
|
11230
|
+
/**
|
|
11231
|
+
* Symbols of the collateral(s) that can be posted against this market.
|
|
11232
|
+
*
|
|
11233
|
+
* Length is the whole signal — see {@link earnMarketLabel}. Pass the real
|
|
11234
|
+
* list; do not pre-truncate it, or a shared pool with 30 collaterals becomes
|
|
11235
|
+
* indistinguishable from an isolated pair with 1.
|
|
11236
|
+
*/
|
|
11237
|
+
collateralSymbols?: string[];
|
|
11238
|
+
/** The fetcher's own name, used as the fallback. */
|
|
11239
|
+
fallbackName?: string;
|
|
11240
|
+
}
|
|
11241
|
+
/**
|
|
11242
|
+
* A market label that actually distinguishes one market from another.
|
|
11243
|
+
*
|
|
11244
|
+
* The problem this solves: an isolated market is a **(collateral, loan) pair**,
|
|
11245
|
+
* but the fetcher emits it as two rows each naming only its own leg — so a
|
|
11246
|
+
* chain with 300 Morpho Blue markets renders 300 rows all reading
|
|
11247
|
+
* "Loan USDC". The identity lives in the relationship between the legs, and
|
|
11248
|
+
* neither leg's name can express it.
|
|
11249
|
+
*
|
|
11250
|
+
* **The collateral is named exactly when the market is ISOLATED**, i.e. exactly
|
|
11251
|
+
* one collateral pairs with it:
|
|
11252
|
+
*
|
|
11253
|
+
* ```
|
|
11254
|
+
* 1 collateral → 'USDC · vs wstETH' the collateral IS the identity
|
|
11255
|
+
* many → 'USDC' a shared pool; naming 1 of 30 misleads
|
|
11256
|
+
* none → 'USDC' collateral-only or unpaired
|
|
11257
|
+
* ```
|
|
11258
|
+
*
|
|
11259
|
+
* Derived, never configured. No table says "Morpho is isolated, Aave is not" —
|
|
11260
|
+
* the pair count says it, so a newly integrated isolated lender labels itself
|
|
11261
|
+
* correctly with no code change here.
|
|
11262
|
+
*/
|
|
11263
|
+
declare function earnMarketLabel(input: EarnMarketLabelInput): string;
|
|
11264
|
+
/**
|
|
11265
|
+
* Can the money actually leave?
|
|
11266
|
+
*
|
|
11267
|
+
* A venue advertising a same-block exit while reporting ZERO liquidity against
|
|
11268
|
+
* a non-zero balance is enterable but not exitable — the Clearstar shape: $1.8M
|
|
11269
|
+
* of TVL, an "Instant" exit, and nothing to withdraw.
|
|
11270
|
+
*
|
|
11271
|
+
* Two conditions are load-bearing:
|
|
11272
|
+
*
|
|
11273
|
+
* - **Only same-block modes qualify.** A cooldown or request-based vault
|
|
11274
|
+
* legitimately reports no instant liquidity; that is its design, not a
|
|
11275
|
+
* defect, and flagging it would condemn every well-behaved queued vault.
|
|
11276
|
+
* - **`undefined` is not zero.** Several providers do not report liquidity at
|
|
11277
|
+
* all. Treating "not published" as "none" would condemn them on a field they
|
|
11278
|
+
* never sent, so an unknown liquidity is never flagged.
|
|
11279
|
+
*
|
|
11280
|
+
* Mirrored by the `illiquid` column in the `v_earn_latest` migration; a test in
|
|
11281
|
+
* yield-tracer pins the two against each other.
|
|
11282
|
+
*/
|
|
11283
|
+
declare function isIlliquid(input: {
|
|
11284
|
+
exitMode?: string;
|
|
11285
|
+
tvlUsd?: number;
|
|
11286
|
+
liquidityUsd?: number;
|
|
11287
|
+
}): boolean;
|
|
11024
11288
|
|
|
11025
11289
|
/**
|
|
11026
11290
|
* Multiply a formatted (human-unit) amount by a USD price.
|
|
@@ -11060,6 +11324,15 @@ interface VaultSourceRow {
|
|
|
11060
11324
|
decimals?: number;
|
|
11061
11325
|
assetDecimals?: number;
|
|
11062
11326
|
curatorName?: string;
|
|
11327
|
+
/**
|
|
11328
|
+
* The vault origin names this `rating`, not `risk`, and uses `level` where
|
|
11329
|
+
* pools use `label`. Two shapes for one concept — read both explicitly
|
|
11330
|
+
* rather than assuming either.
|
|
11331
|
+
*/
|
|
11332
|
+
rating?: {
|
|
11333
|
+
level?: string;
|
|
11334
|
+
score?: number | string;
|
|
11335
|
+
};
|
|
11063
11336
|
sharePrice?: number | string;
|
|
11064
11337
|
sharePriceUsd?: number | string;
|
|
11065
11338
|
rates?: {
|
|
@@ -11227,6 +11500,14 @@ interface PoolSourceRow {
|
|
|
11227
11500
|
totalLiquidityUSD?: number | string;
|
|
11228
11501
|
totalLiquidityUsd?: number | string;
|
|
11229
11502
|
utilization?: number | string;
|
|
11503
|
+
/**
|
|
11504
|
+
* NESTED on the origin response — `risk: { score, label, breakdown }` — not
|
|
11505
|
+
* flat `riskScore`. Reading the flat form silently yielded no risk at all.
|
|
11506
|
+
*/
|
|
11507
|
+
risk?: {
|
|
11508
|
+
score?: number | string;
|
|
11509
|
+
label?: string;
|
|
11510
|
+
};
|
|
11230
11511
|
supplyCap?: number | string;
|
|
11231
11512
|
caps?: {
|
|
11232
11513
|
supplyCap?: number | string;
|
|
@@ -11277,4 +11558,4 @@ declare const PASSTHROUGH_RATE_EPSILON = 0.01;
|
|
|
11277
11558
|
*/
|
|
11278
11559
|
declare function stampCapabilities(row: EarnMarket): EarnMarket;
|
|
11279
11560
|
|
|
11280
|
-
export { type AaveMetadata, type AaveV2Public, type AaveV2UserReserveResponse, type AaveV3Public, type AaveV3UserReserveResponse, type AdditionalYields, type AdminKind, ApiBookSource, type AprData, type AprPercent, type AssetQuality, type AssetRiskIndex, type AuctionWindow, type AvailabilityTerms, type BalanceData, type BaseLendingPosition, type BasicReserveResponse, type BorrowExitTerms, type BorrowTermSheet, type BuildTermSheetOptions, type ChainDiagnostic, type ChainLinkResponse, type ChainQuery, type ChainSummary, type CompoundV2Metadata, type CompoundV3Public, type CompoundV3UserReserveResponse, type ConfigEntry, type ConvertLenderUserDataOptions, type CoreValidators, type CounterpartyTerms, type CoverageInfo, DEFAULT_MIDNIGHT_API, DEFAULT_OUTLIER_GUARD, DEFAULT_PROFILE_ID, DEFAULT_STALE_REJECT_SECONDS, DEFAULT_TERMMAX_API, type DeepPartial, type Denomination, type DepthMap, type DssMarketRaw, type DssMarketsRaw, type DssPositionInfo, EARN_DESCRIPTIONS, EARN_LABELS, EMPTY_BALANCE, type EModeAssets, type EModeData, type EModeResult, EXACTLY_LENDER_KEY, type EarnActionKind, type EarnAmount, type EarnAsset, type EarnAvailability, type EarnCapability, type EarnExclusions, type EarnExit, type EarnFacetBucket, type EarnFacets, type EarnGating, type EarnLabelDimension, type EarnMarket, type EarnRate, type EarnRateSource, type EarnRefs, type EarnResponse, type EarnRisk, type EarnShareToken, type EarnSourceStatus, type EarnVaultNormalizeOptions, type EarnVenueKind, type EarnVocabulary, type EndpointFailure, type EnrichmentIndex, type EulerEarnVault, type EulerEarnVaults, type EulerV2Metadata, type ExactlyFixedPool, type ExactlyFixedPosition, type ExactlyMarketAccount, type ExactlyMarketsRaw, type ExactlyUserFixedPosition, type ExposureEntry, type ExposureTerms, type ExtraValidationCall, FRACTION_RATE_PROVIDERS, type FeeTerm, type FeeWhen, type FeedObservation, type FeedStat, type FeedStatsMap, type FeedTimestampMap, type FetchListaVaultsFromChainOptions, type FetchMorphoVaultsFromChainOptions, type FetchOraclePricesOptions, type FetchPendlePtOptions, type FetchTokenBalancesOptions, type FlattenPriorityConfig, type FluidFToken, type FluidFTokens, type FrankencoinMarketRaw, type FrankencoinMarketsRaw, type FrankencoinPositionInfo, type FullLenderRewardsMap, GMX_API_HOSTS, GMX_READ_CONTRACTS, GMX_SUPPORTED_CHAINS, type GenericCurrency, type GenericTokenList, type GetVaultPublicDataAllOptions, type GmxExecutionFees, type GmxPendingDeposit, type GmxPendingWithdrawal, type GmxReadContracts, type GmxUserBalance, type GmxUserPositions, type GmxUserPositionsOptions, type GmxVault, type GmxVaultKind, type GmxVaults, type GmxVaultsFetchOptions, type GovernancePower, type GovernanceRow, type GovernanceTerms, type GroupAccumulator, HYPERCORE_VAULT_REGISTRY, type HypercoreLockStatus, type HypercoreUserPositionsOptions, type HypercoreVault, type HypercoreVaultPosition, type HypercoreVaultRegistryEntry, type HypercoreVaults, type HypercoreVaultsFetchOptions, IDLE_MARKET_ID, INTERFACE_IDS, type IncompleteLenderRead, type IncompleteReason, type InitMetadata, type InitPublic, type InitUserReserveResponse, type InterfaceKind, type InvariantViolation, type InverseMarketRaw, type InverseMarketsRaw, type InversePositionInfo, LAGOON_API_URL, LAGOON_CHAIN_IDS, type LagoonApiVault, type LagoonSyncMode, type LagoonVault, type LagoonVaults, type LenderAssetReward, type LenderConfigData, type LenderConfigMap, type LenderCrossPoolMeta, type LenderData, type LenderDataEntry, type LenderInfo, type LenderInfoMap, type LenderPublicBase, type LenderRewardsMap, type LenderSummary, type LenderToLenderCrossPoolMeta, type LenderTotalAmounts, type LenderUserQuery, type LenderUserResponse, type LenderYieldComplete, type LenderYields$1 as LenderYields, LendingMode, type LiquidationPenaltyTerm, type LiquidationTerms, type LiquityBranchRaw, type LiquityDiscoveredTrove, type LiquityDiscovery, type LiquityMarketsRaw, type LiquitySpInfo, type LiquityTroveInfo, type ListaMarketOverrides, type LlamaLendMarketOverride, type LlamaLendMarketOverrides, type LlamaLendMarketRaw, type LlamaLendMarketsRaw, type LlamaLendPositionInfo, type LoopPostTradeMetrics, type LstDelegation, type LstDelegationKind, type LstValidator, type LstWithdrawalFetchOptions, type LstWithdrawalRegistryEntry, type LstWithdrawalRequest, type LstWithdrawalRequestsByLst, type LstWithdrawalStatus, MORPHO_LENS, MULTICALL_FAILURE, type MaturityTerms, MaxParamThresholds, type MergedUserData, type MidnightBook, type MidnightBookLevel, type MidnightBookSource, type ModeBase, type ModeVariant, type MorphoMarketOverrides, type MorphoSubgraphProxyConfig, type MorphoUserMarketBalance, type MorphoUserReserveResponse, type MorphoVault, type MorphoVaults, type MulticallEndpointOptions, type MulticallRpcBatch, type NumberMap, type Open, type OracleBand, type OracleDiagnostics, type OraclePriceEntry, type OraclePricesResult, type OracleRiskRow, type OracleTerms, type OutlierGuardConfig, PASSTHROUGH_RATE_EPSILON, PENDLE_ASSETS_URL, PENDLE_CHAIN_IDS, PENDLE_MARKETS_URL, type ParsedBalanceData, type ParsedEarnUid, type ParsedLendingEarnUid, type ParsedResponse, type ParsedUserBalance, type ParsedVaultEarnUid, type PendleApiAsset, type PendleApiMarket, type PendleApiMarketDetails, type PendlePtMarket, type PendlePtMarkets, type PermissionKind, type PermissionParams, type PoolData, type PoolSourceRow, type PoolWithMeta, type PortfolioSummary, type PortfolioTotals, type PositionConstraints, type PostTradeMetrics, type PreparedCall, type PreparedMergedMulticallParams, type PreparedMergedRpcCalls, type PreparedTokenBalanceRpcCalls, type PreparedUserDataRpcCalls, type PriceDerivation, type PriceSelection, type ProtocolParams, type ProviderOptions, type RateKind, type RateMenuEntry, type RateTerms, type RawRpcBatch, type RawRpcCall, type RawRpcResponse, type ReadFailurePolicy, type RedemptionTerms, type ResupplyMarketsRaw, type ResupplyPairIdentity, type ResupplyPairRaw, type ResupplyPositionInfo, type ResupplyWrappedMarket, type RewardSourceRef, type RewardStream, type RewardTerm, type RewardTokenRef, type RiverMarketRaw, type RiverMarketsRaw, type RiverPositionInfo, SDK_FRACTION_RATE_PROVIDERS, STABLECOIN_SYMBOLS, STCELO_MANAGER_ADDRESS, type SelectPricesOptions, type Severity, type SeverityFinding, type SiloVault, type SiloVaults, type StCeloValidatorGroup, type StaleFeedEntry, type StampOptions, type StructuredOraclePrices, type SubAccountSummary, type SumerPositionInput, type SummaryAprData, type SummaryBalanceData, type SupplyExitMode, type SupplyExitTerms, type SupplyTermSheet, TELLER_CALLS_PER_BID, TERMMAX_CALLS_PER_ACCOUNT, DECIMAL_BASE as TERMMAX_DECIMAL_BASE, TERMMAX_LIQUIDATION_PENALTY, TERMMAX_LIQUIDATION_WINDOW_SECS, TERMMAX_LIQUIDATOR_BONUS, TERMMAX_PARTIAL_CLOSE_FACTOR, TERMMAX_PARTIAL_LIQUIDATION_THRESHOLD_USD, TERM_ADAPTERS, TERM_PROFILES, TERM_SHEET_SCHEMA_VERSION, type TellerDiscoveredBid, type TellerDiscovery, type TellerMarketsRaw, type TellerPoolRaw, type TermAdapter, type TermAssetRef, type TermAuctionOrder, type TermAuctionOrders, type TermBookSource, type TermBookTop, type TermInfo, type TermListing, type TermMarketRaw, TermMaxApiSource, type TermMaxBookTop, type TermMaxCurveSegment, type TermMaxDataSource, type TermMaxDiscovery, type TermMaxFeeConfig, type TermMaxMarketConfig, type TermMaxMarketRaw, type TermMaxOrderState, type TermProfile, type TermSheet, type TermSheetDigest, type TermSheetInput, type TermSheetViolation, TermSubgraphSource, type TermTag, type TokenApprovalMeta, type TokenApprovalParams, type TokenBalanceEntry, type TokenBalanceQuery, type TokenBalanceResult, type TokenEntry, type TokenList, type TokenListInput, type TrackerDiagnostic, UPSHIFT_CHAIN_IDS, UPSHIFT_VAULTS_URL, type USDPriceMap, type UpshiftApiAsset, type UpshiftApiVault, type UpshiftVault, type UpshiftVaults, type UsddMarketRaw, type UsddMarketsRaw, type DssPositionInfo as UsddPositionInfo, type UserApr, type UserConfig, type UserData, type UserDataResult, type UserLendingPosition, type UtilizationTerms, VAULT_SHARE_PRICE_PROBE, VAULT_VENUE_PREFIX, VOLATILE_VAULT_OVERRIDES, type ValidationResult, type VaultAprResult, type VaultClassification, type VaultClassificationFields, type VaultLookupEntry, type VaultMarketExposure, type VaultProvider, type VaultPublicDataAll, type VaultPublicDataResult, type VaultSourceRow, type VaultYieldSeries, type VaultYieldSnapshot, type YDaemonVault, YEARN_CHAIN_IDS, YEARN_YDAEMON_BASE, type YearnVault, type YearnVaultKind, type YearnVaults, type YieldProfile, __resetResupplyUserCaches, accountDepositListKey, accountWithdrawalListKey, appendSnapshot, applyPositionDelta, attachImplications, attachPricesToFlashLiquidity, borrowDescription, borrowFindings, borrowHeadline, buildExposures, buildFluidFTokensCall, buildLiquityUserCall, buildLoopResult, buildMorphoTypeCall, buildMorphoTypeUserCallWithLens, buildPortfolioTotals, buildSumerAccumulators, buildSummaries, buildTellerUserCall, buildTermMaxUserCall, buildTermSheet, buildTermSheetsForGroup, buildVaultEarnUid, buildVaultLookup, calculateLeverage, calculateNetApr, calculateOverallNetApr, calculateWeightedAverage, classifyFreshness, classifyReliability, classifyVault, clearPendleMarketsCache, collectFeedObservations, computeBorrowDelta, computeCloseTradeDeltas, computeCollateralSwapDeltas, computeDebtSwapDeltas, computeDepositDelta, computeEModeAnalysis, computeOpenTradeDeltas, computePostTradeMetrics, computeRepayDelta, computeSumerBorrowDelta, computeSumerDepositDelta, computeSumerRepayDelta, computeSumerWaterfall, computeSumerWithdrawDelta, computeVaultApr, computeWithdrawDelta, computeZapTradeDeltas, consensusReference, convertDssMarketsToResponse, convertExactlyMarketsToResponse, convertFrankencoinMarketsToResponse, convertInverseMarketsToResponse, convertLenderUserDataResult, convertLiquityMarketsToResponse, convertLlamaLendMarketsToResponse, convertResupplyMarketsToResponse, convertRiverMarketsToResponse, convertTellerMarketsToResponse, convertTermMarketsToResponse, convertTermMaxMarketsToResponse, convertUsddMarketsToResponse, createMarketUid, createMidnightBookSource, createMulticallRpcCall, createRawRpcCalls, createTermBookSource, createTermMaxDataSource, decodeListaMarkets, decodeMarkets, decodePackedListaUserDataset, decodePackedMorphoUserDataset, deriveBorrowTags, deriveSupplyTags, detectInterfaceKinds, dssIlkBytes32, dssKeyParts, dssLenderKey, duration, earnDescription, earnLabel, earnMarketFromPool, earnMarketFromVault, earnUidFromMarketUid, earnVenueKind, encodeBalanceFetcherCalldata, enrichTermSheet, enrichmentIndexFromRows, exactlyPairLtv, exactlyPenaltyRateToAprPercent, exactlyWadRateToPercent, feePhrase, feedKeyOf, feedStatKey, fetchDolomiteAccountNumbers, fetchDssMarkets, fetchEulerEarnVaults, fetchEulerEarnVaultsFromSubgraph, fetchEulerSubAccountIndexes, fetchExactlyMarkets, fetchFlashLiquidityForChain, fetchFluidFTokens, fetchFrankencoinMarkets, fetchGeneralYields, fetchGeneralYieldsByMarketUid, fetchGmxExecutionFees, fetchGmxTickerPrices, fetchGmxVaults, fetchHypercoreVaults, fetchInverseMarkets, fetchLagoonApiVaults, fetchLagoonVaults, fetchLiquityMarkets, fetchListaVaultsFromChain, fetchLlamaLendMarkets, fetchMorphoUserBalances, fetchMorphoUserPositionMarkets, fetchMorphoVaults, fetchMorphoVaultsFromApi, fetchMorphoVaultsFromChain, fetchOraclePrices, fetchPendleApiAssets, fetchPendleApiMarkets, fetchPendlePrices, fetchPendlePtMarkets, fetchResupplyMarkets, fetchRiverMarkets, fetchSiloVaults, fetchTellerMarkets, fetchTermMarkets, fetchTermMaxMarkets, fetchTokenBalances, fetchTokenMetadata, fetchUpshiftApiVaults, fetchUpshiftVaults, fetchUsddMarkets, fetchYearnApiVaults, fetchYearnVaults, filterActiveLenders, filterLendersByProtocol, finalizeInfo, findingsFor, formatRaw, frankencoinKeyParts, frankencoinLenderKey, fuseLenderData, generateLendingPools, getAavesForChain, getAssetConfig, getBalanceForMarketUid, getBorrowCapacity, getCachedLiquityTroves, getCachedTellerBids, getCachedTermMaxDiscovery, getCachedTermMaxMarket, getCachedTermMaxMarkets, getCoreValidators, getFluidFTokensConverter, getGmxApiHost, getGmxReadContracts, getGmxUserPositions, getHealthFactor, getHypercoreUserPositions, getHypercoreVaultRegistry, getLenderAssets, getLenderPublicData, getLenderPublicDataAll, getLenderPublicDataViaApi, getLenderUserDataMulti, getLenderUserDataResult, getLendersForChain, getLstDelegation, getLstValidators, getLstWithdrawalRegistry, getLstWithdrawalRequests, getMaxAmountClose, getMaxAmountCollateralSwap, getMaxAmountDebtSwap, getMaxAmountOpen, getMergedUserData, getMorphoTypeMarketConverter, getReadFailurePolicy, getResolvedDolomiteAccountNumbers, getStCeloValidatorGroups, getSubAccountAddress, getSubAccountIndex, getTermProfile, getVaultPublicDataAll, getVaultWithdrawalRequests, hasCritical, hasEulerEarnVaultSubgraph, hasLagoonVaults, hasMorphoPositionIndex, hasMorphoUserApi, hasMorphoUserSubgraph, hasPendleMarkets, hasUpshiftVaults, hasYearnVaults, ilkToKeySegment, implausibleRatePercent, inverseKeyParts, inverseLenderKey, isFailedCall, isLiveMarket as isLivePendleMarket, isStablecoinSymbol, isVaultVenue, isYearnV3, keySegmentToIlk, keysFromMaps, lenderApiOnly, lenderFamily, liquityCandidateTroveIds, liquityKeyParts, liquityLenderKey, llamaLendKeyParts, llamaLendLenderKey, mergeDeep, multicall3Abi, nanTo, needsLenderApproval, needsTokenApproval, noOpResult, normalizeToBytes, parseBalanceFetcherResult, parseEarnUid, parseMergedResult, parseMulticallRpcResponses, parseExpirySeconds as parsePendleExpirySeconds, parseRawRpcBatchResponses, parseRawRpcResponses, parseTermMaxLtv, parseTokenBalanceResult, pct, assetKey as pendleAssetKey, positivePart, predictInverseEscrow, prepareLenderUserDataRpcCalls, prepareMergedMulticallParams, prepareMergedRpcCalls, prepareMulticallInputs, prepareTokenBalanceRpcCalls, priceGlvVaults, priceGmMarkets, probeAaveFeedTimestamps, pruneFeedStats, rankFindings, ratePercent, readVaultSharePrices, rejectOutliers as rejectPriceOutliers, resolveAdapter, resolveDerivation, resolveStCeloDepositGroup, resupplyKeyParts, resupplyLenderKey, resupplyMarketLabel, riverKeyParts, riverLenderKey, selectAssetGroupPrices, shortDate, splitChainScopedAddress as splitPendleChainScopedAddress, stampCapabilities, stampVaultClassification, supplyDescription, supplyFindings, supplyHeadline, tellerBpsToPercent, tellerImpliedLtv, tellerLenderKey, tellerPoolFromLenderKey, termLenderKey, termMaxApiBase, borrowNif as termMaxBorrowNif, curveApr as termMaxCurveApr, curveAprNumber as termMaxCurveAprNumber, daysToMaturity as termMaxDaysToMaturity, lendNif as termMaxLendNif, mintGtFeeRatio as termMaxMintGtFeeRatio, ratioToNumber as termMaxRatioToNumber, ratioToPercent as termMaxRatioToPercent, tickToAprNumber, tickToPrice, toDigest, toTermSheetInput, tryParseEarnUid, unflattenLenderData, updateFeedStats, usdValue, usddIlkBytes32, usddKeyParts, usddLenderKey, validateTermSheet, validateTermSheets, validateUserData, vaultVenue, venueBrand };
|
|
11561
|
+
export { type AaveMetadata, type AaveV2Public, type AaveV2UserReserveResponse, type AaveV3Public, type AaveV3UserReserveResponse, type AdditionalYields, type AdminKind, ApiBookSource, type AprData, type AprPercent, type AssetQuality, type AssetRiskIndex, type AuctionWindow, type AvailabilityTerms, type BalanceData, type BaseLendingPosition, type BasicReserveResponse, type BorrowExitTerms, type BorrowTermSheet, type BuildTermSheetOptions, type ChainDiagnostic, type ChainLinkResponse, type ChainQuery, type ChainSummary, type CompoundV2Metadata, type CompoundV3Public, type CompoundV3UserReserveResponse, type ConfigEntry, type ConvertLenderUserDataOptions, type CoreValidators, type CounterpartyTerms, type CoverageInfo, DEFAULT_MIDNIGHT_API, DEFAULT_OUTLIER_GUARD, DEFAULT_PROFILE_ID, DEFAULT_STALE_REJECT_SECONDS, DEFAULT_TERMMAX_API, type DeepPartial, type Denomination, type DepthMap, type DssMarketRaw, type DssMarketsRaw, type DssPositionInfo, EARN_DESCRIPTIONS, EARN_LABELS, EMPTY_BALANCE, type EModeAssets, type EModeData, type EModeResult, EXACTLY_LENDER_KEY, type EarnActionKind, type EarnAmount, type EarnAppliedDefaults, type EarnAsset, type EarnAvailability, type EarnCapability, type EarnExclusions, type EarnExit, type EarnFacetBucket, type EarnFacets, type EarnGating, type EarnLabelDimension, type EarnMarket, type EarnMarketLabelInput, type EarnRate, type EarnRateSource, type EarnRefs, type EarnResponse, type EarnRisk, type EarnShareToken, type EarnSourceStatus, type EarnVaultNormalizeOptions, type EarnVenueKind, type EarnVocabulary, type EndpointFailure, type EnrichmentIndex, type EulerEarnVault, type EulerEarnVaults, type EulerV2Metadata, type ExactlyFixedPool, type ExactlyFixedPosition, type ExactlyMarketAccount, type ExactlyMarketsRaw, type ExactlyUserFixedPosition, type ExposureEntry, type ExposureTerms, type ExtraValidationCall, FRACTION_RATE_PROVIDERS, type FeeTerm, type FeeWhen, type FeedObservation, type FeedStat, type FeedStatsMap, type FeedTimestampMap, type FetchListaVaultsFromChainOptions, type FetchMorphoVaultsFromChainOptions, type FetchOraclePricesOptions, type FetchPendlePtOptions, type FetchTokenBalancesOptions, type FlattenPriorityConfig, type FluidFToken, type FluidFTokens, type FrankencoinMarketRaw, type FrankencoinMarketsRaw, type FrankencoinPositionInfo, type FraxlendPairRaw, type FraxlendPairsRaw, type FullLenderRewardsMap, GMX_API_HOSTS, GMX_READ_CONTRACTS, GMX_SUPPORTED_CHAINS, type GenericCurrency, type GenericTokenList, type GetVaultPublicDataAllOptions, type GmxExecutionFees, type GmxPendingDeposit, type GmxPendingWithdrawal, type GmxReadContracts, type GmxUserBalance, type GmxUserPositions, type GmxUserPositionsOptions, type GmxVault, type GmxVaultKind, type GmxVaults, type GmxVaultsFetchOptions, type GovernancePower, type GovernanceRow, type GovernanceTerms, type GroupAccumulator, HYPERCORE_VAULT_REGISTRY, type HypercoreLockStatus, type HypercoreUserPositionsOptions, type HypercoreVault, type HypercoreVaultPosition, type HypercoreVaultRegistryEntry, type HypercoreVaults, type HypercoreVaultsFetchOptions, IDLE_MARKET_ID, INTERFACE_IDS, type IncompleteLenderRead, type IncompleteReason, type InitMetadata, type InitPublic, type InitUserReserveResponse, type InterfaceKind, type InvariantViolation, type InverseMarketRaw, type InverseMarketsRaw, type InversePositionInfo, LAGOON_API_URL, LAGOON_CHAIN_IDS, type LagoonApiVault, type LagoonSyncMode, type LagoonVault, type LagoonVaults, type LenderAssetReward, type LenderConfigData, type LenderConfigMap, type LenderCrossPoolMeta, type LenderData, type LenderDataEntry, type LenderInfo, type LenderInfoMap, type LenderPublicBase, type LenderRewardsMap, type LenderSummary, type LenderToLenderCrossPoolMeta, type LenderTotalAmounts, type LenderUserQuery, type LenderUserResponse, type LenderYieldComplete, type LenderYields$1 as LenderYields, LendingMode, type LiquidationPenaltyTerm, type LiquidationTerms, type LiquityBranchRaw, type LiquityDiscoveredTrove, type LiquityDiscovery, type LiquityMarketsRaw, type LiquitySpInfo, type LiquityTroveInfo, type ListaMarketOverrides, type LlamaLendMarketOverride, type LlamaLendMarketOverrides, type LlamaLendMarketRaw, type LlamaLendMarketsRaw, type LlamaLendPositionInfo, type LoopPostTradeMetrics, type LstDelegation, type LstDelegationKind, type LstValidator, type LstWithdrawalFetchOptions, type LstWithdrawalRegistryEntry, type LstWithdrawalRequest, type LstWithdrawalRequestsByLst, type LstWithdrawalStatus, MORPHO_LENS, MULTICALL_FAILURE, type MaturityTerms, MaxParamThresholds, type MergedUserData, type MidnightBook, type MidnightBookLevel, type MidnightBookSource, type ModeBase, type ModeVariant, type MorphoMarketOverrides, type MorphoSubgraphProxyConfig, type MorphoUserMarketBalance, type MorphoUserReserveResponse, type MorphoVault, type MorphoVaults, type MulticallEndpointOptions, type MulticallRpcBatch, type NumberMap, type Open, type OracleBand, type OracleDiagnostics, type OraclePriceEntry, type OraclePricesResult, type OracleRiskRow, type OracleTerms, type OutlierGuardConfig, PASSTHROUGH_RATE_EPSILON, PENDLE_ASSETS_URL, PENDLE_CHAIN_IDS, PENDLE_MARKETS_URL, type ParsedBalanceData, type ParsedEarnUid, type ParsedLendingEarnUid, type ParsedResponse, type ParsedUserBalance, type ParsedVaultEarnUid, type PendleApiAsset, type PendleApiMarket, type PendleApiMarketDetails, type PendlePtMarket, type PendlePtMarkets, type PermissionKind, type PermissionParams, type PoolData, type PoolSourceRow, type PoolWithMeta, type PortfolioSummary, type PortfolioTotals, type PositionConstraints, type PostTradeMetrics, type PreparedCall, type PreparedMergedMulticallParams, type PreparedMergedRpcCalls, type PreparedTokenBalanceRpcCalls, type PreparedUserDataRpcCalls, type PriceDerivation, type PriceSelection, type ProtocolParams, type ProviderOptions, type RateKind, type RateMenuEntry, type RateTerms, type RawRpcBatch, type RawRpcCall, type RawRpcResponse, type ReadFailurePolicy, type RedemptionTerms, type ResupplyMarketsRaw, type ResupplyPairIdentity, type ResupplyPairRaw, type ResupplyPositionInfo, type ResupplyWrappedMarket, type RewardSourceRef, type RewardStream, type RewardTerm, type RewardTokenRef, type RiverMarketRaw, type RiverMarketsRaw, type RiverPositionInfo, SDK_FRACTION_RATE_PROVIDERS, STABLECOIN_SYMBOLS, STCELO_MANAGER_ADDRESS, type SelectPricesOptions, type Severity, type SeverityFinding, type SiloVault, type SiloVaults, type StCeloValidatorGroup, type StaleFeedEntry, type StampOptions, type StructuredOraclePrices, type SubAccountSummary, type SumerPositionInput, type SummaryAprData, type SummaryBalanceData, type SupplyExitMode, type SupplyExitTerms, type SupplyTermSheet, TELLER_CALLS_PER_BID, TERMMAX_CALLS_PER_ACCOUNT, DECIMAL_BASE as TERMMAX_DECIMAL_BASE, TERMMAX_LIQUIDATION_PENALTY, TERMMAX_LIQUIDATION_WINDOW_SECS, TERMMAX_LIQUIDATOR_BONUS, TERMMAX_PARTIAL_CLOSE_FACTOR, TERMMAX_PARTIAL_LIQUIDATION_THRESHOLD_USD, TERM_ADAPTERS, TERM_PROFILES, TERM_SHEET_SCHEMA_VERSION, type TellerDiscoveredBid, type TellerDiscovery, type TellerMarketsRaw, type TellerPoolRaw, type TermAdapter, type TermAssetRef, type TermAuctionOrder, type TermAuctionOrders, type TermBookSource, type TermBookTop, type TermInfo, type TermListing, type TermMarketRaw, TermMaxApiSource, type TermMaxBookTop, type TermMaxCurveSegment, type TermMaxDataSource, type TermMaxDiscovery, type TermMaxFeeConfig, type TermMaxMarketConfig, type TermMaxMarketRaw, type TermMaxOrderState, type TermProfile, type TermSheet, type TermSheetDigest, type TermSheetInput, type TermSheetViolation, TermSubgraphSource, type TermTag, type TokenApprovalMeta, type TokenApprovalParams, type TokenBalanceEntry, type TokenBalanceQuery, type TokenBalanceResult, type TokenEntry, type TokenList, type TokenListInput, type TrackerDiagnostic, UPSHIFT_CHAIN_IDS, UPSHIFT_VAULTS_URL, type USDPriceMap, type UpshiftApiAsset, type UpshiftApiVault, type UpshiftVault, type UpshiftVaults, type UsddMarketRaw, type UsddMarketsRaw, type DssPositionInfo as UsddPositionInfo, type UserApr, type UserConfig, type UserData, type UserDataResult, type UserLendingPosition, type UtilizationTerms, VAULT_SHARE_PRICE_PROBE, VAULT_VENUE_PREFIX, VOLATILE_VAULT_OVERRIDES, type ValidationResult, type VaultAprResult, type VaultClassification, type VaultClassificationFields, type VaultLookupEntry, type VaultMarketExposure, type VaultProvider, type VaultPublicDataAll, type VaultPublicDataResult, type VaultSourceRow, type VaultYieldSeries, type VaultYieldSnapshot, type YDaemonVault, YEARN_CHAIN_IDS, YEARN_YDAEMON_BASE, type YearnVault, type YearnVaultKind, type YearnVaults, type YieldProfile, __resetResupplyUserCaches, accountDepositListKey, accountWithdrawalListKey, appendSnapshot, applyPositionDelta, attachImplications, attachPricesToFlashLiquidity, borrowDescription, borrowFindings, borrowHeadline, buildExposures, buildFluidFTokensCall, buildLiquityUserCall, buildLoopResult, buildMorphoTypeCall, buildMorphoTypeUserCallWithLens, buildPortfolioTotals, buildSumerAccumulators, buildSummaries, buildTellerUserCall, buildTermMaxUserCall, buildTermSheet, buildTermSheetsForGroup, buildVaultEarnUid, buildVaultLookup, calculateLeverage, calculateNetApr, calculateOverallNetApr, calculateWeightedAverage, classifyFreshness, classifyReliability, classifyVault, clearPendleMarketsCache, collectFeedObservations, computeBorrowDelta, computeCloseTradeDeltas, computeCollateralSwapDeltas, computeDebtSwapDeltas, computeDepositDelta, computeEModeAnalysis, computeOpenTradeDeltas, computePostTradeMetrics, computeRepayDelta, computeSumerBorrowDelta, computeSumerDepositDelta, computeSumerRepayDelta, computeSumerWaterfall, computeSumerWithdrawDelta, computeVaultApr, computeWithdrawDelta, computeZapTradeDeltas, consensusReference, convertDssMarketsToResponse, convertExactlyMarketsToResponse, convertFrankencoinMarketsToResponse, convertFraxlendPairsToResponse, convertInverseMarketsToResponse, convertLenderUserDataResult, convertLiquityMarketsToResponse, convertLlamaLendMarketsToResponse, convertResupplyMarketsToResponse, convertRiverMarketsToResponse, convertTellerMarketsToResponse, convertTermMarketsToResponse, convertTermMaxMarketsToResponse, convertUsddMarketsToResponse, createMarketUid, createMidnightBookSource, createMulticallRpcCall, createRawRpcCalls, createTermBookSource, createTermMaxDataSource, decodeListaMarkets, decodeMarkets, decodePackedListaUserDataset, decodePackedMorphoUserDataset, deriveBorrowTags, deriveSupplyTags, detectInterfaceKinds, dssIlkBytes32, dssKeyParts, dssLenderKey, duration, earnDescription, earnLabel, earnMarketFromPool, earnMarketFromVault, earnMarketLabel, earnUidFromMarketUid, earnVenueKind, encodeBalanceFetcherCalldata, enrichTermSheet, enrichmentIndexFromRows, exactlyPairLtv, exactlyPenaltyRateToAprPercent, exactlyWadRateToPercent, feePhrase, feedKeyOf, feedStatKey, fetchDolomiteAccountNumbers, fetchDssMarkets, fetchEulerEarnVaults, fetchEulerEarnVaultsFromSubgraph, fetchEulerSubAccountIndexes, fetchExactlyMarkets, fetchFlashLiquidityForChain, fetchFluidFTokens, fetchFrankencoinMarkets, fetchFraxlendPairs, fetchGeneralYields, fetchGeneralYieldsByMarketUid, fetchGmxExecutionFees, fetchGmxTickerPrices, fetchGmxVaults, fetchHypercoreVaults, fetchInverseMarkets, fetchLagoonApiVaults, fetchLagoonVaults, fetchLiquityMarkets, fetchListaVaultsFromChain, fetchLlamaLendMarkets, fetchMorphoUserBalances, fetchMorphoUserPositionMarkets, fetchMorphoVaults, fetchMorphoVaultsFromApi, fetchMorphoVaultsFromChain, fetchOraclePrices, fetchPendleApiAssets, fetchPendleApiMarkets, fetchPendlePrices, fetchPendlePtMarkets, fetchResupplyMarkets, fetchRiverMarkets, fetchSiloVaults, fetchTellerMarkets, fetchTermMarkets, fetchTermMaxMarkets, fetchTokenBalances, fetchTokenMetadata, fetchUpshiftApiVaults, fetchUpshiftVaults, fetchUsddMarkets, fetchYearnApiVaults, fetchYearnVaults, filterActiveLenders, filterLendersByProtocol, finalizeInfo, findingsFor, formatRaw, frankencoinKeyParts, frankencoinLenderKey, fraxlendAssetPerCollateral, fraxlendKeyParts, fraxlendLenderKey, fuseLenderData, generateLendingPools, getAavesForChain, getAssetConfig, getBalanceForMarketUid, getBorrowCapacity, getCachedLiquityTroves, getCachedTellerBids, getCachedTermMaxDiscovery, getCachedTermMaxMarket, getCachedTermMaxMarkets, getCoreValidators, getFluidFTokensConverter, getGmxApiHost, getGmxReadContracts, getGmxUserPositions, getHealthFactor, getHypercoreUserPositions, getHypercoreVaultRegistry, getLenderAssets, getLenderPublicData, getLenderPublicDataAll, getLenderPublicDataViaApi, getLenderUserDataMulti, getLenderUserDataResult, getLendersForChain, getLstDelegation, getLstValidators, getLstWithdrawalRegistry, getLstWithdrawalRequests, getMaxAmountClose, getMaxAmountCollateralSwap, getMaxAmountDebtSwap, getMaxAmountOpen, getMergedUserData, getMorphoTypeMarketConverter, getReadFailurePolicy, getResolvedDolomiteAccountNumbers, getStCeloValidatorGroups, getSubAccountAddress, getSubAccountIndex, getTermProfile, getVaultPublicDataAll, getVaultWithdrawalRequests, hasCritical, hasEulerEarnVaultSubgraph, hasLagoonVaults, hasMorphoPositionIndex, hasMorphoUserApi, hasMorphoUserSubgraph, hasPendleMarkets, hasUpshiftVaults, hasYearnVaults, ilkToKeySegment, implausibleRatePercent, inverseKeyParts, inverseLenderKey, isFailedCall, isIlliquid, isLiveMarket as isLivePendleMarket, isStablecoinSymbol, isVaultVenue, isYearnV3, keySegmentToIlk, keysFromMaps, lenderApiOnly, lenderFamily, liquityCandidateTroveIds, liquityKeyParts, liquityLenderKey, llamaLendKeyParts, llamaLendLenderKey, mergeDeep, multicall3Abi, nanTo, needsLenderApproval, needsTokenApproval, noOpResult, normalizeToBytes, parseBalanceFetcherResult, parseEarnUid, parseMergedResult, parseMulticallRpcResponses, parseExpirySeconds as parsePendleExpirySeconds, parseRawRpcBatchResponses, parseRawRpcResponses, parseTermMaxLtv, parseTokenBalanceResult, pct, assetKey as pendleAssetKey, positivePart, predictInverseEscrow, prepareLenderUserDataRpcCalls, prepareMergedMulticallParams, prepareMergedRpcCalls, prepareMulticallInputs, prepareTokenBalanceRpcCalls, priceGlvVaults, priceGmMarkets, probeAaveFeedTimestamps, pruneFeedStats, rankFindings, ratePercent, readVaultSharePrices, rejectOutliers as rejectPriceOutliers, resolveAdapter, resolveDerivation, resolveStCeloDepositGroup, resupplyKeyParts, resupplyLenderKey, resupplyMarketLabel, riverKeyParts, riverLenderKey, selectAssetGroupPrices, shortDate, splitChainScopedAddress as splitPendleChainScopedAddress, stampCapabilities, stampVaultClassification, supplyDescription, supplyFindings, supplyHeadline, tellerBpsToPercent, tellerImpliedLtv, tellerLenderKey, tellerPoolFromLenderKey, termLenderKey, termMaxApiBase, borrowNif as termMaxBorrowNif, curveApr as termMaxCurveApr, curveAprNumber as termMaxCurveAprNumber, daysToMaturity as termMaxDaysToMaturity, lendNif as termMaxLendNif, mintGtFeeRatio as termMaxMintGtFeeRatio, ratioToNumber as termMaxRatioToNumber, ratioToPercent as termMaxRatioToPercent, tickToAprNumber, tickToPrice, toDigest, toTermSheetInput, tryParseEarnUid, unflattenLenderData, updateFeedStats, usdValue, usddIlkBytes32, usddKeyParts, usddLenderKey, validateTermSheet, validateTermSheets, validateUserData, vaultVenue, venueBrand };
|