@1delta/margin-fetcher 5.0.135 → 5.0.138

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
@@ -466,7 +466,7 @@ interface UserLendingPosition {
466
466
  collateralEnabled: boolean;
467
467
  claimableRewards: number;
468
468
  }
469
- type UserRewardEntry = {
469
+ type UserRewardEntry$1 = {
470
470
  asset: string;
471
471
  totalRewards: number;
472
472
  claimableRewards: number;
@@ -479,7 +479,7 @@ interface LenderUserResponse {
479
479
  [marketUid: string]: UserLendingPosition;
480
480
  };
481
481
  };
482
- rewards: UserRewardEntry;
482
+ rewards: UserRewardEntry$1;
483
483
  }
484
484
  interface AaveV2UserReserveResponse {
485
485
  chainId: string;
@@ -487,7 +487,7 @@ interface AaveV2UserReserveResponse {
487
487
  lendingPositions: {
488
488
  [marketUid: string]: BaseLendingPositions;
489
489
  };
490
- rewards: UserRewardEntry;
490
+ rewards: UserRewardEntry$1;
491
491
  }
492
492
  /**
493
493
  * What `depositShares` / `debtShares` / `debtPar` on a position row denote.
@@ -658,7 +658,7 @@ interface FixedTermAuction {
658
658
  */
659
659
  interface FixedTermInfo {
660
660
  /** Underlying fixed-term protocol shape. */
661
- model: 'lista' | 'midnight' | 'term' | 'exactly' | 'teller' | 'termmax' | 'loopscale';
661
+ model: 'lista' | 'midnight' | 'term' | 'exactly' | 'teller' | 'termmax' | 'loopscale' | 'jupiter-offerbook';
662
662
  /**
663
663
  * Single fixed calendar maturity (unix secs). Undefined for rolling-duration
664
664
  * menus (Lista) and multi-maturity markets (Exactly — the maturity menu lives
@@ -731,7 +731,7 @@ interface FixedTermFillNow {
731
731
  * Named for Lista (the first producer) but SHARED by every fixed-term lender
732
732
  * that emits per-loan rows — Lista, Exactly, TermMax, Teller. Fields are
733
733
  * therefore mostly optional and several are lender-specific; see
734
- * [FIXED_TERM_REPAY_TERMS.md](../../../../FIXED_TERM_REPAY_TERMS.md) for which
734
+ * [FIXED_TERM_REPAY_TERMS.md](../../../../docs/terms/FIXED_TERM_REPAY_TERMS.md) for which
735
735
  * lender populates what and for the exact repay economics behind each number.
736
736
  *
737
737
  * `loanId` is the WRITE TARGET and its meaning differs per lender (Lista posId /
@@ -825,7 +825,7 @@ interface CompoundV3UserReserveResponse {
825
825
  };
826
826
  chainId: string;
827
827
  baseAsset: string;
828
- rewards: UserRewardEntry;
828
+ rewards: UserRewardEntry$1;
829
829
  account: string;
830
830
  }
831
831
  interface AaveV3Public extends LenderPublicBase {
@@ -3165,6 +3165,160 @@ declare const fetchGeneralYieldsByMarketUid: () => Promise<YieldDataByMarketUid>
3165
3165
  */
3166
3166
  declare const fetchLenderRewardsByMarketUid: () => Promise<RewardsDataByMarketUid>;
3167
3167
 
3168
+ /**
3169
+ * A user's reward balances, per (source, claim chain, reward token).
3170
+ *
3171
+ * The rate side (`RewardStream`) says what a market PAYS; this says what one
3172
+ * account HAS — claimable now, still accruing — and exactly what a claim needs.
3173
+ */
3174
+ /** Which market a slice of a reward balance came from. */
3175
+ interface UserRewardMarketRef {
3176
+ chainId: string;
3177
+ /** Our lender key, when the source names a market we can resolve. */
3178
+ lender?: string;
3179
+ /** Underlying token (lowercased on EVM). */
3180
+ underlying?: string;
3181
+ /** Aave-shaped balance token the incentive pays on (aToken / vToken). */
3182
+ reserveToken?: string;
3183
+ side?: 'deposit' | 'borrow';
3184
+ /** Share token of a vault-shaped deposit (Morpho / Euler Earn / fToken). */
3185
+ vault?: string;
3186
+ /** `createMarketUid(chainId, lender, underlying)` when both are known. */
3187
+ marketUid?: string;
3188
+ }
3189
+ interface UserRewardBreakdown {
3190
+ market?: UserRewardMarketRef;
3191
+ /** Raw amount attributed to this slice (cumulative for Merkl). */
3192
+ amount: string;
3193
+ /** Raw amount of this slice claimable now (Merkl: `amount − claimed`). */
3194
+ claimable?: string;
3195
+ /** Merkl: already claimed out of `amount`. */
3196
+ claimed?: string;
3197
+ /** Merkl: accrued but not yet in the Distributor's root. */
3198
+ pending?: string;
3199
+ /** Merkl's numeric opportunity id (`opportunityId` on the user API). */
3200
+ merklOpportunityId?: string;
3201
+ campaignId?: string;
3202
+ /** The source's own attribution string (Merkl `reason`). */
3203
+ reason?: string;
3204
+ }
3205
+ type UserRewardClaim = {
3206
+ kind: 'merkl';
3207
+ /** Merkl's Distributor — one address on every chain. */
3208
+ distributor: string;
3209
+ } | {
3210
+ kind: 'aave-incentives';
3211
+ controller: string;
3212
+ /** The balance tokens a `claimAllRewardsToSelf` must list. */
3213
+ assets: string[];
3214
+ } | {
3215
+ kind: 'flying-tulip';
3216
+ positionsManager: string;
3217
+ /** Supplied assets whose accrued FT a checkpoint settles. */
3218
+ assets: string[];
3219
+ ft: string;
3220
+ } | {
3221
+ kind: 'lista';
3222
+ /** Which Lista distributor pays this entry. */
3223
+ program: ListaRewardProgram;
3224
+ /**
3225
+ * `single`: `claim(account, totalAmount, proof)`; `multi`:
3226
+ * `claim(account, token, totalAmount, proof)` / `batchClaim`.
3227
+ */
3228
+ shape: 'single' | 'multi';
3229
+ distributor: string;
3230
+ /** Cumulative Merkle-leaf amount (raw); claim pays `total − claimed`. */
3231
+ totalAmount: string;
3232
+ proof: string[];
3233
+ };
3234
+ /**
3235
+ * Lista's Merkle distributors on BNB: the LISTA-only v1 lending distributor,
3236
+ * the multi-token lending distributor (every live vault / market emission,
3237
+ * the Ethereum vaults' included), the LISTA-holder tier bonus, the veLISTA
3238
+ * borrow-interest rebate (lisUSD) and Lista Credit's LISTA emission.
3239
+ */
3240
+ type ListaRewardProgram = 'lending-v1' | 'lending' | 'holder' | 'velista-rebate' | 'credit';
3241
+ type UserRewardSource = 'merkl' | 'aave-incentives' | 'flying-tulip' | 'lista';
3242
+ interface UserRewardEntry {
3243
+ /** The chain the CLAIM runs on (Merkl may distribute on another chain). */
3244
+ chainId: string;
3245
+ source: UserRewardSource;
3246
+ /** Program identity, matching `RewardStream.source.id` where one exists. */
3247
+ sourceId: string;
3248
+ token: {
3249
+ address: string;
3250
+ symbol?: string;
3251
+ decimals?: number;
3252
+ priceUsd?: number;
3253
+ };
3254
+ /** Raw amount claimable right now. */
3255
+ claimable: string;
3256
+ /** Raw amount accrued but not claimable yet (Merkl: awaits the next root). */
3257
+ pending: string;
3258
+ /** Raw lifetime claimed (Merkl only). */
3259
+ claimed?: string;
3260
+ claimableUsd?: number;
3261
+ pendingUsd?: number;
3262
+ breakdowns: UserRewardBreakdown[];
3263
+ claim: UserRewardClaim;
3264
+ /**
3265
+ * Whether `/v1/actions/rewards/claim` can build a working claim for this
3266
+ * entry: `false` when a dry run of the standard claim reverts (the reason is
3267
+ * in `warning`), absent when it was not or could not be checked.
3268
+ */
3269
+ claimSupported?: boolean;
3270
+ /**
3271
+ * Set when the balance could not be established cleanly — e.g. Merkl's
3272
+ * proof root lags the Distributor's. Never a silent zero.
3273
+ */
3274
+ warning?: string;
3275
+ }
3276
+ /** A source that failed: reported, never folded into "no rewards". */
3277
+ interface UserRewardSourceError {
3278
+ source: UserRewardSource;
3279
+ chainId?: string;
3280
+ error: string;
3281
+ }
3282
+ /**
3283
+ * A source that needs the ACCOUNT's signature before it reveals a balance —
3284
+ * not a failure and not a zero. Lista serves Merkle proofs only against a
3285
+ * `personal_sign` of `message`, valid for 7 days; sign it and pass it back
3286
+ * (`listaSignature` + `listaMessage`) to read and claim.
3287
+ */
3288
+ interface UserRewardAuthRequired {
3289
+ source: UserRewardSource;
3290
+ /** Chain the signature is made on and the claim runs on. */
3291
+ chainId: string;
3292
+ format: 'personal_sign';
3293
+ /** The exact text to sign. */
3294
+ message: string;
3295
+ /** Unix seconds after which a signature over `message` is refused. */
3296
+ expiresAt: number;
3297
+ description: string;
3298
+ }
3299
+ interface UserRewardsResult {
3300
+ account: string;
3301
+ rewards: UserRewardEntry[];
3302
+ errors: UserRewardSourceError[];
3303
+ /** Sources that were NOT read because they need a signature first. */
3304
+ authRequired?: UserRewardAuthRequired[];
3305
+ }
3306
+ interface UserRewardReadOptions {
3307
+ /** Per-chain RPC overrides (`x-fork-rpc`, keyed RPCs). */
3308
+ overrides?: Record<string, string[]>;
3309
+ fetchImpl?: typeof fetch;
3310
+ /**
3311
+ * The account's Lista login signature (`personal_sign` over `message`, see
3312
+ * {@link UserRewardAuthRequired}). Without it the Lista source is not read.
3313
+ * `type: 'safe'` for a Safe (EIP-1271) signer.
3314
+ */
3315
+ listaAuth?: {
3316
+ signature: string;
3317
+ message: string;
3318
+ type?: 'safe';
3319
+ };
3320
+ }
3321
+
3168
3322
  /** Shape returned by reward fetchers — matches lenderRewards in YieldDataWithTimestamp */
3169
3323
  type RewardResult = {
3170
3324
  [chainId: string]: {
@@ -3188,6 +3342,151 @@ interface RewardFetchOutput {
3188
3342
  byLender?: RewardResult;
3189
3343
  byReserveToken?: ReserveTokenRewardResult;
3190
3344
  }
3345
+ /** Unified interface for reward fetchers (parallel to YieldFetcher for intrinsic yields) */
3346
+ interface RewardFetcher {
3347
+ label: string;
3348
+ fetch: () => Promise<RewardFetchOutput>;
3349
+ }
3350
+ interface MerklToken {
3351
+ address: string;
3352
+ symbol: string;
3353
+ decimals: number;
3354
+ price: number | null;
3355
+ /** Merkl-hosted token icon. */
3356
+ icon?: string;
3357
+ }
3358
+ interface MerklAprBreakdown {
3359
+ /**
3360
+ * For `type: 'CAMPAIGN'` this is the **on-chain campaign id** (0x hash) and
3361
+ * matches `MerklRewardBreakdown.onChainCampaignId` — which is what makes an
3362
+ * exact APR↔token join possible instead of attributing a whole
3363
+ * opportunity's APR to whichever token happened to come first.
3364
+ */
3365
+ identifier: string;
3366
+ type: string;
3367
+ value: number;
3368
+ distributionType: string;
3369
+ }
3370
+ interface MerklAprRecord {
3371
+ cumulated: number;
3372
+ breakdowns: MerklAprBreakdown[];
3373
+ }
3374
+ interface MerklRewardBreakdown {
3375
+ token: MerklToken;
3376
+ amount: string;
3377
+ /** Daily payout in USD, as Merkl values it. */
3378
+ value: number;
3379
+ distributionType: string;
3380
+ /** Joins to `MerklAprBreakdown.identifier`. */
3381
+ onChainCampaignId?: string;
3382
+ /** Merkl's own numeric campaign id — carried through for support queries. */
3383
+ campaignId?: string;
3384
+ }
3385
+ interface MerklRewardsRecord {
3386
+ total: number;
3387
+ breakdowns: MerklRewardBreakdown[];
3388
+ }
3389
+ interface MerklOpportunity {
3390
+ chainId: number;
3391
+ /**
3392
+ * Merkl's NUMERIC opportunity id (a uint64 serialised as a string, e.g.
3393
+ * `"8510007982293035752"`). Distinct from `identifier` — the per-type key
3394
+ * in the app URL — and the one `/v4/users/{addr}/rewards` breakdowns cite
3395
+ * as `opportunityId`, so it is what joins a user's rewards to a market.
3396
+ */
3397
+ id?: string;
3398
+ identifier: string;
3399
+ name: string;
3400
+ status: string;
3401
+ /** "LEND" | "BORROW" | "POOL" | "HOLD" | "DROP" */
3402
+ action: string;
3403
+ /** APR as a percentage (3.25 = 3.25%) */
3404
+ apr: number;
3405
+ tvl: number;
3406
+ dailyRewards: number;
3407
+ tokens: MerklToken[];
3408
+ explorerAddress?: string;
3409
+ /** e.g. "https://app.aave.com/reserve-overview/?underlyingAsset=0x..." */
3410
+ depositUrl?: string;
3411
+ aprRecord: MerklAprRecord | null;
3412
+ rewardsRecord: MerklRewardsRecord | null;
3413
+ type: string;
3414
+ /**
3415
+ * Unix seconds — the soonest / latest campaign boundary on this opportunity.
3416
+ * TRAP: the API serialises these as STRINGS, hence the union. Always coerce.
3417
+ */
3418
+ earliestCampaignEnd?: number | string;
3419
+ latestCampaignEnd?: number | string;
3420
+ earliestCampaignStart?: number | string;
3421
+ latestCampaignStart?: number | string;
3422
+ /** Number of campaigns currently running under this opportunity. */
3423
+ liveCampaigns?: number;
3424
+ /** Merkl's protocol record — `name` and `icon` are display-ready. */
3425
+ protocol?: {
3426
+ id?: string;
3427
+ name?: string;
3428
+ icon?: string;
3429
+ };
3430
+ chain: {
3431
+ endOfDisputePeriod: number;
3432
+ explorers: any[];
3433
+ icon: string;
3434
+ id: number;
3435
+ liveCampaigns: number;
3436
+ name: string;
3437
+ };
3438
+ }
3439
+
3440
+ /**
3441
+ * Map a Merkl opportunity to the market(s) of ours it pays on. Lending
3442
+ * markets resolve to a `marketUid`; vault-shaped opportunities (Morpho / Euler
3443
+ * Earn / Fluid fTokens / Curvance vaults — wherever the deposit is a share
3444
+ * token) carry the share address in `vault`, which is the earn row's identity.
3445
+ * Reserve-token campaigns (Aave and its forks) resolve to a `marketUid`
3446
+ * only when lender metadata is loaded; otherwise the `reserveToken` stays.
3447
+ */
3448
+ declare function resolveMerklOpportunityMarkets(opp: MerklOpportunity): UserRewardMarketRef[];
3449
+
3450
+ interface ListaEmissionLeg {
3451
+ /** Reward token on the CLAIM chain (BNB), lowercased; absent if unknown. */
3452
+ token?: string;
3453
+ symbol: string;
3454
+ /** Nominal APR, percent. */
3455
+ apr: number;
3456
+ /** Reward tokens paid per week, human units. */
3457
+ weeklyTotal?: number;
3458
+ }
3459
+ interface ListaVaultEmission {
3460
+ vault: string;
3461
+ name: string;
3462
+ depositsUsd: number;
3463
+ legs: ListaEmissionLeg[];
3464
+ }
3465
+ interface ListaMarketEmission {
3466
+ marketId: string;
3467
+ loanSymbol: string;
3468
+ /** Supplied / borrowed USD, when the row lets them be derived. */
3469
+ supplyUsd?: number;
3470
+ borrowUsd?: number;
3471
+ /** 0..1, as the API reports it. */
3472
+ utilization: number;
3473
+ supply: ListaEmissionLeg[];
3474
+ borrow: ListaEmissionLeg[];
3475
+ }
3476
+ /**
3477
+ * Vault emissions on one chain, keyed by vault address (lowercased). Vaults
3478
+ * whose emission is switched off, or that hold less than {@link MIN_BASE_USD},
3479
+ * are omitted.
3480
+ */
3481
+ declare function fetchListaVaultEmissions(chainId: string, fetchImpl?: typeof fetch): Promise<Record<string, ListaVaultEmission>>;
3482
+ /** Market emissions on one chain (only markets paying something). */
3483
+ declare function fetchListaMarketEmissions(chainId: string, fetchImpl?: typeof fetch): Promise<ListaMarketEmission[]>;
3484
+ /**
3485
+ * LISTA (and partner-token) emissions on Lista Moolah MARKETS. Vault
3486
+ * emissions ride on the vault rows themselves (`fetchListaVaultsFromChain`),
3487
+ * since a vault is not a lender market.
3488
+ */
3489
+ declare const listaEmissionRewardFetcher: RewardFetcher;
3191
3490
 
3192
3491
  /**
3193
3492
  * Fetch and merge all lender reward sources.
@@ -3201,6 +3500,87 @@ interface RewardFetchOutput {
3201
3500
  */
3202
3501
  declare function fetchLenderRewards(): Promise<Required<RewardFetchOutput>>;
3203
3502
 
3503
+ /** Maps a Merkl opportunity to the market(s) of ours it pays on. */
3504
+ type MerklOpportunityResolver = (opp: MerklOpportunity) => UserRewardMarketRef[];
3505
+ /**
3506
+ * Merkl reward balances for one account across `chainIds` (each a chain
3507
+ * Merkl DISTRIBUTES on — Superform pays Ethereum vaults on Base, so the claim
3508
+ * chain is not always the position chain).
3509
+ *
3510
+ * Per reward token Merkl publishes the CUMULATIVE `amount` under a root and
3511
+ * the `claimed` total; the Distributor pays `amount − claimed`, which is
3512
+ * `claimable`. `pending` has accrued but waits for the next root. Each
3513
+ * breakdown names the opportunity it came from, which `resolve` maps to our
3514
+ * market — the same resolution the rate side uses, so a market's APR and its
3515
+ * holder's balance land on one `marketUid`.
3516
+ *
3517
+ * A Merkl claim is per TOKEN, not per market: claiming one market's slice
3518
+ * claims the account's whole balance of that token on that chain.
3519
+ */
3520
+ declare function fetchMerklUserRewards(account: string, chainIds: string[], resolve: MerklOpportunityResolver, opts?: UserRewardReadOptions): Promise<{
3521
+ rewards: UserRewardEntry[];
3522
+ errors: UserRewardSourceError[];
3523
+ }>;
3524
+
3525
+ /**
3526
+ * Unclaimed Aave V3-style `RewardsController` incentives (Aave, every fork
3527
+ * whose balance tokens point at a controller — dTRINITY's rebate, Neverland's
3528
+ * DUST, …), for one account on one chain.
3529
+ *
3530
+ * The controller is resolved PER BALANCE TOKEN off the chain, never per
3531
+ * deployment: dTRINITY's aTokens answer the zero address while its debt
3532
+ * tokens point at the live proxy, so a per-deployment guess misses the
3533
+ * product. Three rounds: controller + balance per token → per-controller
3534
+ * totals over every token it serves (catches residue from closed positions)
3535
+ * → per-token split for the tokens the account still holds (attribution).
3536
+ */
3537
+ declare function fetchAaveIncentivesUserRewards(account: string, chainId: string, opts?: UserRewardReadOptions): Promise<{
3538
+ rewards: UserRewardEntry[];
3539
+ errors: UserRewardSourceError[];
3540
+ }>;
3541
+
3542
+ /**
3543
+ * FT a Flying Tulip account has EARNED but not yet settled, per supplied
3544
+ * asset (`LendingLens.previewFTClaimFor`, which mirrors the PositionsManager's
3545
+ * `_settleUser`). Settled FT becomes the account's own FT balance inside the
3546
+ * PositionsManager — a supply row we already serve — so it is not counted
3547
+ * here. Needs lender-metadata loaded (`flyingTulipConfigFor`).
3548
+ */
3549
+ declare function fetchFlyingTulipUserRewards(account: string, chainId: string, opts?: UserRewardReadOptions): Promise<{
3550
+ rewards: UserRewardEntry[];
3551
+ errors: UserRewardSourceError[];
3552
+ }>;
3553
+
3554
+ /** The text a Lista login signature is made over, for `date`. */
3555
+ declare function listaLoginMessage(date?: Date): string;
3556
+ /**
3557
+ * Lista rewards claimable by `account`. Runs when `chainIds` names BNB or
3558
+ * Ethereum; every entry is on BNB (where the distributors are).
3559
+ */
3560
+ declare function fetchListaUserRewards(account: string, chainIds: string[], opts?: UserRewardReadOptions): Promise<{
3561
+ rewards: UserRewardEntry[];
3562
+ errors: UserRewardSourceError[];
3563
+ authRequired?: UserRewardAuthRequired[];
3564
+ }>;
3565
+
3566
+ declare const USER_REWARD_SOURCES: UserRewardSource[];
3567
+ /**
3568
+ * Every reward balance an account holds across `chainIds`, from every source
3569
+ * we can claim: Merkl (Aave, Morpho, Euler, Dolomite, Fluid, … campaigns),
3570
+ * Aave-style `RewardsController` incentives, Flying Tulip's FT emission.
3571
+ *
3572
+ * Sources fail independently and are REPORTED in `errors` — a missing source
3573
+ * is never folded into "no rewards". The on-chain sources need lender
3574
+ * metadata (data-sdk) initialised by the caller.
3575
+ */
3576
+ declare function fetchUserRewards(params: {
3577
+ account: string;
3578
+ chainIds: string[];
3579
+ sources?: UserRewardSource[];
3580
+ resolveMerkl?: MerklOpportunityResolver;
3581
+ options?: UserRewardReadOptions;
3582
+ }): Promise<UserRewardsResult>;
3583
+
3204
3584
  /** Convert a Midnight tick into a WAD zero-coupon price (rounded to the step). */
3205
3585
  declare function tickToPrice(tick: bigint): bigint;
3206
3586
  /** APR as a plain fraction (e.g. `0.0512` for 5.12%). Convenience for display. */
@@ -4027,26 +4407,31 @@ declare const FLYING_TULIP_LENDER_KEY = "FLYING_TULIP";
4027
4407
  * under the SINGLE cross-margin {@link FLYING_TULIP_LENDER_KEY} — one entry
4028
4408
  * per ASSET.
4029
4409
  *
4030
- * Risk factors (FLYING_TULIP.md §2.1): `maint` charges mmBps on BOTH legs, so
4031
- * pair LTV is multiplicative like Exactly's Auditor — but the open gate and
4032
- * the liquidation trigger use DIFFERENT HF thresholds (1.50 / 1.25), and our
4033
- * `config[0]` carries a single `borrowFactor`. The build uses `hfSafe` for
4034
- * `borrowFactor`, which makes the OPEN gate exact
4035
- * (`borrowCollateralFactor_i × borrowFactor_j` = the protocol's max LTV to
4036
- * the basis point) and leaves the liquidation threshold conservative by
4037
- * ~0.35 pp on stables — deliberate: quotes never revert, warnings come early.
4410
+ * Risk factors (FLYING_TULIP.md §2.1): `maint` charges mmBps on BOTH legs
4411
+ * (`HF = equity / Σ legs × mm`), so solving `C − D ≥ hf·(C·mm_c + D·mm_d)`
4412
+ * gives `C·(1 − hf·mm_c) ≥ D·(1 + hf·mm_d)`. In the package convention
4413
+ * (`Σ coll × bcf ≥ Σ debt × borrowFactor`, pair LTV `bcf_i / borrowFactor_j`,
4414
+ * the same as Exactly's `1 / adjustFactor`) the debt weight is therefore
4415
+ * `1 + hf·mm`, NOT its reciprocal. The open gate uses `hfSafe` (1.50), the
4416
+ * liquidation trigger `hfTgt` (1.25):
4417
+ *
4418
+ * borrowCollateralFactor_i = 1 − hfSafe·mm_i (open)
4419
+ * collateralFactor_i = 1 − hfTgt ·mm_i (liquidation)
4420
+ * borrowFactor_j = 1 + hfSafe·mm_j (open)
4421
+ * liquidationBorrowFactor_j = 1 + hfTgt ·mm_j (liquidation)
4038
4422
  *
4039
- * borrowCollateralFactor_i = 1 − hfSafe·mm_i (open)
4040
- * collateralFactor_i = 1 − hfTgt ·mm_i (liquidation)
4041
- * borrowFactor_j = 1 / (1 + hfSafe·mm_j)
4423
+ * An earlier build emitted `borrowFactor = 1 / (1 + hfSafe·mm)` (written for a
4424
+ * `bcf × bf` LTV). Divided, the two mm terms cancel to first order: stable
4425
+ * pairs (mm 1.5 %) read LTV 0.9995 → ~1975× max leverage and four-digit loop
4426
+ * APRs instead of the protocol's 22.7×.
4042
4427
  *
4043
4428
  * `depositRate = variableBorrowRate × utilization`, with NO reserve factor.
4044
4429
  *
4045
4430
  * This CORRECTS an earlier reading (FLYING_TULIP.md §3.1) that supplier yield
4046
4431
  * is only an epoch-indexed FT emission and that any IRM-derived supply APR is
4047
- * therefore wrong. The FT emission is real and is still not modelled here — it
4048
- * needs an external FT price and belongs in the rewards pipeline — but it is
4049
- * ON TOP of in-kind interest, not instead of it. Flying Tulip's own UI computes
4432
+ * therefore wrong. The FT emission is real and is not modelled here — it is a
4433
+ * reward stream (`yields/rewards/flyingTulip.ts`, joined downstream by lender
4434
+ * key + underlying) — and it is ON TOP of in-kind interest, not instead of it. Flying Tulip's own UI computes
4050
4435
  * the supply leg exactly as borrow × utilization, verified against the live
4051
4436
  * Sonic book on 6/6 assets (2026-08-26):
4052
4437
  *
@@ -4074,6 +4459,134 @@ declare function convertFlyingTulipMarketsToResponse(raw: FlyingTulipMarketsRaw,
4074
4459
  [m: string]: MorphoGeneralPublicResponse;
4075
4460
  };
4076
4461
 
4462
+ /**
4463
+ * The redemption queue of a USER-SET-RATE lender (the Liquity V2 family,
4464
+ * Flex), published in the order-book level shape.
4465
+ *
4466
+ * On these markets the borrower picks the rate, and redemptions take the
4467
+ * lowest rates first. So the number that decides whether a rate is any good
4468
+ * is how much debt sits AHEAD of it — the debt that is redeemed before a
4469
+ * trove at that rate is touched. The queue answers exactly that.
4470
+ *
4471
+ * Levels reuse {@link PublicBookLevel} (`{ apr, units, assets }`), the shape
4472
+ * Midnight / Term / Jupiter Offerbook rows already carry, but they MEAN
4473
+ * something else: a level is EXISTING debt at that rate, not a lot anyone can
4474
+ * take. That is why the queue lives under its own key
4475
+ * (`params.market.{liquity,flex}.queue`) and never under `params.market.book`
4476
+ * — yield-tracer ingests `book.bids` as a fillable borrow ladder and would
4477
+ * serve trove rates as a borrow price. On `/v1/data/lending/book` it is
4478
+ * `pricing: 'queue'`.
4479
+ *
4480
+ * Every rate here is a nominal APR in PERCENT, like every other rate field.
4481
+ * See docs/terms/USER_SET_RATE_PLAN.md.
4482
+ */
4483
+ type RatePickId = 'cheapest' | 'balanced' | 'protected';
4484
+ /**
4485
+ * The pickable rates: the lowest rate with at least `share` of the market's
4486
+ * debt ahead of it. ONE constant, so a policy change moves every family.
4487
+ */
4488
+ declare const USER_SET_RATE_PICKS: readonly {
4489
+ id: RatePickId;
4490
+ share: number;
4491
+ }[];
4492
+ /** Display cap on the published levels (the order-book slice uses the same order of magnitude). */
4493
+ declare const RATE_QUEUE_MAX_LEVELS = 24;
4494
+ /** Picks land on this grid, percent APR (1 bp). */
4495
+ declare const RATE_QUEUE_STEP = 0.01;
4496
+ interface RatePick {
4497
+ id: RatePickId;
4498
+ /** Percent APR, on the {@link RATE_QUEUE_STEP} grid, within `[min, max]`. */
4499
+ apr: number;
4500
+ /** Debt redeemed before a trove at `apr`, borrow-token units (human). */
4501
+ debtAhead: number;
4502
+ /** `debtAhead / totalDebt` (0 on an empty market). */
4503
+ share: number;
4504
+ /**
4505
+ * Upfront fee at this rate, percent of the borrowed amount. Both families
4506
+ * charge the market AVERAGE over a fixed period, so it barely depends on the
4507
+ * pick — but it is per pick so a family where it does can say so.
4508
+ */
4509
+ upfrontFeePct: number;
4510
+ }
4511
+ type RedemptionDriver = 'below-peg' | 'lender-liquidity';
4512
+ type RedemptionPressure = 'low' | 'elevated' | 'high';
4513
+ interface RateQueue {
4514
+ /**
4515
+ * Existing debt by rate, ASCENDING (lowest = redeemed first), compressed to
4516
+ * at most {@link RATE_QUEUE_MAX_LEVELS}. A compressed level's `apr` is the
4517
+ * HIGHEST rate it holds, so "debt at or below `apr`" stays exact at every
4518
+ * level boundary.
4519
+ */
4520
+ levels: PublicBookLevel[];
4521
+ /** Sum of every level, borrow-token units (human). */
4522
+ totalDebt: number;
4523
+ /** Allowed range, percent APR. */
4524
+ min: number;
4525
+ max: number;
4526
+ /** Empty when the market cannot be opened (a shut-down Liquity branch). */
4527
+ picks: RatePick[];
4528
+ /** The pick a ranked list prices this market at; absent with no picks. */
4529
+ recommended?: RatePickId;
4530
+ /** What triggers redemptions here — decides the copy and the recommendation. */
4531
+ pressure: {
4532
+ driver: RedemptionDriver;
4533
+ /** Liquity: the stable's USD price. Flex: the Lender's utilization (0..1). */
4534
+ signal: number | null;
4535
+ level: RedemptionPressure;
4536
+ };
4537
+ /** False when the distribution read stopped early (paging cap): levels are a floor. */
4538
+ complete: boolean;
4539
+ }
4540
+ /** One distribution entry: a trove (or a batch) at one rate. */
4541
+ interface RateQueueEntry {
4542
+ /** Percent APR. */
4543
+ rate: number;
4544
+ /** Raw debt, borrow-token base units. */
4545
+ debtRaw: bigint;
4546
+ }
4547
+ interface BuildRateQueueInput {
4548
+ entries: RateQueueEntry[];
4549
+ decimals: number;
4550
+ /** Percent APR bounds. */
4551
+ min: number;
4552
+ max: number;
4553
+ pressure: RateQueue['pressure'];
4554
+ /** Upfront fee for a pick at `apr`, percent of the borrow. */
4555
+ upfrontFeePct: (apr: number) => number;
4556
+ /** No picks: the market cannot be opened (shut-down branch). */
4557
+ closed?: boolean;
4558
+ complete?: boolean;
4559
+ maxLevels?: number;
4560
+ }
4561
+ /**
4562
+ * Debt redeemed before a trove at `apr`: every entry at a rate AT OR BELOW it.
4563
+ * Ties count as ahead — both families order equal rates by insertion, so a new
4564
+ * trove joins behind them.
4565
+ */
4566
+ declare function debtAheadOf(levels: {
4567
+ apr: number;
4568
+ assets: number;
4569
+ }[], apr: number): number;
4570
+ /**
4571
+ * Build the queue from a family's raw rate distribution. Pure.
4572
+ *
4573
+ * Picks are computed from the FULL distribution, before compression, so the
4574
+ * display cap never moves a pick. A pick is the lowest grid rate strictly
4575
+ * above the entry that crosses its share (so it never ties the debt it should
4576
+ * be behind), clamped to `[min, max]`; on an empty market every pick is `min`.
4577
+ */
4578
+ declare function buildRateQueue(input: BuildRateQueueInput): RateQueue;
4579
+ /**
4580
+ * Liquity redemptions are an arbitrage against the peg: they pay when the
4581
+ * stable trades under $1 by more than the redemption fee (≥ 0.5 %).
4582
+ */
4583
+ declare function pegPressure(price: number | null | undefined): RateQueue['pressure'];
4584
+ /**
4585
+ * Flex redeems whenever a lender exit or a borrow exceeds the Lender's idle
4586
+ * cash, so pressure is the Lender's utilization.
4587
+ */
4588
+ declare function lenderLiquidityPressure(utilization: number | null | undefined): RateQueue['pressure'];
4589
+
4077
4590
  /**
4078
4591
  * Raw per-branch on-chain snapshot of a Liquity-family deployment. All bigints
4079
4592
  * are raw WAD/base units straight from the multicall; `null` marks a failed
@@ -4101,6 +4614,17 @@ interface LiquityBranchRaw {
4101
4614
  collPrice: bigint | null;
4102
4615
  /** SortedTroves.getSize() — live (non-zombie) trove count */
4103
4616
  troveCount: bigint | null;
4617
+ /**
4618
+ * MultiTroveGetter.getDebtPerInterestRateAscending — raw rate (WAD) → debt
4619
+ * entries, lowest rate first (one entry per trove, or per batch). `null`
4620
+ * when the read failed; feeds the redemption queue.
4621
+ */
4622
+ rateDistribution?: {
4623
+ rate: bigint;
4624
+ debt: bigint;
4625
+ }[] | null;
4626
+ /** False when paging stopped at the round cap (the queue is a floor). */
4627
+ rateDistributionComplete?: boolean;
4104
4628
  }
4105
4629
  /** Raw public-data batch for ONE deployment (lender) on one chain. */
4106
4630
  interface LiquityMarketsRaw {
@@ -5335,6 +5859,15 @@ interface FlexMarketRaw {
5335
5859
  lenderShutdown: boolean;
5336
5860
  collateralDecimals: number;
5337
5861
  borrowDecimals: number;
5862
+ /**
5863
+ * Every active trove's (rate, debt), raw (rate precision-scaled), from the
5864
+ * Flex explorer index the user-data path already caches. Feeds the
5865
+ * redemption queue; `null` when the index could not be read.
5866
+ */
5867
+ rateDistribution?: {
5868
+ rate: bigint;
5869
+ debt: bigint;
5870
+ }[] | null;
5338
5871
  }
5339
5872
  interface FlexMarketsRaw {
5340
5873
  lender: string;
@@ -5398,6 +5931,10 @@ declare function convertFlexMarketsToResponse(raw: FlexMarketsRaw, chainId: stri
5398
5931
  interface FlexIndexedTrove {
5399
5932
  troveId: string;
5400
5933
  owner: string;
5934
+ /** Raw debt, borrow-token base units (the index's own read). */
5935
+ debt?: string;
5936
+ /** Raw annual rate, scaled by the market's `borrow_token_precision`. */
5937
+ rate?: string;
5401
5938
  }
5402
5939
  /**
5403
5940
  * Every active trove of a market, from the shared per-market cache. On a
@@ -7582,6 +8119,11 @@ interface MorphoVault extends VaultClassificationFields {
7582
8119
  rewardsRate: number;
7583
8120
  /** Sum of `supplyRate + rewardsRate` — what a depositor actually earns. */
7584
8121
  depositRate: number;
8122
+ /**
8123
+ * The programs behind `rewardsRate`, where the path knows them (the Lista
8124
+ * path, from Lista's emission API). Absent elsewhere.
8125
+ */
8126
+ rewardStreams?: RewardStream[];
7585
8127
  /** Performance fee in percent (e.g. `5.0` = 5 %). */
7586
8128
  fee: number;
7587
8129
  /** Timelock for vault config changes, in seconds. */
@@ -8657,7 +9199,7 @@ declare const resolveStCeloDepositGroup: (user: Address, requestedGroup?: string
8657
9199
  *
8658
9200
  * One shape for pool lenders, fixed-term lenders, CDPs and vaults, so an
8659
9201
  * integrator reads ONE object instead of ~15 protocol-specific fields plus a
8660
- * per-lender mental model. See [TERM_SHEET_PLAN.md](../../../../TERM_SHEET_PLAN.md)
9202
+ * per-lender mental model. See [TERM_SHEET_PLAN.md](../../../../docs/terms/TERM_SHEET_PLAN.md)
8661
9203
  * for the design rationale and the per-lender coverage matrix.
8662
9204
  *
8663
9205
  * ## Conventions that hold everywhere in this file
@@ -8933,9 +9475,15 @@ interface RateTerms {
8933
9475
  * that offers no input either cannot build the transaction or silently
8934
9476
  * accepts a default the user never saw.
8935
9477
  *
8936
- * `default` is what the protocol applies when the caller omits a rate (the
8937
- * branch average), so a UI can pre-fill it and stay consistent with what the
8938
- * action would have done anyway.
9478
+ * `default` is what the action applies when the caller omits a rate — the
9479
+ * redemption queue's RECOMMENDED pick — so a UI can pre-fill it and stay
9480
+ * consistent with what the action would have done anyway.
9481
+ *
9482
+ * `picks` are the pickable rates of the queue (docs/terms/USER_SET_RATE_PLAN.md):
9483
+ * the lowest rate with at least 5 / 25 / 50 % of the market's debt ahead of
9484
+ * it. The full queue, in the order-book level shape, is on the row
9485
+ * descriptor (`params.market.{liquity,flex}.queue`) and live on
9486
+ * `/v1/data/lending/book` (`pricing: 'queue'`).
8939
9487
  */
8940
9488
  userSet?: {
8941
9489
  /** Is a rate part of the open call at all? */
@@ -8943,8 +9491,27 @@ interface RateTerms {
8943
9491
  /** Inclusive bounds, PERCENT. Outside these the open reverts. */
8944
9492
  min?: AprPercent;
8945
9493
  max?: AprPercent;
8946
- /** Applied when the caller omits one — the branch average. */
9494
+ /** Applied when the caller omits one — the recommended pick. */
8947
9495
  default?: AprPercent;
9496
+ /** The pickable rates, cheapest first. Absent when no queue was read. */
9497
+ picks?: {
9498
+ id: Open<'cheapest' | 'balanced' | 'protected'>;
9499
+ apr: AprPercent;
9500
+ /** Debt redeemed before a position at `apr`, borrow-token units. */
9501
+ debtAhead: number;
9502
+ /** `debtAhead` as a fraction of the market's debt. */
9503
+ share: number;
9504
+ /** Upfront fee at this rate, percent of the borrow. */
9505
+ upfrontFeePct: number;
9506
+ }[];
9507
+ /** The pick ranked lists price this market at. */
9508
+ recommended?: Open<'cheapest' | 'balanced' | 'protected'>;
9509
+ /** What triggers redemptions, and how hard it is pushing now. */
9510
+ pressure?: {
9511
+ driver: Open<'below-peg' | 'lender-liquidity'>;
9512
+ signal: number | null;
9513
+ level: Open<'low' | 'elevated' | 'high'>;
9514
+ };
8948
9515
  /** Can it be changed after opening (Liquity `set-rate`)? */
8949
9516
  adjustable: boolean;
8950
9517
  /**
@@ -9943,6 +10510,17 @@ interface TermSheetDigest {
9943
10510
  description: string;
9944
10511
  tags: TermTag[];
9945
10512
  acceptedCollateral?: Omit<ExposureTerms, 'items'>;
10513
+ /**
10514
+ * `rateKind: 'user-set'` only — the range and the queue's recommended pick
10515
+ * (percent APR), so a list can say "from X %, you choose" without the
10516
+ * full sheet. The picks themselves are on the sheet and the book.
10517
+ */
10518
+ userSet?: {
10519
+ min?: AprPercent;
10520
+ max?: AprPercent;
10521
+ recommended?: Open<'cheapest' | 'balanced' | 'protected'>;
10522
+ recommendedApr?: AprPercent;
10523
+ };
9946
10524
  };
9947
10525
  swap?: {
9948
10526
  kind: SwapTermSheet['kind'];
@@ -13142,8 +13720,20 @@ interface FluidFToken extends VaultClassificationFields {
13142
13720
  convertToAssets: string;
13143
13721
  /** Base supply APR in percent (e.g. `2.83` = 2.83 %). From Liquidity Layer utilization. */
13144
13722
  supplyRate: number;
13145
- /** Extra rewards APR in percent, on top of `supplyRate`. */
13723
+ /**
13724
+ * Extra rewards APR in percent, on top of `supplyRate`: the fToken's own
13725
+ * on-chain `rewardsRate` (Fluid's LendingRewardsRateModel) PLUS any live
13726
+ * Merkl campaign on the fToken (`ERC20LOGPROCESSOR`, e.g. GHO on fGHO),
13727
+ * which is detailed in `rewardStreams`.
13728
+ */
13146
13729
  rewardsRate: number;
13730
+ /**
13731
+ * The Merkl campaigns inside `rewardsRate`, in the lending side's
13732
+ * `RewardStream` vocabulary (token, `endsAt` / `startsAt`, exact link,
13733
+ * `merklOpportunityId`). Absent when the fToken has none. The on-chain
13734
+ * rewards-model leg is not a stream: it accrues into the exchange price.
13735
+ */
13736
+ rewardStreams?: RewardStream[];
13147
13737
  /** Sum of `supplyRate + rewardsRate` — what a depositor actually earns. */
13148
13738
  depositRate: number;
13149
13739
  /** Capability flag — the fToken supports a `depositNative()` wrapper that
@@ -13294,6 +13884,11 @@ interface FetchListaVaultsFromChainOptions {
13294
13884
  * registry.
13295
13885
  */
13296
13886
  vaultsOverride?: MorphoTypeVaultEntry[];
13887
+ /**
13888
+ * `false` skips Lista's emission API: rows then carry `rewardsRate: 0`.
13889
+ * A failed read degrades the same way — the supply leg never depends on it.
13890
+ */
13891
+ emissions?: boolean;
13297
13892
  }
13298
13893
  /**
13299
13894
  * On-chain Lista DAO (Moolah-fork) vault fetcher. Same output shape as
@@ -16100,6 +16695,21 @@ declare function stampOrderBookLendRow(m: EarnMarket, facts: OrderBookLendFacts,
16100
16695
  * disambiguation used. Only colliding rows change.
16101
16696
  */
16102
16697
  declare function disambiguateOrderBookNames(rows: EarnMarket[]): void;
16698
+ /**
16699
+ * Lend rows on a ROLLING-TENOR order book (Jupiter Offerbook, Loopscale):
16700
+ * Midnight's pool-field problem without a calendar date. The loan leg's
16701
+ * `totalDeposits` is the LEND side of the book (what lenders can place now —
16702
+ * the borrowers' resting offers on Offerbook), while `liquidity` /
16703
+ * `utilization` are the borrow side. There is no maturity to lift: each fill
16704
+ * starts its own 1–30-day term, stated on the term sheet.
16705
+ *
16706
+ * Exit: an Offerbook lender is locked until the borrower repays or the term
16707
+ * ends and the collateral is claimed (`at-maturity`); a Loopscale ledger
16708
+ * leaves early only by being sold to another strategy (`market-sale`).
16709
+ */
16710
+ declare function isRollingBookLendRow(m: EarnMarket): boolean;
16711
+ /** Stamp a rolling-book lend row in place; `collateral` from the pair key when the caller can name it. */
16712
+ declare function stampRollingBookLendRow(m: EarnMarket, collateral?: EarnCollateralLeg[]): void;
16103
16713
 
16104
16714
  /**
16105
16715
  * Multiply a formatted (human-unit) amount by a USD price.
@@ -16494,9 +17104,16 @@ declare function isFixedYieldEarnRow(m: {
16494
17104
  venue: string;
16495
17105
  }): boolean;
16496
17106
  /**
16497
- * A Midnight COLLATERAL leg (`…:<token>-c<i>`). Not an earn product: it pays
16498
- * nothing and its size is a capacity derived from the borrow book, not money
16499
- * deposited. Both `/earn` paths drop it unconditionally.
17107
+ * An order-book COLLATERAL leg. Not an earn product: it pays nothing, and its
17108
+ * size is collateral locked in loans (or, on Midnight, a capacity derived
17109
+ * from the borrow book), not money deposited. Both `/earn` paths drop it
17110
+ * unconditionally.
17111
+ *
17112
+ * - Midnight: the ref is `<token>-c<i>` (`…:0xabc-c0`).
17113
+ * - Jupiter Offerbook / Loopscale: the key is `<FAMILY>_<principal>_<collateral>`
17114
+ * and the collateral leg's ref is that collateral mint — the key's LAST
17115
+ * `_` segment (base58 has no `_`). Mirrored by yield-tracer
17116
+ * `ORDERBOOK_COLLATERAL_LEG_SQL`.
16500
17117
  */
16501
17118
  declare function isOrderBookCollateralLeg(m: {
16502
17119
  venueKind?: string;
@@ -17282,6 +17899,16 @@ declare function fetchBorosMarkets(opts?: {
17282
17899
  declare function fetchBorosMarket(marketId: number, opts?: {
17283
17900
  fetchImpl?: typeof fetch;
17284
17901
  }): Promise<BorosMarket | undefined>;
17902
+ /**
17903
+ * One market by id, INCLUDING matured and delisted ones — the market list
17904
+ * (`fetchBorosMarkets`) carries only the live whitelisted markets, while
17905
+ * `/v1/markets/{id}` and its chart keep answering after maturity. `undefined`
17906
+ * when the id does not exist (the API answers 404).
17907
+ */
17908
+ declare function fetchBorosMarketById(marketId: number, opts?: {
17909
+ fetchImpl?: typeof fetch;
17910
+ collaterals?: BorosCollateral[];
17911
+ }): Promise<BorosMarket | undefined>;
17285
17912
 
17286
17913
  /**
17287
17914
  * The live book of one market, AMM liquidity merged in. The API keys sides by
@@ -17290,6 +17917,58 @@ declare function fetchBorosMarket(marketId: number, opts?: {
17290
17917
  */
17291
17918
  declare function fetchBorosOrderBook(marketId: number, fetchImpl?: typeof fetch): Promise<BorosOrderBook>;
17292
17919
 
17920
+ /**
17921
+ * One candle of a Boros market's rate history, as `/v1/markets/chart` serves
17922
+ * it, in the package convention: every rate a nominal APR in PERCENT. The API
17923
+ * answers fractions (0.085 = 8.5 %).
17924
+ */
17925
+ interface BorosRateCandle {
17926
+ /** Unix seconds, the START of the bucket. */
17927
+ ts: number;
17928
+ /** The market's implied (fixed) APR over the bucket: open / high / low / close. */
17929
+ impliedOpen: number;
17930
+ impliedHigh: number;
17931
+ impliedLow: number;
17932
+ impliedClose: number;
17933
+ /** The mark (fair-value) APR margin is computed on. */
17934
+ markApr: number;
17935
+ /**
17936
+ * The venue's floating funding the market settles against, annualised, from
17937
+ * the reference oracle — what a SHORT pays and a LONG receives.
17938
+ */
17939
+ underlyingApr: number;
17940
+ /** The funding rate the external feed last reported, annualised. */
17941
+ oracleFundingApr: number;
17942
+ /** 7- and 30-day moving averages of the realtime funding, annualised. */
17943
+ fundingMa7dApr: number;
17944
+ fundingMa30dApr: number;
17945
+ /** Implied − underlying, as Boros computes it. */
17946
+ futurePremium: number;
17947
+ /** Traded volume in YU (collateral units of notional). */
17948
+ volume: number;
17949
+ }
17950
+ type BorosChartInterval = '5m' | '1h' | '1d' | '1w';
17951
+ declare function convertBorosCandle(c: any): BorosRateCandle | null;
17952
+ /**
17953
+ * A market's rate history between `from` and `to` (unix seconds, inclusive),
17954
+ * oldest first.
17955
+ *
17956
+ * The endpoint answers a WINDOW of 200 buckets ending at `endTimestamp` (fewer
17957
+ * when the market has fewer there), so a longer range is paged BACKWARDS: each
17958
+ * page ends one second before the oldest candle of the previous one, until a
17959
+ * page comes back empty (the market's launch) or `from` is passed. Hourly
17960
+ * history reaches back to launch and survives maturity (checked 2026-10-21:
17961
+ * May 2026 on a Dec-2026 market; a Jun-2026 market still answers). Pass `to`
17962
+ * near the maturity for a matured market — from "now" the first windows are
17963
+ * empty and cost a request each.
17964
+ */
17965
+ declare function fetchBorosRateHistory(marketId: number, opts?: {
17966
+ interval?: BorosChartInterval;
17967
+ from?: number;
17968
+ to?: number;
17969
+ fetchImpl?: typeof fetch;
17970
+ }): Promise<BorosRateCandle[]>;
17971
+
17293
17972
  /**
17294
17973
  * The Boros term sheet — a `swap` sheet with BOTH sides (BOROS.md).
17295
17974
  *
@@ -17375,6 +18054,17 @@ interface FundingExposureProfile {
17375
18054
  notes: string[];
17376
18055
  }
17377
18056
  declare const FUNDING_EXPOSURE_PROFILES: Record<string, FundingExposureProfile>;
18057
+ /**
18058
+ * A Pendle / Spectra principal token: its yield was fixed at purchase, so it
18059
+ * carries NO floating funding. A SHORT YU sized on it would not hedge
18060
+ * anything — it would leave the holder paying floating funding unopposed.
18061
+ */
18062
+ declare const isPrincipalTokenSymbol: (symbol: string | undefined) => boolean;
18063
+ /**
18064
+ * The funding a collateral token earns, or `undefined` when it earns none we
18065
+ * can lock — including every principal token (`isPrincipalTokenSymbol`): a
18066
+ * PT over sUSDe has already sold sUSDe's floating rate for a fixed one.
18067
+ */
17378
18068
  declare function fundingExposureOf(symbol: string | undefined): FundingExposureProfile | undefined;
17379
18069
  interface HedgeMarketFilter {
17380
18070
  /** Underlying asset of the funding (`BTC`, `ETH`). */
@@ -17450,4 +18140,4 @@ declare function quoteBorosHedgeLeg(p: {
17450
18140
  existingFreeMargin?: number;
17451
18141
  }): BorosHedgeLegQuote;
17452
18142
 
17453
- 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 BorosCollateral, type BorosCrossAccount, type BorosFill, type BorosHedgeLegQuote, type BorosMarket, type BorosOrderBook, type BorosPosition, 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 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 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, RIPE_LENDER_KEY, type RateKind, type RateMenuEntry, type RateTerms, type RawRpcBatch, type RawRpcCall, type RawRpcResponse, type ReadFailurePolicy, type ReadUserPositionsParams, type ReadUserPositionsResult, 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, 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 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, 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, 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, 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, fetchAlchemixMarkets, fetchBorosAccount, fetchBorosCollaterals, fetchBorosMarket, fetchBorosMarkets, fetchBorosOrderBook, fetchCoolerMarkets, fetchDolomiteAccountNumbers, fetchDolomiteSubAccounts, fetchDssMarkets, fetchEulerEarnVaults, fetchEulerEarnVaultsFromSubgraph, fetchEulerSubAccountIndexes, fetchExactlyMarkets, fetchFlashLiquidityForChain, fetchFlexMarkets, fetchFluidDexState, fetchFluidFTokens, fetchFlyingTulipMarkets, fetchFrankencoinMarkets, fetchFraxlendPairs, fetchGeneralYields, fetchGeneralYieldsByMarketUid, fetchGmxExecutionFees, fetchGmxTickerPrices, fetchGmxVaults, fetchHypercoreVaults, fetchInverseMarkets, fetchLagoonApiVaults, fetchLagoonVaults, fetchLenderRewards, fetchLenderRewardsByMarketUid, fetchLiquityMarkets, fetchListaVaultsFromChain, fetchLlamaLendMarkets, 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, 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, isSecondaryMarketOnly, isStablecoinSymbol, isSyntheticQuoteUnit, isUnearnableEarnRate, isUnrealizableEarnRate, isVaultPosition, isVaultVenue, isYearnV3, keySegmentToIlk, keysFromMaps, lenderApiOnly, lenderFamily, liquityCandidateTroveIds, liquityKeyParts, liquityLenderKey, 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, 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, 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, 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 };
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 };