@1delta/margin-fetcher 5.0.114 → 5.0.116

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
@@ -4830,6 +4830,173 @@ interface CoolerPositionInfo {
4830
4830
  liquidationDebtAmount: string;
4831
4831
  }
4832
4832
 
4833
+ /**
4834
+ * Raw shapes for the Ripe public-data fetch (on-chain only — there is no
4835
+ * market API; see RIPE.md). Every rate / factor is in Ripe's own 1e4 = 100 %
4836
+ * scale exactly as `DebtTerms` stores it.
4837
+ */
4838
+ /** `cs.DebtTerms` — per asset, and the weighted copy stored on a loan. */
4839
+ interface RipeDebtTermsRaw {
4840
+ ltv: number;
4841
+ redemptionThreshold: number;
4842
+ liqThreshold: number;
4843
+ liqFee: number;
4844
+ /** Base borrow rate, 1e4 = 100 % APR. */
4845
+ borrowRate: number;
4846
+ /** Origination fee, 1e4 = 100 % of the amount borrowed. */
4847
+ daowry: number;
4848
+ }
4849
+ /** One registered asset, merged from `assetConfig` + vault totals + price. */
4850
+ interface RipeAssetRaw {
4851
+ address: string;
4852
+ symbol: string;
4853
+ decimals: number;
4854
+ /** Custody vault ids (VaultBook) this asset can be deposited into. */
4855
+ vaultIds: number[];
4856
+ /** Vault address per id, resolved through the VaultBook. */
4857
+ vaults: string[];
4858
+ /** Σ `getTotalAmountForVault(asset)` over `vaults`, in asset base units. */
4859
+ totalDeposited: bigint;
4860
+ perUserDepositLimit: bigint;
4861
+ globalDepositLimit: bigint;
4862
+ minDepositBalance: bigint;
4863
+ debtTerms: RipeDebtTermsRaw;
4864
+ canDeposit: boolean;
4865
+ canWithdraw: boolean;
4866
+ /** Non-zero ⇒ deposits are allowlisted per user by this contract. */
4867
+ whitelist: string;
4868
+ isNft: boolean;
4869
+ /** `PriceDesk.getPrice` — 18-dec USD per whole token, 0 = no fresh feed. */
4870
+ priceWad: bigint | null;
4871
+ /** `CreditEngine.getDynamicBorrowRate(debtTerms.borrowRate)` (1e4 scale). */
4872
+ dynamicBorrowRate: number | null;
4873
+ }
4874
+ /** `cs.GenDebtConfig` — the subset the converter and builders read. */
4875
+ interface RipeGenDebtConfigRaw {
4876
+ perUserDebtLimit: bigint;
4877
+ globalDebtLimit: bigint;
4878
+ minDebtAmount: bigint;
4879
+ numAllowedBorrowers: bigint;
4880
+ maxBorrowPerInterval: bigint;
4881
+ numBlocksPerInterval: bigint;
4882
+ maxBorrowRate: number;
4883
+ isDaowryEnabled: boolean;
4884
+ }
4885
+ /** `cs.GenConfig` — the protocol-wide switches. */
4886
+ interface RipeGenConfigRaw {
4887
+ perUserMaxVaults: number;
4888
+ perUserMaxAssetsPerVault: number;
4889
+ canDeposit: boolean;
4890
+ canWithdraw: boolean;
4891
+ canBorrow: boolean;
4892
+ canRepay: boolean;
4893
+ }
4894
+ /** Live department addresses, resolved from `RipeHq` (seed as fallback). */
4895
+ interface RipeAddressesRaw {
4896
+ ripeHq: string;
4897
+ teller: string;
4898
+ missionControl: string;
4899
+ ledger: string;
4900
+ creditEngine: string;
4901
+ priceDesk: string;
4902
+ vaultBook: string;
4903
+ green: string;
4904
+ savingsGreen: string;
4905
+ }
4906
+ interface RipeMarketsRaw {
4907
+ lender: string;
4908
+ addresses: RipeAddressesRaw | null;
4909
+ genConfig: RipeGenConfigRaw | null;
4910
+ genDebtConfig: RipeGenDebtConfigRaw | null;
4911
+ totalDebt: bigint | null;
4912
+ numBorrowers: number | null;
4913
+ greenDecimals: number;
4914
+ greenPriceWad: bigint | null;
4915
+ /** Every registered asset (the converter filters to collateral + GREEN). */
4916
+ assets: RipeAssetRaw[];
4917
+ source: 'chain' | 'none';
4918
+ }
4919
+
4920
+ declare function fetchRipeMarkets(lender: string, chainId: string): Promise<RipeMarketsRaw>;
4921
+
4922
+ /**
4923
+ * The ONE Ripe lender key. Ripe holds ONE cross-collateral position per
4924
+ * address per chain (every deposited asset backs the same GREEN loan), so
4925
+ * there is no per-market key space to fan out — the Flying Tulip shape: one
4926
+ * lender key, one row per asset.
4927
+ */
4928
+ declare const RIPE_LENDER_KEY = "RIPE";
4929
+ /**
4930
+ * Map the Ripe batch into the shared `MorphoGeneralPublicResponse` shape under
4931
+ * the single {@link RIPE_LENDER_KEY} — one entry per COLLATERAL asset plus one
4932
+ * GREEN debt entry.
4933
+ *
4934
+ * Rows that are NOT emitted: assets with `ltv == 0` (RIPE in the governance
4935
+ * vault, its LP tokens, the Stability-Pool assets GREEN/USDC LP and sGREEN,
4936
+ * the Robinhood community tokens) — they sit in a Ripe account but add no
4937
+ * borrowing power, and the Stability Pool is never collateral; and retired
4938
+ * assets with no custody vault left (`vaultIds == []`, e.g. Base USDC).
4939
+ *
4940
+ * Risk factors map one to one from `DebtTerms`, which is exact for a
4941
+ * single-collateral position and is how Ripe blends a mixed one (each term is
4942
+ * weighted by the asset's share of borrowing power):
4943
+ *
4944
+ * borrowCollateralFactor = ltv (new borrows / withdrawals)
4945
+ * collateralFactor = liqThreshold (liquidation)
4946
+ * liquidationPenalty = liqFee
4947
+ *
4948
+ * The REDEMPTION threshold sits between the two and has no slot in the shared
4949
+ * config — it rides in the `ripe` extras, and the term sheet states it.
4950
+ *
4951
+ * THE BORROW RATE IS A PROPERTY OF THE COLLATERAL, NOT OF GREEN. A position
4952
+ * pays the borrowing-power-weighted average of its collateral's
4953
+ * `debtTerms.borrowRate` (plus the peg-defence boost while GREEN is off peg).
4954
+ * The shared row model carries one rate per debt asset, so the GREEN row
4955
+ * publishes the rate a borrower whose collateral mix equals the PROTOCOL's
4956
+ * own book would pay (weights = deposited value × ltv), and every collateral
4957
+ * row carries its own rate as `ripe.borrowRate` — the exact rate for a
4958
+ * single-collateral position. With nothing deposited the weights fall back to
4959
+ * equal weights over the deposit-enabled collateral.
4960
+ *
4961
+ * There is NO supply side: GREEN is minted, so the GREEN row has no deposits
4962
+ * and `borrowLiquidity` is the headroom under the protocol-wide debt ceiling
4963
+ * (`globalDebtLimit − totalDebt`); the per-user ceiling rides in the
4964
+ * descriptor. Protocol revenue reaches lenders only through sGREEN, which is
4965
+ * served as its own savings row.
4966
+ */
4967
+ declare function convertRipeMarketsToResponse(raw: RipeMarketsRaw, chainId: string, prices?: {
4968
+ [asset: string]: number;
4969
+ }, additionalYields?: AdditionalYields, tokens?: GenericTokenList): {
4970
+ [m: string]: MorphoGeneralPublicResponse;
4971
+ };
4972
+
4973
+ /**
4974
+ * Account-level Ripe extras, attached to EVERY row of the account (one
4975
+ * cross-collateral loan per address: the numbers belong to the whole
4976
+ * position, not a market).
4977
+ *
4978
+ * The terms are the WEIGHTED copy Ripe stored on the loan at its last touch —
4979
+ * the protocol re-weights them (and refreshes the rate) only when the
4980
+ * position is borrowed against, repaid, deposited into or withdrawn from, so
4981
+ * a dormant loan keeps paying its old rate.
4982
+ */
4983
+ interface RipeAccountInfo {
4984
+ /** Debt incl. pending interest, GREEN wei string. */
4985
+ debt: string;
4986
+ /** Stored principal, GREEN wei string. */
4987
+ principal: string;
4988
+ /** Weighted borrow rate stored on the loan, PERCENT APR. */
4989
+ borrowRate: number;
4990
+ /** Weighted max LTV / redemption / liquidation thresholds (0..1). */
4991
+ ltv: number;
4992
+ redemptionThreshold: number;
4993
+ liquidationThreshold: number;
4994
+ /** Weighted liquidation fee (0..1). */
4995
+ liquidationFee: number;
4996
+ /** Once set, stays set until debt ≤ max-borrow again: no borrows, no withdrawals. */
4997
+ inLiquidation: boolean;
4998
+ }
4999
+
4833
5000
  /**
4834
5001
  * Per-market snapshot of a LlamaLend market. Amounts are HUMAN units (the
4835
5002
  * Curve API serves human numbers; the on-chain fallback normalizes to match).
@@ -9308,6 +9475,14 @@ interface SavingsVault extends VaultClassificationFields {
9308
9475
  * 500, on a `DEFAULT_ADMIN_ROLE` setter, while its docs claim 10 bps.
9309
9476
  */
9310
9477
  depositFeeBps?: number;
9478
+ /**
9479
+ * Performance fee on YIELD, in PERCENT (`10` = 10 %), the unit and name the
9480
+ * other vault providers use, so the term sheet's fee block reads one field.
9481
+ * Already netted out of the share price and `supplyRate`. Absent means not
9482
+ * read, not free. Populated by readers whose protocol publishes the dial
9483
+ * on-chain (Superform SuperVaults).
9484
+ */
9485
+ fee?: number;
9311
9486
  /**
9312
9487
  * Seconds a FRESH deposit earns nothing before the rate applies.
9313
9488
  *
@@ -11871,6 +12046,21 @@ declare function buildVaultLookup(data: VaultPublicDataAll): Map<string, VaultLo
11871
12046
  */
11872
12047
  declare const VAULT_PROVIDERS: readonly ["fluid", "gearbox", "morpho", "lista", "silo", "euler-earn", "termmax", "lst", "savings", "lagoon", "aave-earn", "upshift", "yearn", "hypercore", "gmx", "pendle", "spectra"];
11873
12048
  type VaultProvider = (typeof VAULT_PROVIDERS)[number];
12049
+ /**
12050
+ * The Solana-only vault providers — rows the origin serves under
12051
+ * `vault.<provider>` on Solana (margin-fetcher-sol's `vaults/*`, ingested by
12052
+ * yield-tracer). Deliberately NOT in {@link VAULT_PROVIDERS}: that list is
12053
+ * what `getVaultPublicDataAll` fetches and what `/v1/data/vaults` accepts,
12054
+ * and none of these is an EVM fetch. They are listed so the term-sheet tables
12055
+ * (`VAULT_PROVIDER_TRAITS`, `VAULT_PROVIDER_PROFILE`) are exhaustive over
12056
+ * them too — a Solana provider with no stated terms is a COMPILE error, not a
12057
+ * silent `FALLBACK_TRAITS` sheet (SOLANA_API_AUDIT.md E1). `savings` and
12058
+ * `lst` serve Solana rows as well and are already in the EVM list.
12059
+ */
12060
+ declare const SVM_VAULT_PROVIDERS: readonly ["jupiter-lend", "kamino-kvault", "loopscale", "exponent"];
12061
+ type SvmVaultProvider = (typeof SVM_VAULT_PROVIDERS)[number];
12062
+ /** Every provider a vault term sheet can be built for — EVM and Solana. */
12063
+ type TermSheetVaultProvider = VaultProvider | SvmVaultProvider;
11874
12064
  /**
11875
12065
  * Per-provider payload returned by `getVaultPublicDataAll`. Each entry is
11876
12066
  * present only when the matching provider was requested AND its fetch
@@ -13156,14 +13346,14 @@ declare const DEFAULT_PROFILE_ID = "pool.variable@v1";
13156
13346
  /**
13157
13347
  * Vault provider → its base profile.
13158
13348
  *
13159
- * EXHAUSTIVE over `VaultProvider` by type, which is the point: adding a
13349
+ * EXHAUSTIVE over `TermSheetVaultProvider` (EVM + Solana) by type, which is the point: adding a
13160
13350
  * provider without deciding what its terms are is a compile error, and a test
13161
13351
  * asserts every entry resolves to a real profile. Pendle reached production
13162
13352
  * before this map existed and inherited savings-vault prose ("check the
13163
13353
  * cooldown") that is wrong in every clause — a `Record<VaultProvider, …>` is
13164
13354
  * what makes that impossible to repeat.
13165
13355
  */
13166
- declare const VAULT_PROVIDER_PROFILE: Record<VaultProvider, string>;
13356
+ declare const VAULT_PROVIDER_PROFILE: Record<TermSheetVaultProvider, string>;
13167
13357
  /**
13168
13358
  * Profile for a vault row.
13169
13359
  *
@@ -13174,7 +13364,7 @@ declare const VAULT_PROVIDER_PROFILE: Record<VaultProvider, string>;
13174
13364
  * price accrues" prose on a first-loss tranche is the single most misleading
13175
13365
  * thing this surface could do.
13176
13366
  */
13177
- declare function resolveVaultProfileId(provider: VaultProvider, solvency?: CounterpartyTerms['solvency']): string;
13367
+ declare function resolveVaultProfileId(provider: TermSheetVaultProvider, solvency?: CounterpartyTerms['solvency']): string;
13178
13368
 
13179
13369
  /**
13180
13370
  * `earnUid` — the primary key of the unified earn surface.
@@ -13661,8 +13851,15 @@ interface EarnAmount {
13661
13851
  * between two rows in one list. See `vaults/DATABASE_INTEGRATION.md` §1.
13662
13852
  */
13663
13853
  interface EarnRate {
13664
- /** The headline: base + rewards + intrinsic. */
13665
- total: number;
13854
+ /**
13855
+ * The headline: base + rewards + intrinsic.
13856
+ *
13857
+ * ABSENT when the rate could not be read (the source sent no rate, or
13858
+ * flagged it `rateSource: 'unavailable'` / `'exchange-rate-only'`) — never
13859
+ * a placeholder 0, which would rank and render as a measured 0 %. Sorts
13860
+ * place an absent rate last.
13861
+ */
13862
+ total?: number;
13666
13863
  /** Protocol interest / share-price accrual. */
13667
13864
  base?: number;
13668
13865
  /** Incentive programs (Merkl et al). */
@@ -13895,13 +14092,18 @@ type EarnActionKind = 'deposit' | 'withdraw'
13895
14092
  * union would demand inputs the chosen path never reads.
13896
14093
  */
13897
14094
  interface EarnActionInput {
13898
- /** `'native'` or a lowercased ERC-20 address the mint accepts. */
14095
+ /**
14096
+ * `'native'` or the token the entry accepts: a lowercased ERC-20 address on
14097
+ * EVM, a base58 mint VERBATIM on Solana (case-significant — never lowered).
14098
+ */
13899
14099
  asset: string;
13900
14100
  symbol?: string;
13901
14101
  /**
13902
14102
  * Build shape: `direct` · `wrap` (wrap a base LST already held) ·
13903
14103
  * `submit-wrap` (native → base → wrapped, two legs) ·
13904
- * `psm-then-deposit` (swap through a PSM first).
14104
+ * `psm-then-deposit` (swap through a PSM first) ·
14105
+ * `mint-then-deposit` (Solana Hastra: USDC minted 1:1 into wYLDS first) ·
14106
+ * `stake-then-deposit` (Solana ezSOL: SOL staked into JitoSOL first).
13905
14107
  */
13906
14108
  mode?: string;
13907
14109
  /** Option keys this path REQUIRES. Absent ⇒ none. */
@@ -13915,6 +14117,10 @@ interface EarnCapability {
13915
14117
  * Params required BEYOND the universal set (`earnUid`, `operator`,
13916
14118
  * `receiver`, `amount`). E.g. `['validator']`, `['debt','minShares']`,
13917
14119
  * `['tokenId']`.
14120
+ *
14121
+ * `'isShares'` marks a leg sized in SHARES only (every Solana queued exit,
14122
+ * and the kvault / JLP / Hastra / INF withdraw): send `isShares=true` with
14123
+ * `amount` in shares, or `isAll=true`. An amount in assets is refused.
13918
14124
  */
13919
14125
  requires?: string[];
13920
14126
  /** Deposit only — may the user pay an asset other than `asset.address`? */
@@ -14167,7 +14373,7 @@ interface EarnSourceStatus {
14167
14373
  * gets a sheet that says so through `coverage`.
14168
14374
  */
14169
14375
  interface VaultTermInput {
14170
- provider: VaultProvider;
14376
+ provider: TermSheetVaultProvider;
14171
14377
  chainId: string;
14172
14378
  /** Share-token address, lowercased. The vault's identity. */
14173
14379
  address: string;
@@ -14349,9 +14555,12 @@ declare function buildVaultTermSheet(input: VaultTermInput, opts?: BuildVaultTer
14349
14555
  * side". Sixteen providers × seven answers fits in one screen and stays
14350
14556
  * auditable; sixteen adapter files would not.
14351
14557
  *
14352
- * `Record<VaultProvider, …>` is deliberate: a new provider is a COMPILE ERROR
14353
- * here, which is the mechanism the plan's §6 enforcement was supposed to
14354
- * provide and never did.
14558
+ * `Record<TermSheetVaultProvider, …>` is deliberate: a new provider — EVM or
14559
+ * Solana — is a COMPILE ERROR here, which is the mechanism the plan's §6
14560
+ * enforcement was supposed to provide and never did. The Solana providers
14561
+ * (`SVM_VAULT_PROVIDERS`) were outside it until 2026-10-14 and every one of
14562
+ * them was served the conservative `FALLBACK_TRAITS` — an Exponent PT
14563
+ * included, with savings-vault terms (SOLANA_API_AUDIT.md E1).
14355
14564
  */
14356
14565
  interface VaultProviderTraits {
14357
14566
  /**
@@ -14434,7 +14643,7 @@ interface VaultProviderTraits {
14434
14643
  /** Is the principal at risk in the ordinary course (a trading book)? */
14435
14644
  volatilePrincipal?: boolean;
14436
14645
  }
14437
- declare const VAULT_PROVIDER_TRAITS: Record<VaultProvider, VaultProviderTraits>;
14646
+ declare const VAULT_PROVIDER_TRAITS: Record<TermSheetVaultProvider, VaultProviderTraits>;
14438
14647
  declare function vaultTraits(provider: string): VaultProviderTraits | undefined;
14439
14648
 
14440
14649
  /**
@@ -15553,44 +15762,81 @@ declare function isBoundNeed(need: string): boolean;
15553
15762
  * is the route's branch list stated as data, so the listing advertises a verb
15554
15763
  * only where `handleSvmEarnAction` has a builder for it.
15555
15764
  *
15765
+ * **One key per builder, resolved the same way on both sides.** A savings /
15766
+ * lst row is keyed by its SHARE MINT ({@link SVM_EARN_MINT_BUILDERS}), never
15767
+ * by its brand alone: the route dispatches by mint, so a listing keyed by
15768
+ * brand advertised every new mint under a known brand and the route 400'd it
15769
+ * (SOLANA_API_AUDIT.md E10). Only a brand whose builder resolves ANY mint
15770
+ * from the venue's own roster at build time (Nest) is keyed by brand.
15771
+ *
15556
15772
  * **Change it in the same commit as the route** (worker-api
15557
- * `action/wrappers/svm/earn.ts`). worker-api's `earn.buildable.test.ts`
15558
- * walks this table against the route and fails on a verb either side has
15559
- * that the other lacks.
15773
+ * `action/wrappers/svm/earn.ts`, which dispatches on
15774
+ * {@link svmEarnBuilderKey}). worker-api's `earn.buildable.test.ts` walks
15775
+ * this table against the route and fails on a verb, a pay / receive flag or
15776
+ * a share-only exit either side has that the other lacks; margin-fetcher-sol's
15777
+ * `earnBuildable.test.ts` pins every mint here to that package's constants.
15560
15778
  */
15561
15779
  interface SvmEarnBuilder {
15562
15780
  verbs: readonly EarnActionKind[];
15563
15781
  /** Deposit — a `payAsset` other than the row's asset is converted. */
15564
15782
  payAsset?: boolean;
15783
+ /**
15784
+ * Deposit — the assets a deposit takes, when the venue takes a FIXED set
15785
+ * (JLP custodies, Hastra wYLDS / USDC, ezSOL wSOL / SOL / JitoSOL). Base58
15786
+ * verbatim, `'native'` for SOL. Absent with `payAsset` ⇒ any mint, through
15787
+ * a Jupiter conversion leg.
15788
+ */
15789
+ depositInputs?: readonly EarnActionInput[];
15565
15790
  /** Withdraw — a `receiveAsset` other than the row's asset is converted. */
15566
15791
  receiveAsset?: boolean;
15567
15792
  /** Deposit — `payAsset=native` (SOL) works on a wSOL row. */
15568
15793
  nativeDeposit?: boolean;
15569
15794
  /** Withdraw — `receiveAsset=native` pays SOL. */
15570
15795
  nativeWithdraw?: boolean;
15571
- /** Per-verb params beyond the universal set. */
15796
+ /**
15797
+ * Per-verb params beyond the universal set. `isShares` means the leg is
15798
+ * sized in SHARES only: send `isShares=true` with `amount` in shares, or
15799
+ * `isAll=true` — an amount in assets is refused.
15800
+ */
15572
15801
  requires?: Partial<Record<EarnActionKind, string[]>>;
15573
15802
  }
15574
15803
  type SvmEarnBuildability = {
15575
15804
  ok: true;
15805
+ key: string;
15576
15806
  builder: SvmEarnBuilder;
15577
15807
  } | {
15578
15808
  ok: false;
15579
15809
  reason: string;
15580
15810
  };
15581
- /** Vault providers, and `savings` / `lst` by brand (one provider, one builder per brand). */
15811
+ /** Vault providers, and `savings` / `lst` by builder key (one builder per issuer). */
15582
15812
  declare const SVM_EARN_VAULT_BUILDERS: {
15583
15813
  readonly [key: string]: SvmEarnBuilder;
15584
15814
  };
15815
+ /**
15816
+ * The fixed-mint savings / lst builders, by SHARE MINT — the route's
15817
+ * dispatch table. A mint absent here is not buildable, whatever its brand.
15818
+ */
15819
+ declare const SVM_EARN_MINT_BUILDERS: {
15820
+ readonly [mint: string]: string;
15821
+ };
15822
+ /**
15823
+ * The builder key of a Solana vault row: the provider for a provider-wide
15824
+ * builder (`jupiter-lend`, `kamino-kvault`), the share mint's entry for
15825
+ * `savings` / `lst`, else `<provider>:<brand>` for a roster brand. Undefined
15826
+ * ⇒ no builder. The ROUTE calls it with no brand (its Nest branch resolves the
15827
+ * roster itself), the LISTING with the row's brand.
15828
+ */
15829
+ declare function svmEarnBuilderKey(venue: string, ref?: string, brand?: string): string | undefined;
15585
15830
  /**
15586
15831
  * Can the action route build this Solana row, and which verbs?
15587
15832
  *
15588
- * `venue` is the row's venue (`KAMINO_<market>`, `vault.<provider>`);
15589
- * `brand` disambiguates `vault.savings`, whose builders are per issuer.
15590
- * Unknown is NOT buildable: under-advertising costs a button, over-
15591
- * advertising ships one that 400s.
15833
+ * `venue` is the row's venue (`KAMINO_<market>`, `vault.<provider>`); `ref`
15834
+ * the row's share mint (the earnUid ref) and `brand` its issuer, which
15835
+ * together resolve a `vault.savings` / `vault.lst` row's builder. Unknown is
15836
+ * NOT buildable: under-advertising costs a button, over-advertising ships
15837
+ * one that 400s.
15592
15838
  */
15593
- declare function svmEarnBuildability(venue: string, brand?: string): SvmEarnBuildability;
15839
+ declare function svmEarnBuildability(venue: string, brand?: string, ref?: string): SvmEarnBuildability;
15594
15840
 
15595
15841
  /**
15596
15842
  * `EarnPosition` — one row of a user's supply-side portfolio, from either half
@@ -15950,4 +16196,4 @@ declare const fetchFluidDexState: (chainId: string, multicallRetry: MulticallRet
15950
16196
  /** Synchronous read of whatever `fetchFluidDexState` last cached for a chain. */
15951
16197
  declare const getCachedFluidDexState: (chainId: string) => FluidDexStateMap | undefined;
15952
16198
 
15953
- export { type AaveMetadata, type AaveV2Public, type AaveV2UserReserveResponse, type AaveV3Public, type AaveV3UserReserveResponse, type AdditionalYields, type AdminKind, ApiBookSource, type AprData, type AprPercent, type AssetInstrumentTerms, type AssetIssuerAttribution, type AssetQuality, type AssetRiskIndex, type AuctionWindow, type AvailabilityTerms, type BalanceData, type BaseLendingPosition, type BasicReserveResponse, 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 ConvertLenderUserDataOptions, type CoolerDripRaw, type CoolerMarketsRaw, type CoolerPositionInfo, type CoreValidators, type CounterpartyTerms, type CoverageInfo, type CreditDesk, 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, type EarnActionInput, type EarnActionKind, type EarnAmount, type EarnAppliedDefaults, type EarnAprBreakdown, type EarnAsset, type EarnAvailability, type EarnBasket, type EarnBasketLeg, type EarnCapability, 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, FLYING_TULIP_LENDER_KEY, FRACTION_RATE_PROVIDERS, 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 FluidDexShareState, type FluidDexStateMap, type FluidFToken, type FluidFTokens, type FlyingTulipAssetRaw, type FlyingTulipMarketsRaw, type FrankencoinMarketRaw, type FrankencoinMarketsRaw, type FrankencoinPositionInfo, type FraxlendPairRaw, type FraxlendPairsRaw, type FullLenderRewardsMap, GMX_API_HOSTS, GMX_READ_CONTRACTS, GMX_SUPPORTED_CHAINS, type GenericCurrency, type GenericTokenList, type GetVaultPublicDataAllOptions, type GmxExecutionFees, type GmxPendingDeposit, type GmxPendingWithdrawal, type GmxReadContracts, type GmxUserBalance, type GmxUserPositions, type GmxUserPositionsOptions, type GmxVault, type GmxVaultKind, type GmxVaults, type GmxVaultsFetchOptions, type GovernancePower, type GovernanceRow, type GovernanceTerms, type GroupAccumulator, HYPERCORE_VAULT_REGISTRY, type HypercoreLockStatus, type HypercoreUserPositionsOptions, type HypercoreVault, type HypercoreVaultPosition, type HypercoreVaultRegistryEntry, type HypercoreVaults, type HypercoreVaultsFetchOptions, IDLE_MARKET_ID, INTERFACE_IDS, type IncompleteLenderRead, type IncompleteReason, type InitMetadata, type InitPublic, type InitUserReserveResponse, type InterfaceKind, type InvariantViolation, type InverseMarketRaw, type InverseMarketsRaw, type InversePositionInfo, 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 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 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, 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 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_VAULT_BUILDERS, 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, 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 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 YieldProfile, __resetResupplyUserCaches, accountDepositListKey, accountWithdrawalListKey, appendSnapshot, applyEarnSanity, applyPositionDelta, attachImplications, attachPricesToFlashLiquidity, blockNumberFromTag, borrowDescription, borrowFindings, borrowHeadline, 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, convertCoolerMarketsToResponse, convertDssMarketsToResponse, convertExactlyMarketsToResponse, convertFlyingTulipMarketsToResponse, convertFrankencoinMarketsToResponse, convertFraxlendPairsToResponse, convertInverseMarketsToResponse, convertLenderUserDataResult, convertLiquityMarketsToResponse, convertLlamaLendMarketsToResponse, convertResupplyMarketsToResponse, convertRiverMarketsToResponse, convertTellerMarketsToResponse, convertTermMarketsToResponse, convertTermMaxMarketsToResponse, convertUsddMarketsToResponse, createMarketUid, createMidnightBookSource, createMultiAccountTypeUserState, createMulticallRpcCall, createRawRpcCalls, createTermBookSource, createTermMaxDataSource, decodeListaMarkets, decodeMarkets, decodePackedListaUserDataset, decodePackedMorphoUserDataset, deriveBorrowTags, deriveSupplyTags, detectInterfaceKinds, dexResolverFor, disambiguateEarnNames, 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, fetchCoolerMarkets, fetchDolomiteAccountNumbers, fetchDolomiteSubAccounts, fetchDssMarkets, fetchEulerEarnVaults, fetchEulerEarnVaultsFromSubgraph, fetchEulerSubAccountIndexes, fetchExactlyMarkets, fetchFlashLiquidityForChain, fetchFluidDexState, fetchFluidFTokens, fetchFlyingTulipMarkets, fetchFrankencoinMarkets, fetchFraxlendPairs, fetchGeneralYields, fetchGeneralYieldsByMarketUid, fetchGmxExecutionFees, fetchGmxTickerPrices, fetchGmxVaults, fetchHypercoreVaults, fetchInverseMarkets, fetchLagoonApiVaults, fetchLagoonVaults, fetchLiquityMarkets, fetchListaVaultsFromChain, fetchLlamaLendMarkets, fetchMorphoUserBalances, fetchMorphoUserPositionMarkets, fetchMorphoVaults, fetchMorphoVaultsFromApi, fetchMorphoVaultsFromChain, fetchOraclePrices, fetchPendleApiAssets, fetchPendleApiMarkets, fetchPendlePrices, fetchPendlePtMarkets, fetchResupplyMarkets, fetchRiverMarkets, fetchSiloVaults, fetchSpectraApiMarkets, fetchSpectraPtMarkets, fetchTellerMarkets, fetchTermMarkets, fetchTermMaxMarkets, fetchTermStoreOrders, fetchTokenBalances, fetchTokenMetadata, fetchUpshiftApiVaults, fetchUpshiftVaults, fetchUsddMarkets, fetchUsualRewardsClaimData, fetchYearnApiVaults, fetchYearnVaults, fillableRemaining, filterActiveLenders, filterLenderMeta, filterLendersByProtocol, finalizeInfo, findingsFor, formatRaw, frankencoinKeyParts, frankencoinLenderKey, fraxlendAssetPerCollateral, fraxlendKeyParts, fraxlendLenderKey, 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, 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, isIlliquid, isLenderVenueKey, isLendingPosition, isLiveMarket as isLivePendleMarket, isLiveSpectraMarket, isMaturedTerm, isSecondaryMarketOnly, isStablecoinSymbol, 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, pruneFeedStats, 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, stampVaultClassification, stampVaultTermSheets, stripLeadingBrand, subAccountsOf, supplyDescription, supplyFindings, supplyHeadline, svmEarnBuildability, swapRoutedProvidersArePriceConsistent, 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, withMaturityLabel, withTrancheLabel };
16199
+ export { type AaveMetadata, type AaveV2Public, type AaveV2UserReserveResponse, type AaveV3Public, type AaveV3UserReserveResponse, type AdditionalYields, type AdminKind, ApiBookSource, type AprData, type AprPercent, type AssetInstrumentTerms, type AssetIssuerAttribution, type AssetQuality, type AssetRiskIndex, type AuctionWindow, type AvailabilityTerms, type BalanceData, type BaseLendingPosition, type BasicReserveResponse, 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 ConvertLenderUserDataOptions, type CoolerDripRaw, type CoolerMarketsRaw, type CoolerPositionInfo, type CoreValidators, type CounterpartyTerms, type CoverageInfo, type CreditDesk, 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, type EarnActionInput, type EarnActionKind, type EarnAmount, type EarnAppliedDefaults, type EarnAprBreakdown, type EarnAsset, type EarnAvailability, type EarnBasket, type EarnBasketLeg, type EarnCapability, 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, FLYING_TULIP_LENDER_KEY, FRACTION_RATE_PROVIDERS, 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 FluidDexShareState, type FluidDexStateMap, type FluidFToken, type FluidFTokens, type FlyingTulipAssetRaw, type FlyingTulipMarketsRaw, type FrankencoinMarketRaw, type FrankencoinMarketsRaw, type FrankencoinPositionInfo, type FraxlendPairRaw, type FraxlendPairsRaw, type FullLenderRewardsMap, GMX_API_HOSTS, GMX_READ_CONTRACTS, GMX_SUPPORTED_CHAINS, type GenericCurrency, type GenericTokenList, type GetVaultPublicDataAllOptions, type GmxExecutionFees, type GmxPendingDeposit, type GmxPendingWithdrawal, type GmxReadContracts, type GmxUserBalance, type GmxUserPositions, type GmxUserPositionsOptions, type GmxVault, type GmxVaultKind, type GmxVaults, type GmxVaultsFetchOptions, type GovernancePower, type GovernanceRow, type GovernanceTerms, type GroupAccumulator, HYPERCORE_VAULT_REGISTRY, type HypercoreLockStatus, type HypercoreUserPositionsOptions, type HypercoreVault, type HypercoreVaultPosition, type HypercoreVaultRegistryEntry, type HypercoreVaults, type HypercoreVaultsFetchOptions, IDLE_MARKET_ID, INTERFACE_IDS, type IncompleteLenderRead, type IncompleteReason, type InitMetadata, type InitPublic, type InitUserReserveResponse, type InterfaceKind, type InvariantViolation, type InverseMarketRaw, type InverseMarketsRaw, type InversePositionInfo, 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 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 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 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, 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 YieldProfile, __resetResupplyUserCaches, accountDepositListKey, accountWithdrawalListKey, appendSnapshot, applyEarnSanity, applyPositionDelta, attachImplications, attachPricesToFlashLiquidity, blockNumberFromTag, borrowDescription, borrowFindings, borrowHeadline, 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, convertCoolerMarketsToResponse, convertDssMarketsToResponse, convertExactlyMarketsToResponse, 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, detectInterfaceKinds, dexResolverFor, disambiguateEarnNames, 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, fetchCoolerMarkets, fetchDolomiteAccountNumbers, fetchDolomiteSubAccounts, fetchDssMarkets, fetchEulerEarnVaults, fetchEulerEarnVaultsFromSubgraph, fetchEulerSubAccountIndexes, fetchExactlyMarkets, fetchFlashLiquidityForChain, fetchFluidDexState, fetchFluidFTokens, fetchFlyingTulipMarkets, fetchFrankencoinMarkets, fetchFraxlendPairs, fetchGeneralYields, fetchGeneralYieldsByMarketUid, fetchGmxExecutionFees, fetchGmxTickerPrices, fetchGmxVaults, fetchHypercoreVaults, fetchInverseMarkets, fetchLagoonApiVaults, fetchLagoonVaults, fetchLiquityMarkets, fetchListaVaultsFromChain, fetchLlamaLendMarkets, fetchMorphoUserBalances, fetchMorphoUserPositionMarkets, fetchMorphoVaults, fetchMorphoVaultsFromApi, fetchMorphoVaultsFromChain, fetchOraclePrices, fetchPendleApiAssets, fetchPendleApiMarkets, fetchPendlePrices, fetchPendlePtMarkets, fetchResupplyMarkets, fetchRipeMarkets, fetchRiverMarkets, fetchSiloVaults, fetchSpectraApiMarkets, fetchSpectraPtMarkets, fetchTellerMarkets, fetchTermMarkets, fetchTermMaxMarkets, fetchTermStoreOrders, fetchTokenBalances, fetchTokenMetadata, fetchUpshiftApiVaults, fetchUpshiftVaults, fetchUsddMarkets, fetchUsualRewardsClaimData, fetchYearnApiVaults, fetchYearnVaults, fillableRemaining, filterActiveLenders, filterLenderMeta, filterLendersByProtocol, finalizeInfo, findingsFor, formatRaw, frankencoinKeyParts, frankencoinLenderKey, fraxlendAssetPerCollateral, fraxlendKeyParts, fraxlendLenderKey, 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, 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, isIlliquid, isLenderVenueKey, isLendingPosition, isLiveMarket as isLivePendleMarket, isLiveSpectraMarket, isMaturedTerm, isSecondaryMarketOnly, isStablecoinSymbol, 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, pruneFeedStats, 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, stampVaultClassification, stampVaultTermSheets, stripLeadingBrand, subAccountsOf, supplyDescription, supplyFindings, supplyHeadline, svmEarnBuildability, svmEarnBuilderKey, swapRoutedProvidersArePriceConsistent, 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, withMaturityLabel, withTrancheLabel };