@1delta/margin-fetcher 0.0.409 → 0.0.410

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
@@ -3,7 +3,7 @@ import { Lender } from '@1delta/lender-registry';
3
3
  export { isAaveType, isAaveV2Type, isAaveV32Type, isAaveV3Type, isCompoundV3, isCompoundV3Type, isInit, isMorphoType, isMultiMarket, isYLDR } from '@1delta/lender-registry';
4
4
  import { DebitData, LenderDebitData, LstAcceptedInput } from '@1delta/calldata-sdk';
5
5
  import { RelayProxyConfig } from '@1delta/proxy-fetch';
6
- import { TermMarketConfig, LiquityBranchConfig, LiquityConfigChain, RiverMarketConfig, RiverConfigChain, RiverChainData, InverseMarketConfig, InverseConfigChain, InverseChainData, TellerPoolConfig, MorphoTypeVaultEntry } from '@1delta/data-sdk';
6
+ import { TermMarketConfig, LiquityBranchConfig, LiquityConfigChain, RiverMarketConfig, RiverConfigChain, RiverChainData, InverseMarketConfig, InverseConfigChain, InverseChainData, UsddMarketConfig, UsddConfigChain, UsddChainData, TellerPoolConfig, MorphoTypeVaultEntry } from '@1delta/data-sdk';
7
7
  export { MorphoLensAbi } from '@1delta/abis';
8
8
 
9
9
  interface GenericCurrency {
@@ -1653,7 +1653,7 @@ interface MorphoGeneralPublicResponse {
1653
1653
  * - `'zeroInterest'` — NO ongoing rate at all (River/Satoshi). The borrow
1654
1654
  * cost is the one-off `originationFee`, not an APR.
1655
1655
  */
1656
- rateModel?: 'variable' | 'userSet' | 'fixedTerm' | 'zeroInterest';
1656
+ rateModel?: 'variable' | 'userSet' | 'fixedTerm' | 'zeroInterest' | 'dbr' | 'protocolSet';
1657
1657
  /**
1658
1658
  * One-off fee charged ONCE at borrow time, as a PERCENT of the amount
1659
1659
  * borrowed (e.g. `0.5` = 0.5%). Front-loaded cost that is NOT an APR and
@@ -2566,7 +2566,15 @@ declare function exactlyPenaltyRateToAprPercent(penaltyRatePerSecond: bigint | u
2566
2566
  */
2567
2567
  declare function exactlyPairLtv(collateralAdjustFactor: bigint | undefined, borrowAdjustFactor: bigint | undefined): number;
2568
2568
 
2569
- /** Per-position fixed-term detail attached to the position row (strings raw). */
2569
+ /**
2570
+ * Per-position fixed-term detail attached to the position row (raw strings).
2571
+ *
2572
+ * Carries the FULL exit economics so a repay/withdraw UI needs no second read:
2573
+ * `faceValue` is what is owed/paid at maturity, `previewValue` is what the exit
2574
+ * actually costs/pays RIGHT NOW, and exactly one of `earlyRepayDiscount` /
2575
+ * `earlyExitCost` / `latePenalty` explains the gap. See the "repay terms"
2576
+ * section of the Exactly README for the source-verified formulas.
2577
+ */
2570
2578
  interface ExactlyUserFixedPosition {
2571
2579
  /** unix maturity */
2572
2580
  maturity: number;
@@ -2576,12 +2584,32 @@ interface ExactlyUserFixedPosition {
2576
2584
  principal: string;
2577
2585
  /** face fee locked at trade time (raw asset units) */
2578
2586
  fee: string;
2587
+ /** face value at maturity = principal + fee. Static — Exactly fixed debt does
2588
+ * NOT accrue an index; it only grows via the late penalty below. */
2589
+ faceValue: string;
2579
2590
  /** live exit value now: withdraw-now / repay-now incl. discount or overdue
2580
2591
  * penalty (raw asset units) — from the Previewer */
2581
2592
  previewValue: string;
2582
2593
  /** true once maturity passed and the position is still open (borrows accrue
2583
2594
  * the per-second late penalty until repaid) */
2584
2595
  overdue: boolean;
2596
+ /** seconds past maturity (0 until overdue) */
2597
+ secondsLate: number;
2598
+ /** BORROW before maturity: face − repay-now, the REBATE for repaying early
2599
+ * (Exactly never charges an early-repay fee). Absent otherwise. */
2600
+ earlyRepayDiscount?: string;
2601
+ /** DEPOSIT before maturity: face − payout-now, the HAIRCUT for exiting a
2602
+ * fixed deposit early (sold back at the current curve rate). Absent
2603
+ * otherwise. */
2604
+ earlyExitCost?: string;
2605
+ /** BORROW past maturity: repay-now − face, penalty accrued SO FAR. Absent
2606
+ * otherwise. */
2607
+ latePenalty?: string;
2608
+ /** BORROW: penalty this position accrues per further day overdue (raw units,
2609
+ * linear on face — not compounding). Present for borrows only. */
2610
+ latePenaltyPerDay: string;
2611
+ /** market's linear late-penalty rate as an annualized percent (e.g. 164.24) */
2612
+ latePenaltyApr: number;
2585
2613
  }
2586
2614
 
2587
2615
  /**
@@ -2927,6 +2955,108 @@ interface InversePositionInfo {
2927
2955
  dbrSignedBalance: string;
2928
2956
  }
2929
2957
 
2958
+ /**
2959
+ * One USDD market (= one collateral ilk) after the on-chain batch.
2960
+ * Raw bigints; `null` = failed allowFailure read. Maker fixed-point:
2961
+ * wad 1e18 / ray 1e27 / rad 1e45.
2962
+ */
2963
+ interface UsddMarketRaw {
2964
+ market: UsddMarketConfig;
2965
+ /** Vat.ilks — total normalised debt (wad). */
2966
+ Art: bigint | null;
2967
+ /** Vat.ilks — debt accumulator (ray); debt = Art × rate (rad). */
2968
+ rate: bigint | null;
2969
+ /** Vat.ilks — liquidation-adjusted price (ray): price / (par × mat). */
2970
+ spot: bigint | null;
2971
+ /** Vat.ilks — ilk debt ceiling (rad). */
2972
+ line: bigint | null;
2973
+ /** Vat.ilks — per-urn debt floor (rad). */
2974
+ dust: bigint | null;
2975
+ /** Jug.ilks — per-second stability fee (ray). */
2976
+ duty: bigint | null;
2977
+ /** Spot.ilks — liquidation ratio (ray). */
2978
+ mat: bigint | null;
2979
+ /** gem.balanceOf(gemJoin) — total collateral custodied by the adapter
2980
+ * (locked ink + unswept gem), gem-native decimals. */
2981
+ joinBalance: bigint | null;
2982
+ }
2983
+ interface UsddMarketsRaw {
2984
+ lender: string;
2985
+ config?: UsddConfigChain;
2986
+ chainData?: UsddChainData;
2987
+ markets: UsddMarketRaw[];
2988
+ }
2989
+
2990
+ /** Ilk string → bytes32 (`'WBTC-A'` → right-padded hex). */
2991
+ declare const usddIlkBytes32: (ilk: string) => `0x${string}`;
2992
+ /**
2993
+ * Fetch all market data of ONE USDD (Maker-fork) deployment — FULLY ON-CHAIN
2994
+ * via one retrying multicall. The ilk roster comes from lender-metadata
2995
+ * (`usddConfig`/`usddMarkets`, discovered + verified by its `update:usdd`
2996
+ * generator); this fetch reads the LIVE Vat/Jug/Spot params per ilk plus the
2997
+ * gem-join balance (total custodied collateral — the Vat keeps no per-ilk
2998
+ * ink total).
2999
+ *
3000
+ * The roster is EMPTY on both EVM chains today (`cdpi() = 0`, no ilk filed —
3001
+ * see USDD_PLAN.md), so this returns zero markets without issuing a
3002
+ * multicall. The code path stays live so the day metadata fills, data flows
3003
+ * with no code change.
3004
+ */
3005
+ declare function fetchUsddMarkets(lender: string, chainId: string): Promise<UsddMarketsRaw>;
3006
+
3007
+ /**
3008
+ * Synthesized per-ilk lender key, e.g. `USDD_1_WBTC-A`. The CHAIN ID is part
3009
+ * of the key (Fluid/River convention) because Ethereum and BNB run
3010
+ * INDEPENDENT Maker stacks that could file the same ilk string.
3011
+ */
3012
+ declare function usddLenderKey(lender: string, chainId: string | number, ilk: string): string;
3013
+ /**
3014
+ * Recover `{ lender, chainId, ilk }` from a per-market key (or undefined).
3015
+ * Ilk strings are Maker `<GEM>-<CLASS>` tokens (`WBTC-A`, `PSM-USDT-A`) —
3016
+ * uppercase alphanumerics + dashes; the leading `\d+_` disambiguates from
3017
+ * the bare `USDD` key.
3018
+ */
3019
+ declare function usddKeyParts(key: string): {
3020
+ lender: string;
3021
+ chainId: string;
3022
+ ilk: string;
3023
+ } | undefined;
3024
+ /**
3025
+ * Map one USDD deployment's on-chain batch into the shared
3026
+ * `MorphoGeneralPublicResponse` shape, keyed `USDD_<chainId>_<ILK>` — one key
3027
+ * per collateral ilk.
3028
+ *
3029
+ * Per market:
3030
+ * - COLLATERAL entry: totals = the gem-join balance (the Vat keeps no
3031
+ * per-ilk ink total; the adapter custodies locked + unswept gems);
3032
+ * LTV = 1/mat; liquidation penalty = chop − 1 (Dog.chop, wad).
3033
+ * - LOAN entry (USDD): `totalDebt` = Art × rate (rad → human);
3034
+ * `variableBorrowRate` = the stability fee as a nominal APR percent —
3035
+ * `(duty − RAY)/RAY × YEAR_SECONDS × 100`, the same annualisation as the
3036
+ * Pot's dsr in the savings fetcher (never `^ seconds − 1`, which is the
3037
+ * APY); `borrowLiquidity` = ceiling headroom `(line − Art × rate)/1e45`.
3038
+ * There is NO protocol supply side (USDD is Vat-minted) — the earn side
3039
+ * is sUSDD, carried by the savings provider, so `totalDeposits` on the
3040
+ * loan row is 0 and `depositRate` 0 here.
3041
+ * - Collateral price: Vat.spot × mat (both ray) recovers the par-adjusted
3042
+ * OSM price without reading the pip (whitelisted `peek` would revert);
3043
+ * shared price map as fallback.
3044
+ */
3045
+ declare function convertUsddMarketsToResponse(raw: UsddMarketsRaw, chainId: string, prices?: {
3046
+ [asset: string]: number;
3047
+ }, _additionalYields?: AdditionalYields, tokens?: GenericTokenList): {
3048
+ [m: string]: MorphoGeneralPublicResponse;
3049
+ };
3050
+
3051
+ /** Per-CDP position detail attached to the debt row (raw strings). */
3052
+ interface UsddPositionInfo {
3053
+ /** DssCdpManager id — the sub-account id and every write op's target. */
3054
+ cdpId: string;
3055
+ /** Urn handle in the Vat. */
3056
+ urn: string;
3057
+ ilk: string;
3058
+ }
3059
+
2930
3060
  /**
2931
3061
  * Raw on-chain read for ONE Teller `LenderCommitmentGroup` pool. All amounts are
2932
3062
  * raw token base units; `minRateBps` is the pool's min borrow APR in BASIS
@@ -5018,11 +5148,41 @@ interface LstWithdrawalRequest {
5018
5148
  * ERC-7540 requestId, …). Encoded as a string for cross-protocol
5019
5149
  * uniformity. */
5020
5150
  requestId: string;
5021
- /** Raw underlying amount the request will return on claim. Wei-like
5022
- * integer string. Some protocols only know this at claim time
5023
- * (queue-finalization with floating finalization rate) — those
5024
- * surface the **expected** amount at request time. */
5151
+ /** Raw amount the request will return on claim, in the token that
5152
+ * escrow actually pays out. Wei-like integer string. Some protocols
5153
+ * only know this at claim time (queue-finalization with a floating
5154
+ * finalization rate) — those surface the **expected** amount at
5155
+ * request time.
5156
+ *
5157
+ * Strata is the one entry where the denomination is not simply the
5158
+ * vault's underlying, and it is easy to get wrong: the escrow is
5159
+ * **keyed** by the collateral token (`finalize(sUSDe, user)`) but the
5160
+ * amount it records is whatever that leg settles in — the tranche's
5161
+ * `asset()` (USDe) on the UnstakeCooldown, which books Ethena's
5162
+ * unstake output, and collateral-token shares on the ERC20Cooldown.
5163
+ * We do not normalize between them; read `withdrawQueue` to tell the
5164
+ * legs apart. Fork-verified for the UnstakeCooldown leg 2026-08-04
5165
+ * (10,000 USDe in → 9,997.5 USDe out at a 2.49 bps exit fee, with
5166
+ * zero sUSDe paid); the ERC20Cooldown denomination is read off the
5167
+ * strategy source, which escrows `sUSDe.previewWithdraw(baseAssets)`
5168
+ * shares. */
5025
5169
  amountUnderlying: string;
5170
+ /** Raw share amount of the request, for protocols whose claim call
5171
+ * takes shares (ERC-7540 `redeem`, sUSD3's plain 4626 `redeem`).
5172
+ * Passed back verbatim into the claim builder. */
5173
+ shares?: string;
5174
+ /** The escrow contract this request actually lives on, when the
5175
+ * protocol runs more than one and the registry's default is not
5176
+ * necessarily the right claim target. Strata gives each market both
5177
+ * an `UnstakeCooldown` (base-asset leg) and an `ERC20Cooldown`
5178
+ * (collateral-token leg) — a claim built against the wrong one is a
5179
+ * no-op — so the reader reports which. Passed back verbatim into
5180
+ * the claim builder. */
5181
+ withdrawQueue?: string;
5182
+ /** The token the escrow books this request under, when the claim
5183
+ * call takes it as an argument (Strata's
5184
+ * `finalize(claimToken, user)`). Passed back verbatim. */
5185
+ claimToken?: string;
5026
5186
  /** Status discriminator. */
5027
5187
  status: LstWithdrawalStatus;
5028
5188
  /** Unix seconds when the request becomes claimable. Set for
@@ -5059,7 +5219,7 @@ type LstWithdrawalStatus =
5059
5219
  | 'expired';
5060
5220
  /** Withdrawal-reader implementation kind — drives which enumeration
5061
5221
  * function the user is queried against. */
5062
- type LstWithdrawalReaderKind = 'lidoQueue' | 'etherfiNft' | 'yieldNestNft' | 'staderEthxQueue' | 'staderMaticXQueue' | 'renzoQueue' | 'kelpQueue' | 'benqiSavaxQueue' | 'beetsStSQueue' | 'hyperbeatBeHype7540' | 'erc7540' | 'ethenaCooldown' | 'swellNft' | 'stakeWiseSubgraph' | 'mantleCallerSuppliedIds' | 'pufferCallerSuppliedIds' | 'trufinCallerSuppliedIds' | 'lairCallerSuppliedIds' | 'stceloAccountQueue' | 'kinetiqQueue' | 'beHypeQueue' | 'valantisBurnQueue' | 'listaQueue' | 'iberaQueue' | 'primeStakingQueue' | 'berapawRedeemQueue' | 'stellaUnbondQueue' | 'eventsOnly' | 'noQueue' | 'unverified';
5222
+ type LstWithdrawalReaderKind = 'lidoQueue' | 'etherfiNft' | 'yieldNestNft' | 'staderEthxQueue' | 'staderMaticXQueue' | 'renzoQueue' | 'kelpQueue' | 'benqiSavaxQueue' | 'beetsStSQueue' | 'hyperbeatBeHype7540' | 'erc7540' | 'ethenaCooldown' | 'susd3Cooldown' | 'strataCooldown' | 'swellNft' | 'stakeWiseSubgraph' | 'mantleCallerSuppliedIds' | 'pufferCallerSuppliedIds' | 'trufinCallerSuppliedIds' | 'lairCallerSuppliedIds' | 'stceloAccountQueue' | 'kinetiqQueue' | 'beHypeQueue' | 'valantisBurnQueue' | 'listaQueue' | 'iberaQueue' | 'primeStakingQueue' | 'berapawRedeemQueue' | 'stellaUnbondQueue' | 'eventsOnly' | 'noQueue' | 'unverified';
5063
5223
  /** Map keyed by lowercased LST share-token address. The orchestrator
5064
5224
  * fetches all LSTs on a chain in parallel and returns this map
5065
5225
  * (possibly with empty arrays for LSTs the user has no requests
@@ -5105,6 +5265,17 @@ interface LstWithdrawalRegistryEntry {
5105
5265
  /** Polygon IStakeManager — only for `staderMaticXQueue`. The
5106
5266
  * finalization check requires `epoch()` + `withdrawalDelay()`. */
5107
5267
  polygonStakeManager?: string;
5268
+ /** Second escrow contract probed with the same reader — only for
5269
+ * `strataCooldown`, where a market runs both an `UnstakeCooldown`
5270
+ * (base-asset leg, in `withdrawalContract`) and an `ERC20Cooldown`
5271
+ * (collateral-token leg). Lowercased. */
5272
+ secondaryWithdrawalContract?: string;
5273
+ /** The token an escrow's requests are booked under — only for
5274
+ * `strataCooldown` (`balanceOf(escrowToken, user)` /
5275
+ * `finalize(escrowToken, user)`). The market's staked collateral
5276
+ * (sUSDe, sNUSD, mHYPER, …), NOT the tranche's `asset()`.
5277
+ * Lowercased. */
5278
+ escrowToken?: string;
5108
5279
  }
5109
5280
  /** Returns the withdrawal-registry entries for a chain, or `[]`. */
5110
5281
  declare const getLstWithdrawalRegistry: (chainId: string, extraEntries?: LstWithdrawalRegistryEntry[]) => LstWithdrawalRegistryEntry[];
@@ -7458,4 +7629,4 @@ interface FetchTokenBalancesOptions {
7458
7629
  */
7459
7630
  declare function fetchTokenBalances(chainId: string, account: string, tokens: string[], options?: FetchTokenBalancesOptions): Promise<TokenBalanceResult>;
7460
7631
 
7461
- export { type AaveMetadata, type AaveV2Public, type AaveV2UserReserveResponse, type AaveV3Public, type AaveV3UserReserveResponse, type AdditionalYields, ApiBookSource, type AprData, type BalanceData, type BaseLendingPosition, type BasicReserveResponse, type ChainDiagnostic, type ChainLinkResponse, type ChainQuery, type ChainSummary, type CompoundV2Metadata, type CompoundV3Public, type CompoundV3UserReserveResponse, type ConfigEntry, type CoreValidators, DEFAULT_MIDNIGHT_API, DEFAULT_OUTLIER_GUARD, DEFAULT_STALE_REJECT_SECONDS, DEFAULT_TERMMAX_API, type Denomination, type DepthMap, EMPTY_BALANCE, type EModeAssets, type EModeData, type EModeResult, type EulerEarnVault, type EulerEarnVaults, type EulerV2Metadata, type ExactlyFixedPool, type ExactlyFixedPosition, type ExactlyMarketAccount, type ExactlyMarketsRaw, type ExactlyUserFixedPosition, type ExtraValidationCall, type FeedObservation, type FeedStat, type FeedStatsMap, type FeedTimestampMap, type FetchListaVaultsFromChainOptions, type FetchMorphoVaultsFromChainOptions, type FetchOraclePricesOptions, type FetchTokenBalancesOptions, type FlattenPriorityConfig, type FluidFToken, type FluidFTokens, 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 GroupAccumulator, HYPERCORE_VAULT_REGISTRY, type HypercoreLockStatus, type HypercoreUserPositionsOptions, type HypercoreVault, type HypercoreVaultPosition, type HypercoreVaultRegistryEntry, type HypercoreVaults, type HypercoreVaultsFetchOptions, IDLE_MARKET_ID, INTERFACE_IDS, type InitMetadata, type InitPublic, type InitUserReserveResponse, type InterfaceKind, type InverseMarketRaw, type InverseMarketsRaw, type InversePositionInfo, LAGOON_API_URL, LAGOON_CHAIN_IDS, type LagoonApiVault, type LagoonSyncMode, type LagoonVault, type LagoonVaults, type LenderConfigData, type LenderConfigMap, type LenderCrossPoolMeta, type LenderData, type LenderDataEntry, type LenderInfo, type LenderInfoMap, type LenderPublicBase, type LenderRewardsMap, type LenderSummary, type LenderToLenderCrossPoolMeta, type LenderTotalAmounts, type LenderUserQuery, type LenderUserResponse, type LenderYieldComplete, type LenderYields$1 as LenderYields, LendingMode, type LiquityBranchRaw, type LiquityDiscoveredTrove, type LiquityDiscovery, type LiquityMarketsRaw, type LiquitySpInfo, type LiquityTroveInfo, type ListaMarketOverrides, type LoopPostTradeMetrics, type LstDelegation, type LstDelegationKind, type LstValidator, type LstWithdrawalFetchOptions, type LstWithdrawalRegistryEntry, type LstWithdrawalRequest, type LstWithdrawalRequestsByLst, type LstWithdrawalStatus, MORPHO_LENS, MaxParamThresholds, type MergedUserData, type MidnightBook, type MidnightBookLevel, type MidnightBookSource, type ModeBase, type MorphoMarketOverrides, type MorphoSubgraphProxyConfig, type MorphoUserMarketBalance, type MorphoUserReserveResponse, type MorphoVault, type MorphoVaults, type MulticallRpcBatch, type NumberMap, type OracleDiagnostics, type OraclePriceEntry, type OraclePricesResult, type OutlierGuardConfig, type ParsedBalanceData, type ParsedResponse, type ParsedUserBalance, type PermissionParams, type PoolData, type PoolWithMeta, type PortfolioSummary, type PortfolioTotals, type PostTradeMetrics, type PreparedCall, type PreparedMergedMulticallParams, type PreparedMergedRpcCalls, type PreparedTokenBalanceRpcCalls, type PreparedUserDataRpcCalls, type PriceDerivation, type PriceSelection, type ProtocolParams, type ProviderOptions, type RawRpcBatch, type RawRpcCall, type RawRpcResponse, type RiverMarketRaw, type RiverMarketsRaw, type RiverPositionInfo, STABLECOIN_SYMBOLS, STCELO_MANAGER_ADDRESS, type SelectPricesOptions, type SiloVault, type SiloVaults, type StCeloValidatorGroup, type StaleFeedEntry, type StructuredOraclePrices, type SubAccountSummary, type SumerPositionInput, type SummaryAprData, type SummaryBalanceData, TELLER_CALLS_PER_BID, TERMMAX_CALLS_PER_ACCOUNT, DECIMAL_BASE as TERMMAX_DECIMAL_BASE, TERMMAX_LIQUIDATION_PENALTY, TERMMAX_LIQUIDATION_WINDOW_SECS, TERMMAX_LIQUIDATOR_BONUS, TERMMAX_PARTIAL_CLOSE_FACTOR, TERMMAX_PARTIAL_LIQUIDATION_THRESHOLD_USD, type TellerDiscoveredBid, type TellerDiscovery, type TellerMarketsRaw, type TellerPoolRaw, type TermAuctionOrder, type TermAuctionOrders, type TermBookSource, type TermBookTop, type TermListing, type TermMarketRaw, TermMaxApiSource, type TermMaxBookTop, type TermMaxCurveSegment, type TermMaxDataSource, type TermMaxDiscovery, type TermMaxFeeConfig, type TermMaxMarketConfig, type TermMaxMarketRaw, type TermMaxOrderState, TermSubgraphSource, 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 UserApr, type UserConfig, type UserData, type UserDataResult, type UserLendingPosition, VAULT_SHARE_PRICE_PROBE, VOLATILE_VAULT_OVERRIDES, type VaultAprResult, type VaultClassification, type VaultClassificationFields, type VaultLookupEntry, type VaultMarketExposure, type VaultProvider, type VaultPublicDataAll, type VaultPublicDataResult, type VaultYieldSeries, type VaultYieldSnapshot, type YDaemonVault, YEARN_CHAIN_IDS, YEARN_YDAEMON_BASE, type YearnVault, type YearnVaultKind, type YearnVaults, type YieldProfile, accountDepositListKey, accountWithdrawalListKey, appendSnapshot, applyPositionDelta, attachPricesToFlashLiquidity, buildFluidFTokensCall, buildLiquityUserCall, buildLoopResult, buildMorphoTypeCall, buildMorphoTypeUserCallWithLens, buildPortfolioTotals, buildSumerAccumulators, buildSummaries, buildTellerUserCall, buildTermMaxUserCall, buildVaultLookup, calculateLeverage, calculateNetApr, calculateOverallNetApr, calculateWeightedAverage, classifyFreshness, classifyReliability, classifyVault, collectFeedObservations, computeBorrowDelta, computeCloseTradeDeltas, computeCollateralSwapDeltas, computeDebtSwapDeltas, computeDepositDelta, computeEModeAnalysis, computeOpenTradeDeltas, computePostTradeMetrics, computeRepayDelta, computeSumerBorrowDelta, computeSumerDepositDelta, computeSumerRepayDelta, computeSumerWaterfall, computeSumerWithdrawDelta, computeVaultApr, computeWithdrawDelta, computeZapTradeDeltas, consensusReference, convertExactlyMarketsToResponse, convertInverseMarketsToResponse, convertLenderUserDataResult, convertLiquityMarketsToResponse, convertRiverMarketsToResponse, convertTellerMarketsToResponse, convertTermMarketsToResponse, convertTermMaxMarketsToResponse, createMarketUid, createMidnightBookSource, createMulticallRpcCall, createRawRpcCalls, createTermBookSource, createTermMaxDataSource, decodeListaMarkets, decodeMarkets, decodePackedListaUserDataset, decodePackedMorphoUserDataset, detectInterfaceKinds, encodeBalanceFetcherCalldata, exactlyLenderKey, exactlyMarketFromLenderKey, exactlyPairLtv, exactlyPenaltyRateToAprPercent, exactlyWadRateToPercent, feedKeyOf, feedStatKey, fetchDolomiteAccountNumbers, fetchEulerEarnVaults, fetchEulerEarnVaultsFromSubgraph, fetchEulerSubAccountIndexes, fetchExactlyMarkets, fetchFlashLiquidityForChain, fetchFluidFTokens, fetchGeneralYields, fetchGeneralYieldsByMarketUid, fetchGmxExecutionFees, fetchGmxTickerPrices, fetchGmxVaults, fetchHypercoreVaults, fetchInverseMarkets, fetchLagoonApiVaults, fetchLagoonVaults, fetchLiquityMarkets, fetchListaVaultsFromChain, fetchMorphoUserBalances, fetchMorphoUserPositionMarkets, fetchMorphoVaults, fetchMorphoVaultsFromApi, fetchMorphoVaultsFromChain, fetchOraclePrices, fetchPendlePrices, fetchRiverMarkets, fetchSiloVaults, fetchTellerMarkets, fetchTermMarkets, fetchTermMaxMarkets, fetchTokenBalances, fetchTokenMetadata, fetchUpshiftApiVaults, fetchUpshiftVaults, fetchYearnApiVaults, fetchYearnVaults, filterActiveLenders, filterLendersByProtocol, fuseLenderData, generateLendingPools, getAavesForChain, getAssetConfig, getBalanceForMarketUid, getBorrowCapacity, getCachedLiquityTroves, getCachedTellerBids, getCachedTermMaxDiscovery, getCachedTermMaxMarket, getCachedTermMaxMarkets, getCoreValidators, getFluidFTokensConverter, getGmxApiHost, getGmxReadContracts, getGmxUserPositions, getHealthFactor, getHypercoreUserPositions, getHypercoreVaultRegistry, getLenderAssets, getLenderPublicData, getLenderPublicDataAll, getLenderPublicDataViaApi, getLenderUserDataMulti, getLenderUserDataResult, getLendersForChain, getLstDelegation, getLstValidators, getLstWithdrawalRegistry, getLstWithdrawalRequests, getMaxAmountClose, getMaxAmountCollateralSwap, getMaxAmountDebtSwap, getMaxAmountOpen, getMergedUserData, getMorphoTypeMarketConverter, getResolvedDolomiteAccountNumbers, getStCeloValidatorGroups, getSubAccountAddress, getSubAccountIndex, getVaultPublicDataAll, getVaultWithdrawalRequests, hasEulerEarnVaultSubgraph, hasLagoonVaults, hasMorphoPositionIndex, hasMorphoUserApi, hasMorphoUserSubgraph, hasUpshiftVaults, hasYearnVaults, inverseKeyParts, inverseLenderKey, isStablecoinSymbol, isYearnV3, keysFromMaps, lenderApiOnly, lenderFamily, liquityCandidateTroveIds, liquityKeyParts, liquityLenderKey, multicall3Abi, nanTo, needsLenderApproval, needsTokenApproval, noOpResult, normalizeToBytes, parseBalanceFetcherResult, parseMergedResult, parseMulticallRpcResponses, parseRawRpcBatchResponses, parseRawRpcResponses, parseTermMaxLtv, parseTokenBalanceResult, positivePart, predictInverseEscrow, prepareLenderUserDataRpcCalls, prepareMergedMulticallParams, prepareMergedRpcCalls, prepareMulticallInputs, prepareTokenBalanceRpcCalls, priceGlvVaults, priceGmMarkets, probeAaveFeedTimestamps, pruneFeedStats, readVaultSharePrices, rejectOutliers as rejectPriceOutliers, resolveDerivation, resolveStCeloDepositGroup, riverKeyParts, riverLenderKey, selectAssetGroupPrices, stampVaultClassification, tellerBpsToPercent, tellerImpliedLtv, tellerLenderKey, tellerPoolFromLenderKey, termLenderKey, termMaxApiBase, borrowNif as termMaxBorrowNif, curveApr as termMaxCurveApr, curveAprNumber as termMaxCurveAprNumber, daysToMaturity as termMaxDaysToMaturity, lendNif as termMaxLendNif, mintGtFeeRatio as termMaxMintGtFeeRatio, ratioToNumber as termMaxRatioToNumber, ratioToPercent as termMaxRatioToPercent, tickToAprNumber, tickToPrice, unflattenLenderData, updateFeedStats };
7632
+ export { type AaveMetadata, type AaveV2Public, type AaveV2UserReserveResponse, type AaveV3Public, type AaveV3UserReserveResponse, type AdditionalYields, ApiBookSource, type AprData, type BalanceData, type BaseLendingPosition, type BasicReserveResponse, type ChainDiagnostic, type ChainLinkResponse, type ChainQuery, type ChainSummary, type CompoundV2Metadata, type CompoundV3Public, type CompoundV3UserReserveResponse, type ConfigEntry, type CoreValidators, DEFAULT_MIDNIGHT_API, DEFAULT_OUTLIER_GUARD, DEFAULT_STALE_REJECT_SECONDS, DEFAULT_TERMMAX_API, type Denomination, type DepthMap, EMPTY_BALANCE, type EModeAssets, type EModeData, type EModeResult, type EulerEarnVault, type EulerEarnVaults, type EulerV2Metadata, type ExactlyFixedPool, type ExactlyFixedPosition, type ExactlyMarketAccount, type ExactlyMarketsRaw, type ExactlyUserFixedPosition, type ExtraValidationCall, type FeedObservation, type FeedStat, type FeedStatsMap, type FeedTimestampMap, type FetchListaVaultsFromChainOptions, type FetchMorphoVaultsFromChainOptions, type FetchOraclePricesOptions, type FetchTokenBalancesOptions, type FlattenPriorityConfig, type FluidFToken, type FluidFTokens, 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 GroupAccumulator, HYPERCORE_VAULT_REGISTRY, type HypercoreLockStatus, type HypercoreUserPositionsOptions, type HypercoreVault, type HypercoreVaultPosition, type HypercoreVaultRegistryEntry, type HypercoreVaults, type HypercoreVaultsFetchOptions, IDLE_MARKET_ID, INTERFACE_IDS, type InitMetadata, type InitPublic, type InitUserReserveResponse, type InterfaceKind, type InverseMarketRaw, type InverseMarketsRaw, type InversePositionInfo, LAGOON_API_URL, LAGOON_CHAIN_IDS, type LagoonApiVault, type LagoonSyncMode, type LagoonVault, type LagoonVaults, type LenderConfigData, type LenderConfigMap, type LenderCrossPoolMeta, type LenderData, type LenderDataEntry, type LenderInfo, type LenderInfoMap, type LenderPublicBase, type LenderRewardsMap, type LenderSummary, type LenderToLenderCrossPoolMeta, type LenderTotalAmounts, type LenderUserQuery, type LenderUserResponse, type LenderYieldComplete, type LenderYields$1 as LenderYields, LendingMode, type LiquityBranchRaw, type LiquityDiscoveredTrove, type LiquityDiscovery, type LiquityMarketsRaw, type LiquitySpInfo, type LiquityTroveInfo, type ListaMarketOverrides, type LoopPostTradeMetrics, type LstDelegation, type LstDelegationKind, type LstValidator, type LstWithdrawalFetchOptions, type LstWithdrawalRegistryEntry, type LstWithdrawalRequest, type LstWithdrawalRequestsByLst, type LstWithdrawalStatus, MORPHO_LENS, MaxParamThresholds, type MergedUserData, type MidnightBook, type MidnightBookLevel, type MidnightBookSource, type ModeBase, type MorphoMarketOverrides, type MorphoSubgraphProxyConfig, type MorphoUserMarketBalance, type MorphoUserReserveResponse, type MorphoVault, type MorphoVaults, type MulticallRpcBatch, type NumberMap, type OracleDiagnostics, type OraclePriceEntry, type OraclePricesResult, type OutlierGuardConfig, type ParsedBalanceData, type ParsedResponse, type ParsedUserBalance, type PermissionParams, type PoolData, type PoolWithMeta, type PortfolioSummary, type PortfolioTotals, type PostTradeMetrics, type PreparedCall, type PreparedMergedMulticallParams, type PreparedMergedRpcCalls, type PreparedTokenBalanceRpcCalls, type PreparedUserDataRpcCalls, type PriceDerivation, type PriceSelection, type ProtocolParams, type ProviderOptions, type RawRpcBatch, type RawRpcCall, type RawRpcResponse, type RiverMarketRaw, type RiverMarketsRaw, type RiverPositionInfo, STABLECOIN_SYMBOLS, STCELO_MANAGER_ADDRESS, type SelectPricesOptions, type SiloVault, type SiloVaults, type StCeloValidatorGroup, type StaleFeedEntry, type StructuredOraclePrices, type SubAccountSummary, type SumerPositionInput, type SummaryAprData, type SummaryBalanceData, TELLER_CALLS_PER_BID, TERMMAX_CALLS_PER_ACCOUNT, DECIMAL_BASE as TERMMAX_DECIMAL_BASE, TERMMAX_LIQUIDATION_PENALTY, TERMMAX_LIQUIDATION_WINDOW_SECS, TERMMAX_LIQUIDATOR_BONUS, TERMMAX_PARTIAL_CLOSE_FACTOR, TERMMAX_PARTIAL_LIQUIDATION_THRESHOLD_USD, type TellerDiscoveredBid, type TellerDiscovery, type TellerMarketsRaw, type TellerPoolRaw, type TermAuctionOrder, type TermAuctionOrders, type TermBookSource, type TermBookTop, type TermListing, type TermMarketRaw, TermMaxApiSource, type TermMaxBookTop, type TermMaxCurveSegment, type TermMaxDataSource, type TermMaxDiscovery, type TermMaxFeeConfig, type TermMaxMarketConfig, type TermMaxMarketRaw, type TermMaxOrderState, TermSubgraphSource, 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 UsddPositionInfo, type UserApr, type UserConfig, type UserData, type UserDataResult, type UserLendingPosition, VAULT_SHARE_PRICE_PROBE, VOLATILE_VAULT_OVERRIDES, type VaultAprResult, type VaultClassification, type VaultClassificationFields, type VaultLookupEntry, type VaultMarketExposure, type VaultProvider, type VaultPublicDataAll, type VaultPublicDataResult, type VaultYieldSeries, type VaultYieldSnapshot, type YDaemonVault, YEARN_CHAIN_IDS, YEARN_YDAEMON_BASE, type YearnVault, type YearnVaultKind, type YearnVaults, type YieldProfile, accountDepositListKey, accountWithdrawalListKey, appendSnapshot, applyPositionDelta, attachPricesToFlashLiquidity, buildFluidFTokensCall, buildLiquityUserCall, buildLoopResult, buildMorphoTypeCall, buildMorphoTypeUserCallWithLens, buildPortfolioTotals, buildSumerAccumulators, buildSummaries, buildTellerUserCall, buildTermMaxUserCall, buildVaultLookup, calculateLeverage, calculateNetApr, calculateOverallNetApr, calculateWeightedAverage, classifyFreshness, classifyReliability, classifyVault, collectFeedObservations, computeBorrowDelta, computeCloseTradeDeltas, computeCollateralSwapDeltas, computeDebtSwapDeltas, computeDepositDelta, computeEModeAnalysis, computeOpenTradeDeltas, computePostTradeMetrics, computeRepayDelta, computeSumerBorrowDelta, computeSumerDepositDelta, computeSumerRepayDelta, computeSumerWaterfall, computeSumerWithdrawDelta, computeVaultApr, computeWithdrawDelta, computeZapTradeDeltas, consensusReference, convertExactlyMarketsToResponse, convertInverseMarketsToResponse, convertLenderUserDataResult, convertLiquityMarketsToResponse, convertRiverMarketsToResponse, convertTellerMarketsToResponse, convertTermMarketsToResponse, convertTermMaxMarketsToResponse, convertUsddMarketsToResponse, createMarketUid, createMidnightBookSource, createMulticallRpcCall, createRawRpcCalls, createTermBookSource, createTermMaxDataSource, decodeListaMarkets, decodeMarkets, decodePackedListaUserDataset, decodePackedMorphoUserDataset, detectInterfaceKinds, encodeBalanceFetcherCalldata, exactlyLenderKey, exactlyMarketFromLenderKey, exactlyPairLtv, exactlyPenaltyRateToAprPercent, exactlyWadRateToPercent, feedKeyOf, feedStatKey, fetchDolomiteAccountNumbers, fetchEulerEarnVaults, fetchEulerEarnVaultsFromSubgraph, fetchEulerSubAccountIndexes, fetchExactlyMarkets, fetchFlashLiquidityForChain, fetchFluidFTokens, fetchGeneralYields, fetchGeneralYieldsByMarketUid, fetchGmxExecutionFees, fetchGmxTickerPrices, fetchGmxVaults, fetchHypercoreVaults, fetchInverseMarkets, fetchLagoonApiVaults, fetchLagoonVaults, fetchLiquityMarkets, fetchListaVaultsFromChain, fetchMorphoUserBalances, fetchMorphoUserPositionMarkets, fetchMorphoVaults, fetchMorphoVaultsFromApi, fetchMorphoVaultsFromChain, fetchOraclePrices, fetchPendlePrices, fetchRiverMarkets, fetchSiloVaults, fetchTellerMarkets, fetchTermMarkets, fetchTermMaxMarkets, fetchTokenBalances, fetchTokenMetadata, fetchUpshiftApiVaults, fetchUpshiftVaults, fetchUsddMarkets, fetchYearnApiVaults, fetchYearnVaults, filterActiveLenders, filterLendersByProtocol, fuseLenderData, generateLendingPools, getAavesForChain, getAssetConfig, getBalanceForMarketUid, getBorrowCapacity, getCachedLiquityTroves, getCachedTellerBids, getCachedTermMaxDiscovery, getCachedTermMaxMarket, getCachedTermMaxMarkets, getCoreValidators, getFluidFTokensConverter, getGmxApiHost, getGmxReadContracts, getGmxUserPositions, getHealthFactor, getHypercoreUserPositions, getHypercoreVaultRegistry, getLenderAssets, getLenderPublicData, getLenderPublicDataAll, getLenderPublicDataViaApi, getLenderUserDataMulti, getLenderUserDataResult, getLendersForChain, getLstDelegation, getLstValidators, getLstWithdrawalRegistry, getLstWithdrawalRequests, getMaxAmountClose, getMaxAmountCollateralSwap, getMaxAmountDebtSwap, getMaxAmountOpen, getMergedUserData, getMorphoTypeMarketConverter, getResolvedDolomiteAccountNumbers, getStCeloValidatorGroups, getSubAccountAddress, getSubAccountIndex, getVaultPublicDataAll, getVaultWithdrawalRequests, hasEulerEarnVaultSubgraph, hasLagoonVaults, hasMorphoPositionIndex, hasMorphoUserApi, hasMorphoUserSubgraph, hasUpshiftVaults, hasYearnVaults, inverseKeyParts, inverseLenderKey, isStablecoinSymbol, isYearnV3, keysFromMaps, lenderApiOnly, lenderFamily, liquityCandidateTroveIds, liquityKeyParts, liquityLenderKey, multicall3Abi, nanTo, needsLenderApproval, needsTokenApproval, noOpResult, normalizeToBytes, parseBalanceFetcherResult, parseMergedResult, parseMulticallRpcResponses, parseRawRpcBatchResponses, parseRawRpcResponses, parseTermMaxLtv, parseTokenBalanceResult, positivePart, predictInverseEscrow, prepareLenderUserDataRpcCalls, prepareMergedMulticallParams, prepareMergedRpcCalls, prepareMulticallInputs, prepareTokenBalanceRpcCalls, priceGlvVaults, priceGmMarkets, probeAaveFeedTimestamps, pruneFeedStats, readVaultSharePrices, rejectOutliers as rejectPriceOutliers, resolveDerivation, resolveStCeloDepositGroup, riverKeyParts, riverLenderKey, selectAssetGroupPrices, stampVaultClassification, tellerBpsToPercent, tellerImpliedLtv, tellerLenderKey, tellerPoolFromLenderKey, termLenderKey, termMaxApiBase, borrowNif as termMaxBorrowNif, curveApr as termMaxCurveApr, curveAprNumber as termMaxCurveAprNumber, daysToMaturity as termMaxDaysToMaturity, lendNif as termMaxLendNif, mintGtFeeRatio as termMaxMintGtFeeRatio, ratioToNumber as termMaxRatioToNumber, ratioToPercent as termMaxRatioToPercent, tickToAprNumber, tickToPrice, unflattenLenderData, updateFeedStats, usddIlkBytes32, usddKeyParts, usddLenderKey };