@1delta/margin-fetcher 5.0.139 → 5.0.141

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 CHANGED
@@ -1482,6 +1482,17 @@ interface UserDataForSubAccount {
1482
1482
  * Absent where the account IS the owner's address.
1483
1483
  */
1484
1484
  accountAddress?: string;
1485
+ /**
1486
+ * Debt the venue counts against this account that lives in NO market, so
1487
+ * no position carries it — Venus Core's VAI, minted by the comptroller and
1488
+ * added 1:1 in USD to both health and borrow capacity. Already included in
1489
+ * `balanceData.debt` / `adjustedDebt`; absent where there is none.
1490
+ */
1491
+ externalDebts?: {
1492
+ label: string;
1493
+ debt: string;
1494
+ debtUSD: number;
1495
+ }[];
1485
1496
  /**
1486
1497
  * The venue's own name for the sub-account where it has one — Kamino
1487
1498
  * `Multiply JitoSOL/SOL`, Save `#1`, Jupiter Lend `position 1234`. Display
@@ -1500,9 +1511,11 @@ interface UserDataForSubAccount {
1500
1511
  /**
1501
1512
  * Health against the LIQUIDATION thresholds: Σ collateral × `collateralFactor`
1502
1513
  * over Σ debt × (`liquidationBorrowFactor` ?? `borrowFactor`). Set by the
1503
- * multi-account state only where a config carries a
1504
- * `liquidationBorrowFactor` (Project 0), since `health` there is computed
1505
- * on the opening factors.
1514
+ * multi-account state on every sub-account, since `health` there is
1515
+ * computed on the OPENING factors (`borrowCollateralFactor`) and so reads
1516
+ * below the venue's own health wherever LTV < LT (Kamino 90 % / 95 %:
1517
+ * 1.01 against the venue's 1.06). Absent on the single-account state,
1518
+ * whose `health` is already on the liquidation factors.
1506
1519
  */
1507
1520
  liquidationHealth?: number | null;
1508
1521
  /** Total USD borrowable while maintaining health >= 1 */
@@ -8880,6 +8893,13 @@ interface LstShareToken extends VaultClassificationFields {
8880
8893
  * by providers that read their own exit modules).
8881
8894
  */
8882
8895
  exitRoutes: VaultExitRoute[];
8896
+ /** The protocol has paused minting right now (read live). `isMintable`
8897
+ * stays the permission; `acceptedInputs` is emptied. Absent = not paused
8898
+ * or not read. */
8899
+ isDepositPaused?: boolean;
8900
+ /** The protocol has paused every exit right now (read live). `exitRoutes`
8901
+ * is emptied and `liquidity` is 0. Absent = not paused or not read. */
8902
+ isWithdrawalPaused?: boolean;
8883
8903
  /** Hydrated asset metadata from the provided token list, if any. */
8884
8904
  asset?: GenericCurrency;
8885
8905
  /** USD price of one underlying unit, if prices were supplied. */
@@ -9010,7 +9030,7 @@ type LstWithdrawalStatus =
9010
9030
  | 'expired';
9011
9031
  /** Withdrawal-reader implementation kind — drives which enumeration
9012
9032
  * function the user is queried against. */
9013
- type LstWithdrawalReaderKind = 'lidoQueue' | 'etherfiNft' | 'yieldNestNft' | 'staderEthxQueue' | 'staderMaticXQueue' | 'renzoQueue' | 'kelpQueue' | 'benqiSavaxQueue' | 'beetsStSQueue' | 'hyperbeatBeHype7540' | 'erc7540' | 'binanceWbethQueue' | 'ethenaCooldown' | 'susd3Cooldown' | 'strataCooldown' | 'swellNft' | 'stakeWiseSubgraph' | 'mantleCallerSuppliedIds' | 'pufferCallerSuppliedIds' | 'trufinCallerSuppliedIds' | 'lairCallerSuppliedIds' | 'stceloAccountQueue' | 'kinetiqQueue' | 'beHypeQueue' | 'valantisBurnQueue' | 'listaQueue' | 'iberaQueue' | 'primeStakingQueue' | 'berapawRedeemQueue' | 'treehouseRedemptionQueue' | 'eventsOnly' | 'noQueue' | 'unverified';
9033
+ type LstWithdrawalReaderKind = 'bedrockUniEth' | 'lidoQueue' | 'etherfiNft' | 'yieldNestNft' | 'staderEthxQueue' | 'staderMaticXQueue' | 'renzoQueue' | 'kelpQueue' | 'benqiSavaxQueue' | 'beetsStSQueue' | 'hyperbeatBeHype7540' | 'erc7540' | 'binanceWbethQueue' | 'ethenaCooldown' | 'susd3Cooldown' | 'strataCooldown' | 'swellNft' | 'stakeWiseSubgraph' | 'mantleCallerSuppliedIds' | 'pufferCallerSuppliedIds' | 'trufinCallerSuppliedIds' | 'lairCallerSuppliedIds' | 'stceloAccountQueue' | 'kinetiqQueue' | 'beHypeQueue' | 'valantisBurnQueue' | 'listaQueue' | 'iberaQueue' | 'primeStakingQueue' | 'berapawRedeemQueue' | 'treehouseRedemptionQueue' | 'eventsOnly' | 'noQueue' | 'unverified';
9014
9034
  /** Map keyed by lowercased LST share-token address. The orchestrator
9015
9035
  * fetches all LSTs on a chain in parallel and returns this map
9016
9036
  * (possibly with empty arrays for LSTs the user has no requests
@@ -9193,6 +9213,20 @@ declare const STCELO_MANAGER_ADDRESS = "0x0239b96d10a434a56cc9e09383077a0490cf93
9193
9213
  */
9194
9214
  declare const resolveStCeloDepositGroup: (user: Address, requestedGroup?: string, maxRpcTries?: number) => Promise<Address | undefined>;
9195
9215
 
9216
+ /** Live pause state of one LST, for the action routes. */
9217
+ interface LstPauseState {
9218
+ depositsPaused?: boolean;
9219
+ withdrawalsPaused?: boolean;
9220
+ }
9221
+ /**
9222
+ * Read the pause flags of one LST through its own reader — the same calls the
9223
+ * listing makes, so the row and the builder answer the same question.
9224
+ *
9225
+ * Returns `undefined` when the row reads no pause switch or the read failed:
9226
+ * the caller then builds as before, never refuses on a missing answer.
9227
+ */
9228
+ declare function readLstPauseState(chainId: string, shareToken: string, multicallRetry: (args: any) => Promise<unknown[]>): Promise<LstPauseState | undefined>;
9229
+
9196
9230
  /**
9197
9231
  * Term sheets — a structured, per-`marketUid` description of every lend and
9198
9232
  * borrow offer we serve.
@@ -9315,7 +9349,15 @@ type TermTag = Open<
9315
9349
  * case (`debtCap == 0` ⇒ 0 % supply APR by construction), but any market
9316
9350
  * with no borrowers reads the same way.
9317
9351
  */
9318
- | 'no-market-interest' | 'oracle-flagged' | 'no-oracle'>;
9352
+ | 'no-market-interest' | 'oracle-flagged'
9353
+ /**
9354
+ * The collateral is a redeemable claim (yield dollar, LST/LRT, wrapped BTC)
9355
+ * priced off its secondary MARKET, not its redemption rate — risk-data's
9356
+ * `market-priced-redeemable` oracle flag. A wick or a manipulated thin market
9357
+ * liquidates borrowers although the backing never moved. Not raised on a
9358
+ * reserve nobody can borrow against (`market-price-borrow-only`).
9359
+ */
9360
+ | 'oracle-market-priced' | 'no-oracle'>;
9319
9361
  /** Human-facing copy for one side of a term sheet. */
9320
9362
  interface TermInfo {
9321
9363
  /**
@@ -10426,6 +10468,84 @@ interface SwapTermSheet {
10426
10468
  short: SwapSideTerms;
10427
10469
  ext?: Record<string, unknown>;
10428
10470
  }
10471
+ /**
10472
+ * One Boros market carrying part of a funding lock — one venue's funding on
10473
+ * one asset, a SHORT YU (pay floating, receive fixed) until `maturity`.
10474
+ */
10475
+ interface FundingHedgeLeg {
10476
+ /** Share of the notional on this leg — the profile's asset weight. */
10477
+ weight: number;
10478
+ marketId: number;
10479
+ venue: string;
10480
+ /** The asset whose funding is locked (`BTC`, `ETH`). */
10481
+ asset: string;
10482
+ /** unix seconds — the lock on this leg ends here. */
10483
+ maturity: number;
10484
+ /** The margin token (`USD₮0`, `WETH`). A WETH margin carries ETH price risk. */
10485
+ marginToken: string;
10486
+ /** Expected fill rate of a SHORT YU at the reference notional, PERCENT. Absent when the bid side is empty. */
10487
+ fixedApr?: AprPercent;
10488
+ /** The venue's floating funding now, PERCENT. */
10489
+ floatingApr?: AprPercent;
10490
+ /** Share of the leg the book fills now (0..1). */
10491
+ fillRatio: number;
10492
+ }
10493
+ /**
10494
+ * The fixed-rate lock available on a row whose floating yield IS perp funding
10495
+ * (sUSDe, stUSR, wstUSR): a SHORT YU on Pendle Boros, per unit of notional.
10496
+ *
10497
+ * Additive (no version bump). It does NOT describe the row's own terms — the
10498
+ * row's `supply` side still does — but the second position a holder can open,
10499
+ * on another chain with its own margin, to swap the funding part of the yield
10500
+ * for a fixed rate. Per unit of notional, never per account. BOROS_EARN_HEDGE.md.
10501
+ */
10502
+ interface FundingHedgeTerms {
10503
+ kind: Open<'boros-funding-lock'>;
10504
+ /** `FUNDING_EXPOSURE_PROFILES` id (`ethena`, `resolv`). */
10505
+ profile: string;
10506
+ /** The chain the hedge lives on (Arbitrum). */
10507
+ chainId: string;
10508
+ /** USD notional the per-unit figures were priced at. */
10509
+ referenceNotionalUsd: number;
10510
+ legs: FundingHedgeLeg[];
10511
+ /** Notional-weighted over the legs, PERCENT. Absent when a leg has no bid. */
10512
+ fixedApr?: AprPercent;
10513
+ floatingApr?: AprPercent;
10514
+ /** fixed − floating, PERCENT: what locking gains (+) or gives up (−) today. */
10515
+ lockSpreadApr?: AprPercent;
10516
+ /** Taker fee annualised over the term + the settlement fee, PERCENT of notional. */
10517
+ costApr: AprPercent;
10518
+ /** Margin to post per $1k of notional, USD: IM × buffer + taker fee. Linear in notional. */
10519
+ marginPer1kUsd: number;
10520
+ /** The buffer over initial margin `marginPer1kUsd` assumes. */
10521
+ marginBuffer: number;
10522
+ /** Cash a Boros account must hold before it can trade at all, USD. */
10523
+ minCashUsd: number;
10524
+ /** Approximate funding rise (percentage points) that takes the worst leg to liquidation at that margin. */
10525
+ adverseMoveApr?: AprPercent;
10526
+ /** The earliest leg maturity — the whole lock must be re-hedged by then. */
10527
+ lockedUntil: number;
10528
+ /** How the issuer's published yield tracked the locked funding (yield-tracer `/boros/basis`). */
10529
+ basis?: {
10530
+ days: number;
10531
+ /** Mean of (published yield − funding), PERCENT. */
10532
+ meanGapApr?: AprPercent;
10533
+ /** Standard deviation of that gap, PERCENT. */
10534
+ trackingErrorApr?: AprPercent;
10535
+ correlation?: number;
10536
+ beta?: number;
10537
+ trackingNote: string;
10538
+ };
10539
+ executable: boolean;
10540
+ /** Set iff `executable` is false. */
10541
+ blockedBy?: Open<'no-liquidity' | 'no-market'>;
10542
+ /** Where to build it — params are the ones the route needs besides `notionalUsd` / `account`. */
10543
+ action: {
10544
+ route: '/v1/actions/boros/hedge';
10545
+ params: Record<string, string>;
10546
+ };
10547
+ info: TermInfo;
10548
+ }
10429
10549
  /**
10430
10550
  * Distinguishes "not applicable" from "not implemented yet" — the affordance
10431
10551
  * that lets phases ship incrementally without lying. A missing `oracle` must
@@ -10467,6 +10587,8 @@ interface TermSheet {
10467
10587
  borrow?: BorrowTermSheet;
10468
10588
  /** A rate swap (Boros) — carried INSTEAD of supply/borrow. */
10469
10589
  swap?: SwapTermSheet;
10590
+ /** The Boros funding lock a holder can add (funding-yield rows only). */
10591
+ hedge?: FundingHedgeTerms;
10470
10592
  /** Shared — these describe the MARKET, not a side. */
10471
10593
  governance?: GovernanceTerms;
10472
10594
  oracle?: OracleTerms;
@@ -10540,6 +10662,17 @@ interface TermSheetDigest {
10540
10662
  fixedApr?: AprPercent;
10541
10663
  };
10542
10664
  };
10665
+ hedge?: {
10666
+ profile: string;
10667
+ fixedApr?: AprPercent;
10668
+ floatingApr?: AprPercent;
10669
+ lockSpreadApr?: AprPercent;
10670
+ costApr: AprPercent;
10671
+ /** The nearest leg maturity. */
10672
+ maturity: number;
10673
+ executable: boolean;
10674
+ headline: string;
10675
+ };
10543
10676
  oracle?: Pick<OracleTerms, 'kind' | 'address' | 'provider' | 'band'>;
10544
10677
  governance?: Pick<GovernanceTerms, 'mutability' | 'controllerKind' | 'timelockSecs' | 'tier'>;
10545
10678
  utilization?: number;
@@ -10581,6 +10714,13 @@ type DeepPartial<T> = {
10581
10714
  * one provider's withdrawal taxonomy creep affecting the other.
10582
10715
  */
10583
10716
  type SavingsWithdrawalMode = 'instant' | 'instant-capped' | 'fixed-cooldown' | 'queued' | 'request-based' | 'fee-or-queued'
10717
+ /**
10718
+ * A free instant exit AND a queue, neither paying a fee (the LST mode of
10719
+ * the same name). Origin's wrappers: the instant unwrap pays the OToken,
10720
+ * the queue pays WETH — which leg pays what is on each `exitRoutes` entry.
10721
+ * Liquidity comes from the reader's `instantRedeemCapacity`.
10722
+ */
10723
+ | 'instant-or-queued'
10584
10724
  /**
10585
10725
  * A fixed-maturity BOND: redeemable at par on a date, or earlier for a
10586
10726
  * price — Usual's bUSD0 (floor-price unlock, a par unlock paid in USUAL, or
@@ -10854,6 +10994,14 @@ interface SavingsVault extends VaultClassificationFields {
10854
10994
  * only per-share number there is.
10855
10995
  */
10856
10996
  redemptionDiscountBps?: number;
10997
+ /**
10998
+ * 1e18-scaled fundamental underlying-per-share — the second price behind
10999
+ * `redemptionDiscountBps`, published exactly so consumers need not
11000
+ * back-solve it from the rounded bps (yield-tracer stores it as
11001
+ * `fundamental_share_price`). Same population as `redemptionDiscountBps`:
11002
+ * Yield Basis `pricePerShare`, Wren NAV, sUSDai `depositSharePrice`.
11003
+ */
11004
+ fundamentalExchangeRate?: string;
10857
11005
  /**
10858
11006
  * Unix seconds at which the position MATURES and redeems at par. The term
10859
11007
  * sheet reads it as a `fixed-date` maturity (`termSheet.supply.maturity`),
@@ -14117,7 +14265,19 @@ interface EModeAssets {
14117
14265
  /** marketUids eligible for borrowing in this mode */
14118
14266
  borrow: string[];
14119
14267
  }
14120
- type EModeBlockReason = 'collateral_not_supported' | 'debt_not_supported' | 'health_factor';
14268
+ type EModeBlockReason = 'collateral_not_supported' | 'debt_not_supported' | 'health_factor' | 'borrow_capacity';
14269
+ /**
14270
+ * Which on-chain rule validates a mode switch.
14271
+ *
14272
+ * - `aave` — `validateSetUserEMode`: HF after the switch must stay above 1, and
14273
+ * (V3.6) every enabled collateral must keep a non-zero LTV.
14274
+ * - `borrow-capacity` — Venus `enterPool`: no collateral gate at all (a
14275
+ * collateral weighted 0 in the target simply counts 0), and the liquidity
14276
+ * check is CF-weighted, i.e. BORROW capacity must still cover the debt — a
14277
+ * stricter bar than LT health, so judging it on HF approves switches the
14278
+ * chain rejects with `LiquidityCheckFailed`.
14279
+ */
14280
+ type EModeSwitchRule = 'aave' | 'borrow-capacity';
14121
14281
  interface EModeResult {
14122
14282
  /** Protocol-agnostic mode identifier (replaces legacy `category`) */
14123
14283
  modeId: number;
@@ -14139,7 +14299,253 @@ interface EModeResult {
14139
14299
  * For each available e-mode, compute the hypothetical health factor,
14140
14300
  * list supported assets, and determine if the switch is valid.
14141
14301
  */
14142
- declare function computeEModeAnalysis(subAccount: UserDataForSubAccount, lenderMeta: LenderCrossPoolMeta, eModes: Record<number, ModeBase>): EModeResult[];
14302
+ declare function computeEModeAnalysis(subAccount: UserDataForSubAccount, lenderMeta: LenderCrossPoolMeta, eModes: Record<number, ModeBase>, rule?: EModeSwitchRule): EModeResult[];
14303
+
14304
+ /**
14305
+ * Venus Core Pool E-Mode ("pools"). See docs/lending/VENUS_EMODE_PLAN.md.
14306
+ *
14307
+ * A Diamond Comptroller that ships pools lets an account select ONE pool via
14308
+ * `enterPool(poolId)`; that pool overrides CF / LT / LI / borrowability of its
14309
+ * member markets. Only BNB Core has it (2026-10-26): every other Venus
14310
+ * comptroller — Core on 7 other chains, every isolated pool, the bStock Spoke —
14311
+ * reverts on `lastPoolId()`. Keyed by (chain, lender), never by `isVenusType`,
14312
+ * because `VENUS_BSTOCK` shares the family and the chain but not the facets.
14313
+ */
14314
+ interface VenusEModeSetup {
14315
+ comptroller: string;
14316
+ /** VenusLens build exposing `getAllPoolsData` (the older `VENUS_LENS` reverts). */
14317
+ poolLens: string;
14318
+ /** `comptroller.oracle()` — spot prices, the LT / liquidation path. */
14319
+ spotOracle: string;
14320
+ /** `comptroller.deviationBoundedOracle()` — the CF / borrow path's prices. */
14321
+ boundedOracle: string;
14322
+ /** `comptroller.vaiController()` — VAI debt sits outside every market. */
14323
+ vaiController: string;
14324
+ }
14325
+ declare const getVenusEModeSetup: (chainId: string, lender: string) => VenusEModeSetup | undefined;
14326
+ declare const VENUS_CORE_POOL_ID = 0;
14327
+ /** The E-Mode slice of the Diamond Comptroller + the pool-aware VenusLens. */
14328
+ declare const VenusEModeAbi: readonly [{
14329
+ readonly inputs: readonly [{
14330
+ readonly internalType: "address";
14331
+ readonly name: "vToken";
14332
+ readonly type: "address";
14333
+ }];
14334
+ readonly name: "markets";
14335
+ readonly outputs: readonly [{
14336
+ readonly internalType: "bool";
14337
+ readonly name: "isListed";
14338
+ readonly type: "bool";
14339
+ }, {
14340
+ readonly internalType: "uint256";
14341
+ readonly name: "collateralFactorMantissa";
14342
+ readonly type: "uint256";
14343
+ }, {
14344
+ readonly internalType: "bool";
14345
+ readonly name: "isVenus";
14346
+ readonly type: "bool";
14347
+ }, {
14348
+ readonly internalType: "uint256";
14349
+ readonly name: "liquidationThresholdMantissa";
14350
+ readonly type: "uint256";
14351
+ }, {
14352
+ readonly internalType: "uint256";
14353
+ readonly name: "liquidationIncentiveMantissa";
14354
+ readonly type: "uint256";
14355
+ }, {
14356
+ readonly internalType: "uint96";
14357
+ readonly name: "marketPoolId";
14358
+ readonly type: "uint96";
14359
+ }, {
14360
+ readonly internalType: "bool";
14361
+ readonly name: "isBorrowAllowed";
14362
+ readonly type: "bool";
14363
+ }];
14364
+ readonly stateMutability: "view";
14365
+ readonly type: "function";
14366
+ }, {
14367
+ readonly inputs: readonly [];
14368
+ readonly name: "lastPoolId";
14369
+ readonly outputs: readonly [{
14370
+ readonly internalType: "uint96";
14371
+ readonly name: "";
14372
+ readonly type: "uint96";
14373
+ }];
14374
+ readonly stateMutability: "view";
14375
+ readonly type: "function";
14376
+ }, {
14377
+ readonly inputs: readonly [{
14378
+ readonly internalType: "address";
14379
+ readonly name: "account";
14380
+ readonly type: "address";
14381
+ }];
14382
+ readonly name: "userPoolId";
14383
+ readonly outputs: readonly [{
14384
+ readonly internalType: "uint96";
14385
+ readonly name: "";
14386
+ readonly type: "uint96";
14387
+ }];
14388
+ readonly stateMutability: "view";
14389
+ readonly type: "function";
14390
+ }, {
14391
+ readonly inputs: readonly [{
14392
+ readonly internalType: "uint96";
14393
+ readonly name: "poolId";
14394
+ readonly type: "uint96";
14395
+ }];
14396
+ readonly name: "pools";
14397
+ readonly outputs: readonly [{
14398
+ readonly internalType: "string";
14399
+ readonly name: "label";
14400
+ readonly type: "string";
14401
+ }, {
14402
+ readonly internalType: "bool";
14403
+ readonly name: "isActive";
14404
+ readonly type: "bool";
14405
+ }, {
14406
+ readonly internalType: "bool";
14407
+ readonly name: "allowCorePoolFallback";
14408
+ readonly type: "bool";
14409
+ }];
14410
+ readonly stateMutability: "view";
14411
+ readonly type: "function";
14412
+ }, {
14413
+ readonly inputs: readonly [{
14414
+ readonly internalType: "address";
14415
+ readonly name: "account";
14416
+ readonly type: "address";
14417
+ }, {
14418
+ readonly internalType: "uint96";
14419
+ readonly name: "targetPoolId";
14420
+ readonly type: "uint96";
14421
+ }];
14422
+ readonly name: "hasValidPoolBorrows";
14423
+ readonly outputs: readonly [{
14424
+ readonly internalType: "bool";
14425
+ readonly name: "";
14426
+ readonly type: "bool";
14427
+ }];
14428
+ readonly stateMutability: "view";
14429
+ readonly type: "function";
14430
+ }, {
14431
+ readonly inputs: readonly [{
14432
+ readonly internalType: "address";
14433
+ readonly name: "vToken";
14434
+ readonly type: "address";
14435
+ }];
14436
+ readonly name: "getBoundedPricesView";
14437
+ readonly outputs: readonly [{
14438
+ readonly internalType: "uint256";
14439
+ readonly name: "collateralPrice";
14440
+ readonly type: "uint256";
14441
+ }, {
14442
+ readonly internalType: "uint256";
14443
+ readonly name: "debtPrice";
14444
+ readonly type: "uint256";
14445
+ }];
14446
+ readonly stateMutability: "view";
14447
+ readonly type: "function";
14448
+ }, {
14449
+ readonly inputs: readonly [{
14450
+ readonly internalType: "address";
14451
+ readonly name: "vToken";
14452
+ readonly type: "address";
14453
+ }];
14454
+ readonly name: "getUnderlyingPrice";
14455
+ readonly outputs: readonly [{
14456
+ readonly internalType: "uint256";
14457
+ readonly name: "";
14458
+ readonly type: "uint256";
14459
+ }];
14460
+ readonly stateMutability: "view";
14461
+ readonly type: "function";
14462
+ }, {
14463
+ readonly inputs: readonly [{
14464
+ readonly internalType: "address";
14465
+ readonly name: "borrower";
14466
+ readonly type: "address";
14467
+ }];
14468
+ readonly name: "getVAIRepayAmount";
14469
+ readonly outputs: readonly [{
14470
+ readonly internalType: "uint256";
14471
+ readonly name: "";
14472
+ readonly type: "uint256";
14473
+ }];
14474
+ readonly stateMutability: "view";
14475
+ readonly type: "function";
14476
+ }, {
14477
+ readonly inputs: readonly [{
14478
+ readonly internalType: "address";
14479
+ readonly name: "comptrollerAddress";
14480
+ readonly type: "address";
14481
+ }];
14482
+ readonly name: "getAllPoolsData";
14483
+ readonly outputs: readonly [{
14484
+ readonly components: readonly [{
14485
+ readonly internalType: "uint96";
14486
+ readonly name: "poolId";
14487
+ readonly type: "uint96";
14488
+ }, {
14489
+ readonly internalType: "string";
14490
+ readonly name: "label";
14491
+ readonly type: "string";
14492
+ }, {
14493
+ readonly internalType: "bool";
14494
+ readonly name: "isActive";
14495
+ readonly type: "bool";
14496
+ }, {
14497
+ readonly internalType: "bool";
14498
+ readonly name: "allowCorePoolFallback";
14499
+ readonly type: "bool";
14500
+ }, {
14501
+ readonly components: readonly [{
14502
+ readonly internalType: "uint96";
14503
+ readonly name: "poolId";
14504
+ readonly type: "uint96";
14505
+ }, {
14506
+ readonly internalType: "string";
14507
+ readonly name: "poolLabel";
14508
+ readonly type: "string";
14509
+ }, {
14510
+ readonly internalType: "address";
14511
+ readonly name: "vToken";
14512
+ readonly type: "address";
14513
+ }, {
14514
+ readonly internalType: "bool";
14515
+ readonly name: "isListed";
14516
+ readonly type: "bool";
14517
+ }, {
14518
+ readonly internalType: "uint256";
14519
+ readonly name: "collateralFactor";
14520
+ readonly type: "uint256";
14521
+ }, {
14522
+ readonly internalType: "bool";
14523
+ readonly name: "isVenus";
14524
+ readonly type: "bool";
14525
+ }, {
14526
+ readonly internalType: "uint256";
14527
+ readonly name: "liquidationThreshold";
14528
+ readonly type: "uint256";
14529
+ }, {
14530
+ readonly internalType: "uint256";
14531
+ readonly name: "liquidationIncentive";
14532
+ readonly type: "uint256";
14533
+ }, {
14534
+ readonly internalType: "bool";
14535
+ readonly name: "isBorrowAllowed";
14536
+ readonly type: "bool";
14537
+ }];
14538
+ readonly internalType: "struct VenusLens.MarketData[]";
14539
+ readonly name: "markets";
14540
+ readonly type: "tuple[]";
14541
+ }];
14542
+ readonly internalType: "struct VenusLens.PoolWithMarkets[]";
14543
+ readonly name: "";
14544
+ readonly type: "tuple[]";
14545
+ }];
14546
+ readonly stateMutability: "view";
14547
+ readonly type: "function";
14548
+ }];
14143
14549
 
14144
14550
  /**
14145
14551
  * Sumer absorption waterfall: computes total effective collateral in USD.
@@ -16070,6 +16476,25 @@ declare function vaultTraits(provider: string): VaultProviderTraits | undefined;
16070
16476
  */
16071
16477
  declare function stampVaultTermSheets(data: VaultPublicDataAll, chainId: string | number): void;
16072
16478
 
16479
+ /**
16480
+ * The curated facts a Solana savings row's term sheet needs and the origin
16481
+ * does not store (`vault_savings_meta` has no `description` / `solvency`
16482
+ * column) — the Solana half of what `getSavingsRegistry` gives an EVM row.
16483
+ * Keyed by SHARE MINT, verbatim base58.
16484
+ *
16485
+ * Each `description` is a COPY of the row's own explainer in
16486
+ * margin-fetcher-sol (this package cannot import it at runtime the other way
16487
+ * round); `margin-fetcher-sol/test/onre.test.ts` fails if they drift.
16488
+ */
16489
+ interface SvmSavingsCuration {
16490
+ description?: string;
16491
+ solvency?: CounterpartyTerms['solvency'];
16492
+ }
16493
+ declare const SVM_SAVINGS_CURATION: {
16494
+ readonly [mint: string]: SvmSavingsCuration;
16495
+ };
16496
+ declare const svmSavingsCuration: (mint: string) => SvmSavingsCuration | undefined;
16497
+
16073
16498
  /**
16074
16499
  * Stamping — the single place term sheets are attached.
16075
16500
  *
@@ -17308,6 +17733,14 @@ interface SvmEarnBuilder {
17308
17733
  * `providerMeta.yieldAsset` where the row carries it.
17309
17734
  */
17310
17735
  unitQuoteInput?: boolean;
17736
+ /**
17737
+ * Withdraw — the instant leg is advertised only on a row whose exit
17738
+ * routes carry one (`exit.routes[].id === 'instant'`): an SPL stake pool
17739
+ * whose reserve is near empty (bbSOL, hSOL) publishes no instant route,
17740
+ * and the button would only meet the builder's "reserve cannot cover it".
17741
+ * A row without route data keeps the verb.
17742
+ */
17743
+ withdrawNeedsInstantRoute?: boolean;
17311
17744
  }
17312
17745
  type SvmEarnBuildability = {
17313
17746
  ok: true;
@@ -17529,7 +17962,8 @@ interface EarnLendingPosition extends EarnPositionBase {
17529
17962
  lender: string;
17530
17963
  account: string;
17531
17964
  /**
17532
- * Health factor of the account. Only meaningful when the lender is
17965
+ * LIQUIDATION health of the account (Σ collateral × LT / Σ debt × borrow
17966
+ * factor — the venue's own figure, liquidatable below 1). Only meaningful when the lender is
17533
17967
  * cross-margin (`subAccounts.length <= 1`); otherwise `null`, with each
17534
17968
  * sub-account carrying its own. `null` also means "no debt, so no health".
17535
17969
  */
@@ -18051,6 +18485,12 @@ interface FundingExposureProfile {
18051
18485
  venues: string[];
18052
18486
  /** Share of the yield that is funding (the rest is staking / T-bills / …). */
18053
18487
  fundingShare: string;
18488
+ /**
18489
+ * The symbols that EARN the funding (upper-case). The base dollar (USDe,
18490
+ * USR) is on the profile's symbol table for loops, but holding or lending it
18491
+ * earns no funding — an earn row on it gets no hedge block.
18492
+ */
18493
+ yieldBearing: string[];
18054
18494
  notes: string[];
18055
18495
  }
18056
18496
  declare const FUNDING_EXPOSURE_PROFILES: Record<string, FundingExposureProfile>;
@@ -18060,6 +18500,8 @@ declare const FUNDING_EXPOSURE_PROFILES: Record<string, FundingExposureProfile>;
18060
18500
  * anything — it would leave the holder paying floating funding unopposed.
18061
18501
  */
18062
18502
  declare const isPrincipalTokenSymbol: (symbol: string | undefined) => boolean;
18503
+ /** Upper-cased, with any maturity suffix stripped — the key of the profile tables. */
18504
+ declare const fundingSymbolBase: (symbol: string) => string;
18063
18505
  /**
18064
18506
  * The funding a collateral token earns, or `undefined` when it earns none we
18065
18507
  * can lock — including every principal token (`isPrincipalTokenSymbol`): a
@@ -18140,4 +18582,60 @@ declare function quoteBorosHedgeLeg(p: {
18140
18582
  existingFreeMargin?: number;
18141
18583
  }): BorosHedgeLegQuote;
18142
18584
 
18143
- export { ALCHEMIX_BLOCK_SECONDS, type AaveMetadata, type AaveV2Public, type AaveV2UserReserveResponse, type AaveV3Public, type AaveV3UserReserveResponse, type AdditionalYields, type AdminKind, type AlchemixMarketRaw, type AlchemixMarketsRaw, type AlchemixTransmuterRaw, ApiBookSource, type AprData, type AprPercent, type AssetInstrumentTerms, type AssetIssuerAttribution, type AssetQuality, type AssetRiskIndex, type AuctionWindow, type AvailabilityTerms, BOROS_API_BASE, BOROS_GOVERNANCE, BOROS_MIN_CASH_USD, BOROS_PROFILE_ID, type BalanceData, type BaseLendingPosition, type BasicReserveResponse, type BorosAccountState, BorosApiError, type BorosBookLevel, type BorosChartInterval, type BorosCollateral, type BorosCrossAccount, type BorosFill, type BorosHedgeLegQuote, type BorosMarket, type BorosOrderBook, type BorosPosition, type BorosRateCandle, type BorosSideTerms, type BorrowExitTerms, type BorrowTermSheet, type BuildTermSheetOptions, type BuildVaultTermSheetOptions, type ChainDiagnostic, type ChainLinkResponse, type ChainQuery, type ChainSummary, type CompoundV2Metadata, type CompoundV3Public, type CompoundV3UserReserveResponse, type ConfigEntry, type ConsensusDemotionConfig, type ConvertLenderUserDataOptions, type CoolerDripRaw, type CoolerMarketsRaw, type CoolerPositionInfo, type CoreValidators, type CounterpartyTerms, type CoverageInfo, type CreditDesk, DEFAULT_CONSENSUS_DEMOTION, DEFAULT_MIDNIGHT_API, DEFAULT_OUTLIER_GUARD, DEFAULT_PROFILE_ID, DEFAULT_STALE_REJECT_SECONDS, DEFAULT_TERMMAX_API, DEFAULT_TERM_ORDER_STORE, DOLOMITE_ISO_ID_PREFIX, type DeepPartial, type Denomination, type DepthMap, type DolomiteIsolationRow, type DolomiteSubAccount, type DssMarketRaw, type DssMarketsRaw, type DssPositionInfo, EARN_DESCRIPTIONS, EARN_LABELS, EARN_RATE_SOURCE_BY_PROVIDER, EMPTY_BALANCE, type EModeAssets, type EModeData, type EModeResult, EXACTLY_LENDER_KEY, EXPONENT_MATURED_REASON, type EarnActionInput, type EarnActionKind, type EarnAmount, type EarnAppliedDefaults, type EarnAprBreakdown, type EarnAsset, type EarnAvailability, type EarnBasket, type EarnBasketLeg, type EarnCapability, type EarnCollateralLeg, type EarnCurator, type EarnExclusions, type EarnExit, type EarnExitHistory, type EarnExitHistoryDay, type EarnFacetBucket, type EarnFacets, type EarnGating, type EarnLabelDimension, type EarnLendingPosition, type EarnMarket, type EarnMarketLabelInput, type EarnPosition, type EarnPositionAsset, type EarnPositionBase, type EarnPositionLeg, type EarnPositionSourceStatus, type EarnPositionSubAccount, type EarnPositionTotals, type EarnPositionUid, type EarnPositionsResponse, type EarnProtocol, type EarnProtocolAndCurator, type EarnRate, type EarnRateSource, type EarnRefs, type EarnResponse, type EarnRisk, type EarnSanityResult, type EarnShareToken, type EarnSourceStatus, type EarnVaultNormalizeOptions, type EarnVaultPosition, type EarnVenueKind, type EarnVocabulary, type EmitterRole, type EmitterRow, type EmitterSide, 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, FIXED_YIELD_EARN_VENUE_PREFIXES, FLYING_TULIP_LENDER_KEY, FRACTION_RATE_PROVIDERS, FUNDING_EXPOSURE_PROFILES, type FeeTerm, type FeeWhen, type FeedObservation, type FeedStat, type FeedStatsMap, type FeedTimestampMap, type FetchListaVaultsFromChainOptions, type FetchMorphoVaultsFromChainOptions, type FetchOraclePricesOptions, type FetchPendlePtOptions, type FetchSpectraPtOptions, type FetchTokenBalancesOptions, type FetchTokenMetadataOptions, type FlattenPriorityConfig, type FlexMarketRaw, type FlexMarketsRaw, type FluidDexShareState, type FluidDexStateMap, type FluidFToken, type FluidFTokens, type FlyingTulipAssetRaw, type FlyingTulipMarketsRaw, type FrankencoinMarketRaw, type FrankencoinMarketsRaw, type FrankencoinPositionInfo, type FraxlendPairRaw, type FraxlendPairsRaw, type FullLenderRewardsMap, type FundingExposureProfile, 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 HedgeMarketFilter, 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, type IssuerExposure, type IssuerRef, 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 LenderUserParams, 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 ListaRewardProgram, 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 MerklOpportunityResolver, type MetaFilter, type MidnightBook, type MidnightBookLevel, type MidnightBookSource, type MidnightChainBooks, type ModeBase, type ModeVariant, type MorphoMarketOverrides, type MorphoSubgraphProxyConfig, type MorphoUserMarketBalance, type MorphoUserReserveResponse, type MorphoVault, type MorphoVaults, type MulticallEndpointOptions, type MulticallRpcBatch, NON_EVM_VAULT_PROVIDERS, type NumberMap, type Open, type OracleBand, type OracleDiagnostics, type OraclePriceEntry, type OraclePricesResult, type OracleRiskRow, type OracleTerms, type OrderBookLendFacts, type OutlierGuardConfig, PASSTHROUGH_RATE_EPSILON, PENDLE_ASSETS_URL, PENDLE_CHAIN_IDS, PENDLE_MARKETS_URL, PREFIX_LENDERS, type PairRowDesks, 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, RATE_QUEUE_MAX_LEVELS, RATE_QUEUE_STEP, RIPE_LENDER_KEY, type RateKind, type RateMenuEntry, type RatePick, type RatePickId, type RateQueue, type RateQueueEntry, type RateTerms, type RawRpcBatch, type RawRpcCall, type RawRpcResponse, type ReadFailurePolicy, type ReadUserPositionsParams, type ReadUserPositionsResult, type RedemptionDriver, type RedemptionPressure, type RedemptionTerms, type ResupplyMarketsRaw, type ResupplyPairIdentity, type ResupplyPairRaw, type ResupplyPositionInfo, type ResupplyWrappedMarket, type RewardSourceRef, type RewardStream, type RewardTerm, type RewardTokenRef, type RewardsDataByMarketUid, type RipeAccountInfo, type RipeAssetRaw, type RipeMarketsRaw, type RiverMarketRaw, type RiverMarketsRaw, type RiverPositionInfo, SDK_FRACTION_RATE_PROVIDERS, SPECTRA_NETWORKS, SPECTRA_RATE_MAX_PERCENT, SPECTRA_RATE_MIN_PERCENT, STABLECOIN_SYMBOLS, STCELO_MANAGER_ADDRESS, SVM_EARN_MINT_BUILDERS, SVM_EARN_VAULT_BUILDERS, SVM_VAULT_PROVIDERS, type SelectPricesOptions, type Severity, type SeverityFinding, type SiloVault, type SiloVaults, type SpectraApiMarket, type SpectraApiPool, type SpectraApiToken, type SpectraPtMarket, type SpectraPtMarkets, type StCeloValidatorGroup, type StaleFeedEntry, type StampOptions, type StructuredOraclePrices, type SubAccountSelection, type SubAccountSummary, type SumerPositionInput, type SummaryAprData, type SummaryBalanceData, type SupplyExitMode, type SupplyExitRoute, type SupplyExitTerms, type SupplyTermSheet, type SvmEarnBuildability, type SvmEarnBuilder, type SvmVaultProvider, type SwapSideTerms, type SwapTermSheet, TELLER_CALLS_PER_BID, DECIMAL_BASE as TERMMAX_DECIMAL_BASE, TERMMAX_LIQUIDATION_PENALTY, TERMMAX_LIQUIDATION_WINDOW_SECS, TERMMAX_LIQUIDATOR_BONUS, TERMMAX_MARKETS_PER_CALL, 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 TermFillNow, type TermFillNowSide, 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 TermSheetVaultProvider, type TermSheetViolation, type TermStoreOrder, 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, USER_REWARD_SOURCES, USER_SET_RATE_PICKS, type UpshiftApiAsset, type UpshiftApiVault, type UpshiftVault, type UpshiftVaults, type UsddMarketRaw, type UsddMarketsRaw, type DssPositionInfo as UsddPositionInfo, type UserApr, type UserCallOptions, type UserConfig, type UserData, type UserDataResult, type UserDataTransport, type UserLendingPosition, type UserRewardAuthRequired, type UserRewardBreakdown, type UserRewardClaim, type UserRewardEntry, type UserRewardMarketRef, type UserRewardSource, type UserRewardSourceError, type UserRewardsResult, type UsualRewardsClaimData, type UtilizationTerms, VAULT_PROVIDERS, VAULT_PROVIDER_PROFILE, VAULT_PROVIDER_TRAITS, VAULT_SHARE_PRICE_PROBE, VAULT_VENUE_PREFIX, VOLATILE_VAULT_OVERRIDES, type ValidationResult, type VaultAprResult, type VaultBalanceInput, type VaultClassification, type VaultClassificationFields, type VaultLookupEntry, type VaultMarketExposure, type VaultProvider, type VaultProviderTraits, type VaultPublicDataAll, type VaultPublicDataResult, type VaultSourceRow, type VaultTermInput, type VaultYieldSeries, type VaultYieldSnapshot, type YDaemonVault, YEARN_CHAIN_IDS, YEARN_YDAEMON_BASE, type YearnVault, type YearnVaultKind, type YearnVaults, type YieldDataByMarketUid, type YieldProfile, __resetResupplyUserCaches, accountDepositListKey, accountWithdrawalListKey, alchemixLenderKey, alchemixMytRate, alchemixRedemptionPace, appendSnapshot, applyEarnSanity, applyPositionDelta, attachImplications, attachPricesToFlashLiquidity, blockNumberFromTag, borosApi, borosInitialMargin, borosMaintenanceMargin, borosRateMoveToLiquidation, borosSideTerms, borosTakerFee, borrowDescription, borrowFindings, borrowHeadline, buildBorosTermSheet, buildExposures, buildFluidFTokensCall, buildLendingPositionUid, buildLiquityUserCall, buildLoopResult, buildMorphoTypeCall, buildMorphoTypeUserCallWithLens, buildPortfolioTotals, buildQueriesFromMeta, buildRateQueue, buildSumerAccumulators, buildSummaries, buildTellerUserCall, buildTermMaxUserCall, buildTermSheet, buildTermSheetsForGroup, buildVaultEarnUid, buildVaultLookup, buildVaultTermSheet, calculateLeverage, calculateNetApr, calculateOverallNetApr, calculateWeightedAverage, classifyFreshness, classifyReliability, classifyVault, clearPendleMarketsCache, clearSpectraMarketsCache, collateralSymbolsByVenue, collectFeedObservations, computeBorrowDelta, computeCloseTradeDeltas, computeCollateralSwapDeltas, computeDebtSwapDeltas, computeDepositDelta, computeEModeAnalysis, computeOpenTradeDeltas, computePostTradeMetrics, computeRepayDelta, computeSumerBorrowDelta, computeSumerDepositDelta, computeSumerRepayDelta, computeSumerWaterfall, computeSumerWithdrawDelta, computeVaultApr, computeWithdrawDelta, computeZapTradeDeltas, consensusReference, convertAlchemixMarketsToResponse, convertBorosCandle, convertBorosMarket, convertCoolerMarketsToResponse, convertDssMarketsToResponse, convertExactlyMarketsToResponse, convertFlexMarketsToResponse, convertFlyingTulipMarketsToResponse, convertFrankencoinMarketsToResponse, convertFraxlendPairsToResponse, convertInverseMarketsToResponse, convertLenderUserDataResult, convertLiquityMarketsToResponse, convertLlamaLendMarketsToResponse, convertResupplyMarketsToResponse, convertRipeMarketsToResponse, convertRiverMarketsToResponse, convertTellerMarketsToResponse, convertTermMarketsToResponse, convertTermMaxMarketsToResponse, convertUsddMarketsToResponse, createMarketUid, createMidnightBookSource, createMultiAccountTypeUserState, createMulticallRpcCall, createRawRpcCalls, createTermBookSource, createTermMaxDataSource, debtAheadOf, decodeListaMarkets, decodeMarkets, decodePackedListaUserDataset, decodePackedMorphoUserDataset, deriveBorrowTags, deriveSupplyTags, deriveSwapTags, detectInterfaceKinds, dexResolverFor, disambiguateEarnNames, disambiguateOrderBookNames, discoverFlexTroves, dolomiteVaultAddress, dssIlkBytes32, dssKeyParts, dssLenderKey, duration, earnDescription, earnLabel, earnMarketFromPool, earnMarketFromVault, earnMarketLabel, earnPositionFromLenderEntry, earnPositionFromVaultBalance, earnPositionTotals, earnRateAtMaturity, earnRowSubtitle, earnUidFromMarketUid, earnVaultTerms, earnVenueKind, emitterCoverage, encodeBalanceFetcherCalldata, enrichTermSheet, enrichmentIndexFromRows, enumerateEmitters, exactlyPairLtv, exactlyPenaltyRateToAprPercent, exactlyWadRateToPercent, feePhrase, feedKeyOf, feedStatKey, fetchAaveIncentivesUserRewards, fetchAlchemixMarkets, fetchBorosAccount, fetchBorosCollaterals, fetchBorosMarket, fetchBorosMarketById, fetchBorosMarkets, fetchBorosOrderBook, fetchBorosRateHistory, fetchCoolerMarkets, fetchDolomiteAccountNumbers, fetchDolomiteSubAccounts, fetchDssMarkets, fetchEulerEarnVaults, fetchEulerEarnVaultsFromSubgraph, fetchEulerSubAccountIndexes, fetchExactlyMarkets, fetchFlashLiquidityForChain, fetchFlexMarkets, fetchFluidDexState, fetchFluidFTokens, fetchFlyingTulipMarkets, fetchFlyingTulipUserRewards, fetchFrankencoinMarkets, fetchFraxlendPairs, fetchGeneralYields, fetchGeneralYieldsByMarketUid, fetchGmxExecutionFees, fetchGmxTickerPrices, fetchGmxVaults, fetchHypercoreVaults, fetchInverseMarkets, fetchLagoonApiVaults, fetchLagoonVaults, fetchLenderRewards, fetchLenderRewardsByMarketUid, fetchLiquityMarkets, fetchListaMarketEmissions, fetchListaUserRewards, fetchListaVaultEmissions, fetchListaVaultsFromChain, fetchLlamaLendMarkets, fetchMerklUserRewards, fetchMorphoUserBalances, fetchMorphoUserPositionMarkets, fetchMorphoVaults, fetchMorphoVaultsFromApi, fetchMorphoVaultsFromChain, fetchOraclePrices, fetchPendleApiAssets, fetchPendleApiMarkets, fetchPendlePrices, fetchPendlePtMarkets, fetchResupplyMarkets, fetchRipeMarkets, fetchRiverMarkets, fetchSiloVaults, fetchSpectraApiMarkets, fetchSpectraPtMarkets, fetchTellerMarkets, fetchTermMarkets, fetchTermMaxMarkets, fetchTermStoreOrders, fetchTokenBalances, fetchTokenMetadata, fetchUpshiftApiVaults, fetchUpshiftVaults, fetchUsddMarkets, fetchUserRewards, fetchUsualRewardsClaimData, fetchYearnApiVaults, fetchYearnVaults, fillableRemaining, filterActiveLenders, filterLenderMeta, filterLendersByProtocol, finalizeInfo, findingsFor, flexAverageRate, flexLenderApr, flexLenderKey, flexMarketIndex, formatRaw, frankencoinKeyParts, frankencoinLenderKey, fraxlendAssetPerCollateral, fraxlendKeyParts, fraxlendLenderKey, fundingExposureOf, fuseLenderData, generateLendingPools, getAavesForChain, getAssetConfig, getBalanceForMarketUid, getBorrowCapacity, getCachedFluidDexState, 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, getMidnightChainBooks, getMorphoTypeMarketConverter, getReadFailurePolicy, getResolvedDolomiteAccountNumbers, getResolvedDolomiteSubAccounts, getStCeloValidatorGroups, getSubAccountAddress, getSubAccountIndex, getTermProfile, getVaultPublicDataAll, getVaultWithdrawalRequests, hasCritical, hasEulerEarnVaultSubgraph, hasLagoonVaults, hasMorphoPositionIndex, hasMorphoUserApi, hasMorphoUserSubgraph, hasPendleMarkets, hasSpectraMarkets, hasUpshiftVaults, hasYearnVaults, ilkToKeySegment, implausibleRatePercent, injectLenderInfoIntoEntries, inverseKeyParts, inverseLenderKey, isBoundNeed, isFailedCall, isFixedYieldEarnRow, isIlliquid, isLenderVenueKey, isLendingPosition, isLiveMarket as isLivePendleMarket, isLiveSpectraMarket, isMaturedTerm, isOrderBookCollateralLeg, isOrderBookLendRow, isPrincipalTokenSymbol, isRollingBookLendRow, isSecondaryMarketOnly, isStablecoinSymbol, isSyntheticQuoteUnit, isUnearnableEarnRate, isUnrealizableEarnRate, isVaultPosition, isVaultVenue, isYearnV3, keySegmentToIlk, keysFromMaps, lenderApiOnly, lenderFamily, lenderLiquidityPressure, liquityCandidateTroveIds, liquityKeyParts, liquityLenderKey, listaEmissionRewardFetcher, listaLoginMessage, llamaLendKeyParts, llamaLendLenderKey, marketKeysOf, meetsLiquidityFloor, mergeDeep, multicall3Abi, nanTo, needsLenderApproval, needsTokenApproval, noOpResult, normalizeToBytes, organizeUserQueries, parseBalanceFetcherResult, parseDolomiteSubAccountId, parseEarnUid, parseLenderKey, parseMergedResult, parseMulticallRpcResponses, parseExpirySeconds as parsePendleExpirySeconds, parseRawRpcBatchResponses, parseRawRpcResponses, parseCurveFee as parseSpectraCurveFee, parsePtRate as parseSpectraPtRate, parseTermMaxLtv, parseTokenBalanceResult, pct, pegPressure, assetKey as pendleAssetKey, pickPool as pickSpectraPool, positivePart, predictInverseEscrow, prepareLenderUserDataRpcCalls, prepareMergedMulticallParams, prepareMergedRpcCalls, prepareMulticallInputs, prepareTokenBalanceRpcCalls, priceGlvVaults, priceGmMarkets, probeAaveFeedTimestamps, protocolConsensus, protocolOf, pruneFeedStats, quoteBorosHedgeLeg, rankBorosHedgeMarkets, rankFindings, ratePercent, readUserPositions, readVaultSharePrices, rejectOutliers as rejectPriceOutliers, repairImpossibleTvl, resolveAdapter, resolveDerivation, resolveDolomiteRowIdentity, resolveEarnIdentity, resolveMerklOpportunityMarkets, resolveModeConfig, resolveStCeloDepositGroup, resolveVaultProfileId, resupplyKeyParts, resupplyLenderKey, resupplyMarketLabel, riverKeyParts, riverLenderKey, sanePercent as saneSpectraPercent, savingsAddresses, savingsBalanceKind, secondaryMarketVault, selectAssetGroupPrices, selectUsualRewardEntry, setMysticApiKey, shortDate, spectraAddress, spectraNetwork, spectraPoolsUrl, splitChainScopedAddress as splitPendleChainScopedAddress, stampCapabilities, stampEarnSubtitles, stampOrderBookLendRow, stampRollingBookLendRow, stampVaultClassification, stampVaultTermSheets, stripLeadingBrand, subAccountsOf, supplyDescription, supplyFindings, supplyHeadline, svmEarnBuildability, svmEarnBuilderKey, swapRoutedProvidersArePriceConsistent, swapSideDescription, swapSideHeadline, swapSideImplications, tellerBpsToPercent, tellerImpliedLtv, tellerLenderKey, tellerPoolFromLenderKey, termApiBaseUrl, 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, termOfferRateToAprPct, termOrderStoreBaseUrl, tickToAprNumber, tickToPrice, toDigest, toDolomiteSubAccountId, toTermFillNow, toTermSheetInput, toVaultTermInput, trancheFromCounterparty, tryParseEarnUid, unflattenLenderData, updateFeedStats, usdValue, usddIlkBytes32, usddKeyParts, usddLenderKey, validateTermSheet, validateTermSheets, validateUserData, vaultSharesToAssets, vaultTermInputFromEarnMarket, vaultTermInputFromSourceRow, vaultTraits, vaultVenue, venueBrand, venueBrandKey, walkBorosBook, withMaturityLabel, withTrancheLabel };
18585
+ /**
18586
+ * The Boros funding lock as a term-sheet block on an earn row whose floating
18587
+ * yield IS perp funding (BOROS_EARN_HEDGE.md). Pure: the caller fetches the
18588
+ * markets, books and basis; this only shapes and templates them.
18589
+ */
18590
+ /** Notional the per-unit figures are priced at — the per-$1k margin is linear above `BOROS_MIN_CASH_USD`. */
18591
+ declare const FUNDING_HEDGE_REFERENCE_USD = 10000;
18592
+ /** yield-tracer `/boros/basis` `stats` — rates in percent. */
18593
+ interface BorosBasisStats {
18594
+ days: number;
18595
+ meanIntrinsicApr?: number | null;
18596
+ meanFunding7dApr?: number | null;
18597
+ meanGap?: number | null;
18598
+ trackingError?: number | null;
18599
+ correlation?: number | null;
18600
+ beta?: number | null;
18601
+ }
18602
+ /** The slice of an earn row the profile lookup reads. */
18603
+ interface FundingHedgeRowRef {
18604
+ venueKind?: string;
18605
+ asset?: {
18606
+ symbol?: string;
18607
+ };
18608
+ shareToken?: {
18609
+ symbol?: string;
18610
+ };
18611
+ name?: string;
18612
+ maturity?: unknown;
18613
+ }
18614
+ /**
18615
+ * The funding profile an earn row's yield carries, or `undefined`.
18616
+ *
18617
+ * Only the symbols that EARN the funding qualify (`yieldBearing`): an Aave
18618
+ * USDe reserve earns Aave interest, not funding, so it gets no block. A vault
18619
+ * is read through its share first — the Ethena savings row deposits USDe and
18620
+ * mints sUSDe. Anything fixed-rate (a principal token anywhere on the row, or
18621
+ * a row with a maturity) is out: its yield is already locked.
18622
+ */
18623
+ declare function earnRowFundingProfile(row: FundingHedgeRowRef): FundingExposureProfile | undefined;
18624
+ interface FundingHedgeInput {
18625
+ profile: FundingExposureProfile;
18626
+ referenceNotionalUsd?: number;
18627
+ /** One entry per profile asset; `quote: null` when no Boros market carries it. */
18628
+ legs: Array<{
18629
+ asset: string;
18630
+ weight: number;
18631
+ quote: BorosHedgeLegQuote | null;
18632
+ }>;
18633
+ marginBuffer: number;
18634
+ basis?: BorosBasisStats;
18635
+ /** unix seconds */
18636
+ asOf?: number;
18637
+ }
18638
+ /** `undefined` when no profile asset has a market at all — nothing to state. */
18639
+ declare function buildFundingHedgeTerms(i: FundingHedgeInput): FundingHedgeTerms | undefined;
18640
+
18641
+ export { ALCHEMIX_BLOCK_SECONDS, type AaveMetadata, type AaveV2Public, type AaveV2UserReserveResponse, type AaveV3Public, type AaveV3UserReserveResponse, type AdditionalYields, type AdminKind, type AlchemixMarketRaw, type AlchemixMarketsRaw, type AlchemixTransmuterRaw, ApiBookSource, type AprData, type AprPercent, type AssetInstrumentTerms, type AssetIssuerAttribution, type AssetQuality, type AssetRiskIndex, type AuctionWindow, type AvailabilityTerms, BOROS_API_BASE, BOROS_GOVERNANCE, BOROS_MIN_CASH_USD, BOROS_PROFILE_ID, type BalanceData, type BaseLendingPosition, type BasicReserveResponse, type BorosAccountState, BorosApiError, type BorosBasisStats, type BorosBookLevel, type BorosChartInterval, type BorosCollateral, type BorosCrossAccount, type BorosFill, type BorosHedgeLegQuote, type BorosMarket, type BorosOrderBook, type BorosPosition, type BorosRateCandle, type BorosSideTerms, type BorrowExitTerms, type BorrowTermSheet, type BuildTermSheetOptions, type BuildVaultTermSheetOptions, type ChainDiagnostic, type ChainLinkResponse, type ChainQuery, type ChainSummary, type CompoundV2Metadata, type CompoundV3Public, type CompoundV3UserReserveResponse, type ConfigEntry, type ConsensusDemotionConfig, type ConvertLenderUserDataOptions, type CoolerDripRaw, type CoolerMarketsRaw, type CoolerPositionInfo, type CoreValidators, type CounterpartyTerms, type CoverageInfo, type CreditDesk, DEFAULT_CONSENSUS_DEMOTION, DEFAULT_MIDNIGHT_API, DEFAULT_OUTLIER_GUARD, DEFAULT_PROFILE_ID, DEFAULT_STALE_REJECT_SECONDS, DEFAULT_TERMMAX_API, DEFAULT_TERM_ORDER_STORE, DOLOMITE_ISO_ID_PREFIX, type DeepPartial, type Denomination, type DepthMap, type DolomiteIsolationRow, type DolomiteSubAccount, type DssMarketRaw, type DssMarketsRaw, type DssPositionInfo, EARN_DESCRIPTIONS, EARN_LABELS, EARN_RATE_SOURCE_BY_PROVIDER, EMPTY_BALANCE, type EModeAssets, type EModeData, type EModeResult, type EModeSwitchRule, EXACTLY_LENDER_KEY, EXPONENT_MATURED_REASON, type EarnActionInput, type EarnActionKind, type EarnAmount, type EarnAppliedDefaults, type EarnAprBreakdown, type EarnAsset, type EarnAvailability, type EarnBasket, type EarnBasketLeg, type EarnCapability, type EarnCollateralLeg, type EarnCurator, type EarnExclusions, type EarnExit, type EarnExitHistory, type EarnExitHistoryDay, type EarnFacetBucket, type EarnFacets, type EarnGating, type EarnLabelDimension, type EarnLendingPosition, type EarnMarket, type EarnMarketLabelInput, type EarnPosition, type EarnPositionAsset, type EarnPositionBase, type EarnPositionLeg, type EarnPositionSourceStatus, type EarnPositionSubAccount, type EarnPositionTotals, type EarnPositionUid, type EarnPositionsResponse, type EarnProtocol, type EarnProtocolAndCurator, type EarnRate, type EarnRateSource, type EarnRefs, type EarnResponse, type EarnRisk, type EarnSanityResult, type EarnShareToken, type EarnSourceStatus, type EarnVaultNormalizeOptions, type EarnVaultPosition, type EarnVenueKind, type EarnVocabulary, type EmitterRole, type EmitterRow, type EmitterSide, 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, FIXED_YIELD_EARN_VENUE_PREFIXES, FLYING_TULIP_LENDER_KEY, FRACTION_RATE_PROVIDERS, FUNDING_EXPOSURE_PROFILES, FUNDING_HEDGE_REFERENCE_USD, type FeeTerm, type FeeWhen, type FeedObservation, type FeedStat, type FeedStatsMap, type FeedTimestampMap, type FetchListaVaultsFromChainOptions, type FetchMorphoVaultsFromChainOptions, type FetchOraclePricesOptions, type FetchPendlePtOptions, type FetchSpectraPtOptions, type FetchTokenBalancesOptions, type FetchTokenMetadataOptions, type FlattenPriorityConfig, type FlexMarketRaw, type FlexMarketsRaw, type FluidDexShareState, type FluidDexStateMap, type FluidFToken, type FluidFTokens, type FlyingTulipAssetRaw, type FlyingTulipMarketsRaw, type FrankencoinMarketRaw, type FrankencoinMarketsRaw, type FrankencoinPositionInfo, type FraxlendPairRaw, type FraxlendPairsRaw, type FullLenderRewardsMap, type FundingExposureProfile, type FundingHedgeInput, type FundingHedgeLeg, type FundingHedgeRowRef, type FundingHedgeTerms, 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 HedgeMarketFilter, 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, type IssuerExposure, type IssuerRef, 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 LenderUserParams, 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 ListaRewardProgram, type LlamaLendMarketOverride, type LlamaLendMarketOverrides, type LlamaLendMarketRaw, type LlamaLendMarketsRaw, type LlamaLendPositionInfo, type LoopPostTradeMetrics, type LstDelegation, type LstDelegationKind, type LstPauseState, type LstValidator, type LstWithdrawalFetchOptions, type LstWithdrawalRegistryEntry, type LstWithdrawalRequest, type LstWithdrawalRequestsByLst, type LstWithdrawalStatus, MORPHO_LENS, MULTICALL_FAILURE, type MaturityTerms, MaxParamThresholds, type MergedUserData, type MerklOpportunityResolver, type MetaFilter, type MidnightBook, type MidnightBookLevel, type MidnightBookSource, type MidnightChainBooks, type ModeBase, type ModeVariant, type MorphoMarketOverrides, type MorphoSubgraphProxyConfig, type MorphoUserMarketBalance, type MorphoUserReserveResponse, type MorphoVault, type MorphoVaults, type MulticallEndpointOptions, type MulticallRpcBatch, NON_EVM_VAULT_PROVIDERS, type NumberMap, type Open, type OracleBand, type OracleDiagnostics, type OraclePriceEntry, type OraclePricesResult, type OracleRiskRow, type OracleTerms, type OrderBookLendFacts, type OutlierGuardConfig, PASSTHROUGH_RATE_EPSILON, PENDLE_ASSETS_URL, PENDLE_CHAIN_IDS, PENDLE_MARKETS_URL, PREFIX_LENDERS, type PairRowDesks, 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, RATE_QUEUE_MAX_LEVELS, RATE_QUEUE_STEP, RIPE_LENDER_KEY, type RateKind, type RateMenuEntry, type RatePick, type RatePickId, type RateQueue, type RateQueueEntry, type RateTerms, type RawRpcBatch, type RawRpcCall, type RawRpcResponse, type ReadFailurePolicy, type ReadUserPositionsParams, type ReadUserPositionsResult, type RedemptionDriver, type RedemptionPressure, type RedemptionTerms, type ResupplyMarketsRaw, type ResupplyPairIdentity, type ResupplyPairRaw, type ResupplyPositionInfo, type ResupplyWrappedMarket, type RewardSourceRef, type RewardStream, type RewardTerm, type RewardTokenRef, type RewardsDataByMarketUid, type RipeAccountInfo, type RipeAssetRaw, type RipeMarketsRaw, type RiverMarketRaw, type RiverMarketsRaw, type RiverPositionInfo, SDK_FRACTION_RATE_PROVIDERS, SPECTRA_NETWORKS, SPECTRA_RATE_MAX_PERCENT, SPECTRA_RATE_MIN_PERCENT, STABLECOIN_SYMBOLS, STCELO_MANAGER_ADDRESS, SVM_EARN_MINT_BUILDERS, SVM_EARN_VAULT_BUILDERS, SVM_SAVINGS_CURATION, SVM_VAULT_PROVIDERS, type SelectPricesOptions, type Severity, type SeverityFinding, type SiloVault, type SiloVaults, type SpectraApiMarket, type SpectraApiPool, type SpectraApiToken, type SpectraPtMarket, type SpectraPtMarkets, type StCeloValidatorGroup, type StaleFeedEntry, type StampOptions, type StructuredOraclePrices, type SubAccountSelection, type SubAccountSummary, type SumerPositionInput, type SummaryAprData, type SummaryBalanceData, type SupplyExitMode, type SupplyExitRoute, type SupplyExitTerms, type SupplyTermSheet, type SvmEarnBuildability, type SvmEarnBuilder, type SvmSavingsCuration, type SvmVaultProvider, type SwapSideTerms, type SwapTermSheet, TELLER_CALLS_PER_BID, DECIMAL_BASE as TERMMAX_DECIMAL_BASE, TERMMAX_LIQUIDATION_PENALTY, TERMMAX_LIQUIDATION_WINDOW_SECS, TERMMAX_LIQUIDATOR_BONUS, TERMMAX_MARKETS_PER_CALL, 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 TermFillNow, type TermFillNowSide, 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 TermSheetVaultProvider, type TermSheetViolation, type TermStoreOrder, 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, USER_REWARD_SOURCES, USER_SET_RATE_PICKS, type UpshiftApiAsset, type UpshiftApiVault, type UpshiftVault, type UpshiftVaults, type UsddMarketRaw, type UsddMarketsRaw, type DssPositionInfo as UsddPositionInfo, type UserApr, type UserCallOptions, type UserConfig, type UserData, type UserDataResult, type UserDataTransport, type UserLendingPosition, type UserRewardAuthRequired, type UserRewardBreakdown, type UserRewardClaim, type UserRewardEntry, type UserRewardMarketRef, type UserRewardSource, type UserRewardSourceError, type UserRewardsResult, type UsualRewardsClaimData, type UtilizationTerms, VAULT_PROVIDERS, VAULT_PROVIDER_PROFILE, VAULT_PROVIDER_TRAITS, VAULT_SHARE_PRICE_PROBE, VAULT_VENUE_PREFIX, VENUS_CORE_POOL_ID, VOLATILE_VAULT_OVERRIDES, type ValidationResult, type VaultAprResult, type VaultBalanceInput, type VaultClassification, type VaultClassificationFields, type VaultLookupEntry, type VaultMarketExposure, type VaultProvider, type VaultProviderTraits, type VaultPublicDataAll, type VaultPublicDataResult, type VaultSourceRow, type VaultTermInput, type VaultYieldSeries, type VaultYieldSnapshot, VenusEModeAbi, type VenusEModeSetup, type YDaemonVault, YEARN_CHAIN_IDS, YEARN_YDAEMON_BASE, type YearnVault, type YearnVaultKind, type YearnVaults, type YieldDataByMarketUid, type YieldProfile, __resetResupplyUserCaches, accountDepositListKey, accountWithdrawalListKey, alchemixLenderKey, alchemixMytRate, alchemixRedemptionPace, appendSnapshot, applyEarnSanity, applyPositionDelta, attachImplications, attachPricesToFlashLiquidity, blockNumberFromTag, borosApi, borosInitialMargin, borosMaintenanceMargin, borosRateMoveToLiquidation, borosSideTerms, borosTakerFee, borrowDescription, borrowFindings, borrowHeadline, buildBorosTermSheet, buildExposures, buildFluidFTokensCall, buildFundingHedgeTerms, buildLendingPositionUid, buildLiquityUserCall, buildLoopResult, buildMorphoTypeCall, buildMorphoTypeUserCallWithLens, buildPortfolioTotals, buildQueriesFromMeta, buildRateQueue, buildSumerAccumulators, buildSummaries, buildTellerUserCall, buildTermMaxUserCall, buildTermSheet, buildTermSheetsForGroup, buildVaultEarnUid, buildVaultLookup, buildVaultTermSheet, calculateLeverage, calculateNetApr, calculateOverallNetApr, calculateWeightedAverage, classifyFreshness, classifyReliability, classifyVault, clearPendleMarketsCache, clearSpectraMarketsCache, collateralSymbolsByVenue, collectFeedObservations, computeBorrowDelta, computeCloseTradeDeltas, computeCollateralSwapDeltas, computeDebtSwapDeltas, computeDepositDelta, computeEModeAnalysis, computeOpenTradeDeltas, computePostTradeMetrics, computeRepayDelta, computeSumerBorrowDelta, computeSumerDepositDelta, computeSumerRepayDelta, computeSumerWaterfall, computeSumerWithdrawDelta, computeVaultApr, computeWithdrawDelta, computeZapTradeDeltas, consensusReference, convertAlchemixMarketsToResponse, convertBorosCandle, convertBorosMarket, convertCoolerMarketsToResponse, convertDssMarketsToResponse, convertExactlyMarketsToResponse, convertFlexMarketsToResponse, convertFlyingTulipMarketsToResponse, convertFrankencoinMarketsToResponse, convertFraxlendPairsToResponse, convertInverseMarketsToResponse, convertLenderUserDataResult, convertLiquityMarketsToResponse, convertLlamaLendMarketsToResponse, convertResupplyMarketsToResponse, convertRipeMarketsToResponse, convertRiverMarketsToResponse, convertTellerMarketsToResponse, convertTermMarketsToResponse, convertTermMaxMarketsToResponse, convertUsddMarketsToResponse, createMarketUid, createMidnightBookSource, createMultiAccountTypeUserState, createMulticallRpcCall, createRawRpcCalls, createTermBookSource, createTermMaxDataSource, debtAheadOf, decodeListaMarkets, decodeMarkets, decodePackedListaUserDataset, decodePackedMorphoUserDataset, deriveBorrowTags, deriveSupplyTags, deriveSwapTags, detectInterfaceKinds, dexResolverFor, disambiguateEarnNames, disambiguateOrderBookNames, discoverFlexTroves, dolomiteVaultAddress, dssIlkBytes32, dssKeyParts, dssLenderKey, duration, earnDescription, earnLabel, earnMarketFromPool, earnMarketFromVault, earnMarketLabel, earnPositionFromLenderEntry, earnPositionFromVaultBalance, earnPositionTotals, earnRateAtMaturity, earnRowFundingProfile, earnRowSubtitle, earnUidFromMarketUid, earnVaultTerms, earnVenueKind, emitterCoverage, encodeBalanceFetcherCalldata, enrichTermSheet, enrichmentIndexFromRows, enumerateEmitters, exactlyPairLtv, exactlyPenaltyRateToAprPercent, exactlyWadRateToPercent, feePhrase, feedKeyOf, feedStatKey, fetchAaveIncentivesUserRewards, fetchAlchemixMarkets, fetchBorosAccount, fetchBorosCollaterals, fetchBorosMarket, fetchBorosMarketById, fetchBorosMarkets, fetchBorosOrderBook, fetchBorosRateHistory, fetchCoolerMarkets, fetchDolomiteAccountNumbers, fetchDolomiteSubAccounts, fetchDssMarkets, fetchEulerEarnVaults, fetchEulerEarnVaultsFromSubgraph, fetchEulerSubAccountIndexes, fetchExactlyMarkets, fetchFlashLiquidityForChain, fetchFlexMarkets, fetchFluidDexState, fetchFluidFTokens, fetchFlyingTulipMarkets, fetchFlyingTulipUserRewards, fetchFrankencoinMarkets, fetchFraxlendPairs, fetchGeneralYields, fetchGeneralYieldsByMarketUid, fetchGmxExecutionFees, fetchGmxTickerPrices, fetchGmxVaults, fetchHypercoreVaults, fetchInverseMarkets, fetchLagoonApiVaults, fetchLagoonVaults, fetchLenderRewards, fetchLenderRewardsByMarketUid, fetchLiquityMarkets, fetchListaMarketEmissions, fetchListaUserRewards, fetchListaVaultEmissions, fetchListaVaultsFromChain, fetchLlamaLendMarkets, fetchMerklUserRewards, fetchMorphoUserBalances, fetchMorphoUserPositionMarkets, fetchMorphoVaults, fetchMorphoVaultsFromApi, fetchMorphoVaultsFromChain, fetchOraclePrices, fetchPendleApiAssets, fetchPendleApiMarkets, fetchPendlePrices, fetchPendlePtMarkets, fetchResupplyMarkets, fetchRipeMarkets, fetchRiverMarkets, fetchSiloVaults, fetchSpectraApiMarkets, fetchSpectraPtMarkets, fetchTellerMarkets, fetchTermMarkets, fetchTermMaxMarkets, fetchTermStoreOrders, fetchTokenBalances, fetchTokenMetadata, fetchUpshiftApiVaults, fetchUpshiftVaults, fetchUsddMarkets, fetchUserRewards, fetchUsualRewardsClaimData, fetchYearnApiVaults, fetchYearnVaults, fillableRemaining, filterActiveLenders, filterLenderMeta, filterLendersByProtocol, finalizeInfo, findingsFor, flexAverageRate, flexLenderApr, flexLenderKey, flexMarketIndex, formatRaw, frankencoinKeyParts, frankencoinLenderKey, fraxlendAssetPerCollateral, fraxlendKeyParts, fraxlendLenderKey, fundingExposureOf, fundingSymbolBase, fuseLenderData, generateLendingPools, getAavesForChain, getAssetConfig, getBalanceForMarketUid, getBorrowCapacity, getCachedFluidDexState, 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, getMidnightChainBooks, getMorphoTypeMarketConverter, getReadFailurePolicy, getResolvedDolomiteAccountNumbers, getResolvedDolomiteSubAccounts, getStCeloValidatorGroups, getSubAccountAddress, getSubAccountIndex, getTermProfile, getVaultPublicDataAll, getVaultWithdrawalRequests, getVenusEModeSetup, hasCritical, hasEulerEarnVaultSubgraph, hasLagoonVaults, hasMorphoPositionIndex, hasMorphoUserApi, hasMorphoUserSubgraph, hasPendleMarkets, hasSpectraMarkets, hasUpshiftVaults, hasYearnVaults, ilkToKeySegment, implausibleRatePercent, injectLenderInfoIntoEntries, inverseKeyParts, inverseLenderKey, isBoundNeed, isFailedCall, isFixedYieldEarnRow, isIlliquid, isLenderVenueKey, isLendingPosition, isLiveMarket as isLivePendleMarket, isLiveSpectraMarket, isMaturedTerm, isOrderBookCollateralLeg, isOrderBookLendRow, isPrincipalTokenSymbol, isRollingBookLendRow, isSecondaryMarketOnly, isStablecoinSymbol, isSyntheticQuoteUnit, isUnearnableEarnRate, isUnrealizableEarnRate, isVaultPosition, isVaultVenue, isYearnV3, keySegmentToIlk, keysFromMaps, lenderApiOnly, lenderFamily, lenderLiquidityPressure, liquityCandidateTroveIds, liquityKeyParts, liquityLenderKey, listaEmissionRewardFetcher, listaLoginMessage, llamaLendKeyParts, llamaLendLenderKey, marketKeysOf, meetsLiquidityFloor, mergeDeep, multicall3Abi, nanTo, needsLenderApproval, needsTokenApproval, noOpResult, normalizeToBytes, organizeUserQueries, parseBalanceFetcherResult, parseDolomiteSubAccountId, parseEarnUid, parseLenderKey, parseMergedResult, parseMulticallRpcResponses, parseExpirySeconds as parsePendleExpirySeconds, parseRawRpcBatchResponses, parseRawRpcResponses, parseCurveFee as parseSpectraCurveFee, parsePtRate as parseSpectraPtRate, parseTermMaxLtv, parseTokenBalanceResult, pct, pegPressure, assetKey as pendleAssetKey, pickPool as pickSpectraPool, positivePart, predictInverseEscrow, prepareLenderUserDataRpcCalls, prepareMergedMulticallParams, prepareMergedRpcCalls, prepareMulticallInputs, prepareTokenBalanceRpcCalls, priceGlvVaults, priceGmMarkets, probeAaveFeedTimestamps, protocolConsensus, protocolOf, pruneFeedStats, quoteBorosHedgeLeg, rankBorosHedgeMarkets, rankFindings, ratePercent, readLstPauseState, readUserPositions, readVaultSharePrices, rejectOutliers as rejectPriceOutliers, repairImpossibleTvl, resolveAdapter, resolveDerivation, resolveDolomiteRowIdentity, resolveEarnIdentity, resolveMerklOpportunityMarkets, resolveModeConfig, resolveStCeloDepositGroup, resolveVaultProfileId, resupplyKeyParts, resupplyLenderKey, resupplyMarketLabel, riverKeyParts, riverLenderKey, sanePercent as saneSpectraPercent, savingsAddresses, savingsBalanceKind, secondaryMarketVault, selectAssetGroupPrices, selectUsualRewardEntry, setMysticApiKey, shortDate, spectraAddress, spectraNetwork, spectraPoolsUrl, splitChainScopedAddress as splitPendleChainScopedAddress, stampCapabilities, stampEarnSubtitles, stampOrderBookLendRow, stampRollingBookLendRow, stampVaultClassification, stampVaultTermSheets, stripLeadingBrand, subAccountsOf, supplyDescription, supplyFindings, supplyHeadline, svmEarnBuildability, svmEarnBuilderKey, svmSavingsCuration, swapRoutedProvidersArePriceConsistent, swapSideDescription, swapSideHeadline, swapSideImplications, tellerBpsToPercent, tellerImpliedLtv, tellerLenderKey, tellerPoolFromLenderKey, termApiBaseUrl, 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, termOfferRateToAprPct, termOrderStoreBaseUrl, tickToAprNumber, tickToPrice, toDigest, toDolomiteSubAccountId, toTermFillNow, toTermSheetInput, toVaultTermInput, trancheFromCounterparty, tryParseEarnUid, unflattenLenderData, updateFeedStats, usdValue, usddIlkBytes32, usddKeyParts, usddLenderKey, validateTermSheet, validateTermSheets, validateUserData, vaultSharesToAssets, vaultTermInputFromEarnMarket, vaultTermInputFromSourceRow, vaultTraits, vaultVenue, venueBrand, venueBrandKey, walkBorosBook, withMaturityLabel, withTrancheLabel };