@1delta/margin-fetcher 5.0.130 → 5.0.132

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
@@ -8605,6 +8605,10 @@ interface AssetInstrumentTerms {
8605
8605
  type TermTag = Open<
8606
8606
  /** The ASSET is a fixed-maturity instrument (a PT as collateral). */
8607
8607
  'asset-matures'
8608
+ /** A fixed-vs-floating rate swap (Boros) — margined, nothing lent. */
8609
+ | 'rate-swap' | 'margined'
8610
+ /** Liquidated on a RATE move against the position, not a price. */
8611
+ | 'rate-liquidation'
8608
8612
  /** …and a bridged mirror: not mintable or redeemable on this chain. */
8609
8613
  | 'asset-bridged' | 'fixed-rate' | 'variable-rate' | 'user-set-rate' | 'zero-interest' | 'prepaid-interest' | 'nav-accrual' | 'has-maturity' | 'perpetual' | 'rolling-duration' | 'static-debt' | 'accruing-debt' | 'time-liquidation' | 'price-liquidation' | 'redeemable' | 'no-liquidation' | 'full-collateral-seizure' | 'early-exit-free' | 'early-exit-penalty' | 'early-exit-discount' | 'exit-instant' | 'exit-capped' | 'exit-cooldown'
8610
8614
  /**
@@ -8845,7 +8849,9 @@ interface MaturityTerms {
8845
8849
  * surprises users — outcomes range from "interest simply stops" to
8846
8850
  * "liquidated within five minutes, losing all collateral".
8847
8851
  */
8848
- atMaturity?: Open<'stops-earning' | 'penalty-accrues' | 'liquidatable' | 'default-seizure' | 'physical-delivery' | 'refinanced' | 'auto-roll' | 'none'>;
8852
+ atMaturity?: Open<'stops-earning' | 'penalty-accrues' | 'liquidatable' | 'default-seizure' | 'physical-delivery' | 'refinanced' | 'auto-roll'
8853
+ /** A swap stops exchanging rates; margin and P&L stay in the account. */
8854
+ | 'settles' | 'none'>;
8849
8855
  /** Grace window before `atMaturity` bites (Teller ~300 s, TermMax 7200 s). */
8850
8856
  graceSecs?: number;
8851
8857
  }
@@ -8866,7 +8872,9 @@ interface FeeTerm {
8866
8872
  label: string;
8867
8873
  when: FeeWhen;
8868
8874
  unit: Open<'apr-percent' | 'percent' | 'bps' | 'absolute'>;
8869
- basis: Open<'principal' | 'face-value' | 'yield' | 'collateral' | 'shares' | 'debt-repaid'>;
8875
+ basis: Open<'principal' | 'face-value' | 'yield' | 'collateral' | 'shares' | 'debt-repaid'
8876
+ /** A swap's notional (Boros size). */
8877
+ | 'notional'>;
8870
8878
  /**
8871
8879
  * A NEGATIVE value is legal and means a REBATE (Exactly's early-repay
8872
8880
  * discount). Sign is load-bearing — never take an absolute value.
@@ -9231,7 +9239,14 @@ interface CounterpartyTerms {
9231
9239
  kind: Open<'pool' | 'orderbook' | 'auction' | 'broker' | 'cdp' | 'p2p' | 'vault-strategy' | 'off-chain-credit'>;
9232
9240
  address?: string;
9233
9241
  /** The trust question, one field. */
9234
- solvency: Open<'overcollateralized' | 'tranched-senior' | 'tranched-junior' | 'undercollateralized' | 'nav-attested'>;
9242
+ solvency: Open<'overcollateralized' | 'tranched-senior' | 'tranched-junior' | 'undercollateralized' | 'nav-attested'
9243
+ /**
9244
+ * Both sides post margin against a mark and are liquidated before it runs
9245
+ * out — a derivative's solvency (Boros). NOT `overcollateralized`: there is
9246
+ * no collateral backing a loan, only margin backing a P&L, and a gap move
9247
+ * between marks can leave a shortfall.
9248
+ */
9249
+ | 'margined'>;
9235
9250
  socializedLoss?: boolean;
9236
9251
  curator?: string;
9237
9252
  }
@@ -9408,7 +9423,10 @@ interface OracleTerms {
9408
9423
  * `none` is MEANINGFUL, not missing data: Teller liquidates on TIME and has
9409
9424
  * no oracle and no health factor anywhere in its trigger.
9410
9425
  */
9411
- kind: Open<'price-feed' | 'nav-attested' | 'none'>;
9426
+ kind: Open<'price-feed' | 'nav-attested'
9427
+ /** Publishes a RATE index, not a price — Boros's funding-index oracle,
9428
+ * which relays one venue's funding into the market every settlement. */
9429
+ | 'rate-feed' | 'none'>;
9412
9430
  /**
9413
9431
  * THE oracle for this `marketUid` — SINGULAR, lowercased. Verified across
9414
9432
  * the full oracle classification: 8,993 marketUids, 0 with more than one
@@ -9584,6 +9602,130 @@ interface BorrowTermSheet {
9584
9602
  info: TermInfo;
9585
9603
  ext?: Record<string, unknown>;
9586
9604
  }
9605
+ /**
9606
+ * One side of a fixed-vs-floating rate swap.
9607
+ *
9608
+ * Neither a deposit nor a loan: nothing is lent, the holder posts MARGIN and
9609
+ * exchanges a fixed rate for a floating one on a notional until maturity. The
9610
+ * side decides which leg you pay — and therefore which way a rate move hurts.
9611
+ */
9612
+ interface SwapSideTerms {
9613
+ side: Open<'long' | 'short'>;
9614
+ pays: Open<'fixed' | 'floating'>;
9615
+ receives: Open<'fixed' | 'floating'>;
9616
+ /**
9617
+ * The fixed rate a TAKER on this side gets right now, PERCENT: the best ask
9618
+ * for a LONG (it pays fixed), the best bid for a SHORT (it receives fixed).
9619
+ * Absent when that side of the book is empty.
9620
+ */
9621
+ fixedApr?: AprPercent;
9622
+ /**
9623
+ * Fixed − floating from THIS side's point of view, PERCENT: what entering at
9624
+ * `fixedApr` gains (+) or gives up (−) per year at today's floating rate.
9625
+ * A snapshot — the floating leg moves every funding period.
9626
+ */
9627
+ carryApr?: AprPercent;
9628
+ /** Which rate move costs this side margin. */
9629
+ adverseMove: Open<'floating-up' | 'floating-down'>;
9630
+ availability: AvailabilityTerms;
9631
+ info: TermInfo;
9632
+ }
9633
+ /**
9634
+ * A rate-swap market — today only Pendle Boros funding-rate swaps (BOROS.md).
9635
+ *
9636
+ * Additive to the schema (no version bump): a sheet carries `swap` INSTEAD of
9637
+ * `supply` / `borrow`, because forcing a swap into either would state terms
9638
+ * that do not exist (no lender, no borrower, no utilization, no collateral
9639
+ * factor).
9640
+ */
9641
+ interface SwapTermSheet {
9642
+ kind: Open<'funding-rate-swap'>;
9643
+ /**
9644
+ * What one unit of `size` is. Boros sizes in the market's MARGIN token, so a
9645
+ * USD₮0-margined BTC market sizes in DOLLARS of notional — the single most
9646
+ * misread unit on the venue.
9647
+ */
9648
+ notional: {
9649
+ /** The margin token, which is also the size unit. */
9650
+ unit: TermAssetRef;
9651
+ /** The asset whose funding is swapped (`BTC`). */
9652
+ underlying: string;
9653
+ };
9654
+ /** The floating leg — what the reference venue pays. */
9655
+ floating: {
9656
+ source: Open<'perp-funding'>;
9657
+ venue: string;
9658
+ /** Venue A − venue B for a spread market. */
9659
+ spreadOf?: string[];
9660
+ /** Current annualised floating rate, PERCENT. */
9661
+ apr?: AprPercent;
9662
+ /** Seconds between funding settlements. */
9663
+ settlementSecs?: number;
9664
+ };
9665
+ /** The fixed leg — what the market prices. */
9666
+ fixed: {
9667
+ source: Open<'orderbook' | 'orderbook-amm'>;
9668
+ /** Mark (implied) rate, PERCENT — what margin and P&L are marked at. */
9669
+ markApr?: AprPercent;
9670
+ bestBidApr?: AprPercent;
9671
+ bestAskApr?: AprPercent;
9672
+ };
9673
+ maturity: MaturityTerms;
9674
+ margin: {
9675
+ model: Open<'cross' | 'isolated' | 'cross-or-isolated'>;
9676
+ /** `IM = |size| × max(|rate|, rateFloor) × initialFactor × max(TTM, timeFloor)`. */
9677
+ initialFactor: number;
9678
+ maintenanceFactor: number;
9679
+ /** Rate floor in the formula, FRACTION. */
9680
+ rateFloor: number;
9681
+ /** Time floor in the formula, seconds. */
9682
+ timeFloorSecs: number;
9683
+ maxLeverage?: number;
9684
+ /** Cash an account must hold before it can trade at all, USD. */
9685
+ minCashUsd?: number;
9686
+ formula: string;
9687
+ };
9688
+ liquidation: {
9689
+ /** `equity / maintenance` at or below which a position is liquidatable. */
9690
+ healthThreshold: number;
9691
+ /** Below this the protocol may force-close against other traders. */
9692
+ forcedDeleverageHealth?: number;
9693
+ /** Paid out of the liquidated account: `min(base + slope × (1 − health), health) × ΔMM`. */
9694
+ incentive?: {
9695
+ base: number;
9696
+ slope: number;
9697
+ };
9698
+ model: Open<'position-transfer'>;
9699
+ permissioned?: boolean;
9700
+ };
9701
+ exit: {
9702
+ /** A position is closed by trading the opposite side at the book. */
9703
+ close: Open<'market-trade'>;
9704
+ priceRisk: Open<'market-price'>;
9705
+ /** Margin cash leaves through a request + cooldown, seconds. */
9706
+ withdrawalCooldownSecs?: number;
9707
+ /** A new request restarts the cooldown for the WHOLE pending amount. */
9708
+ requestResetsCooldown?: boolean;
9709
+ finalizePermissionless?: boolean;
9710
+ };
9711
+ /** Every charge; `basis: 'notional'`. */
9712
+ fees: FeeTerm[];
9713
+ counterparty: CounterpartyTerms;
9714
+ /** Open-interest cap, in `notional.unit` units. */
9715
+ openInterestCap?: {
9716
+ hard?: number;
9717
+ softPct?: number;
9718
+ current?: number;
9719
+ };
9720
+ /** What can be lost beyond the fees. */
9721
+ principal: {
9722
+ protected: false;
9723
+ risks: Open<'margin-loss' | 'liquidation' | 'basis' | 'roll'>[];
9724
+ };
9725
+ long: SwapSideTerms;
9726
+ short: SwapSideTerms;
9727
+ ext?: Record<string, unknown>;
9728
+ }
9587
9729
  /**
9588
9730
  * Distinguishes "not applicable" from "not implemented yet" — the affordance
9589
9731
  * that lets phases ship incrementally without lying. A missing `oracle` must
@@ -9623,6 +9765,8 @@ interface TermSheet {
9623
9765
  asset?: TermAssetRef;
9624
9766
  supply?: SupplyTermSheet;
9625
9767
  borrow?: BorrowTermSheet;
9768
+ /** A rate swap (Boros) — carried INSTEAD of supply/borrow. */
9769
+ swap?: SwapTermSheet;
9626
9770
  /** Shared — these describe the MARKET, not a side. */
9627
9771
  governance?: GovernanceTerms;
9628
9772
  oracle?: OracleTerms;
@@ -9667,6 +9811,24 @@ interface TermSheetDigest {
9667
9811
  tags: TermTag[];
9668
9812
  acceptedCollateral?: Omit<ExposureTerms, 'items'>;
9669
9813
  };
9814
+ swap?: {
9815
+ kind: SwapTermSheet['kind'];
9816
+ underlying: string;
9817
+ venue: string;
9818
+ maturity?: number;
9819
+ markApr?: AprPercent;
9820
+ floatingApr?: AprPercent;
9821
+ long: {
9822
+ headline: string;
9823
+ canOpen: boolean;
9824
+ fixedApr?: AprPercent;
9825
+ };
9826
+ short: {
9827
+ headline: string;
9828
+ canOpen: boolean;
9829
+ fixedApr?: AprPercent;
9830
+ };
9831
+ };
9670
9832
  oracle?: Pick<OracleTerms, 'kind' | 'address' | 'provider' | 'band'>;
9671
9833
  governance?: Pick<GovernanceTerms, 'mutability' | 'controllerKind' | 'timelockSecs' | 'tier'>;
9672
9834
  utilization?: number;
@@ -9686,6 +9848,11 @@ interface TermProfile {
9686
9848
  description: string;
9687
9849
  implications?: string[];
9688
9850
  };
9851
+ /** Rate-swap prose (Boros) — shared by both sides. */
9852
+ swap?: {
9853
+ description: string;
9854
+ implications?: string[];
9855
+ };
9689
9856
  docsUrl?: string;
9690
9857
  }
9691
9858
  /** Deep-partial, for adapters that return only what they override. */
@@ -13720,6 +13887,8 @@ declare function buildTermSheet(input: TermSheetInput, opts?: BuildTermSheetOpti
13720
13887
  declare function deriveSupplyTags(supply: SupplyTermSheet, market?: Pick<TermSheet, 'governance' | 'oracle' | 'asset'>): TermTag[];
13721
13888
  /** Borrow-side tags. */
13722
13889
  declare function deriveBorrowTags(borrow: BorrowTermSheet, market?: Pick<TermSheet, 'governance' | 'oracle'>): TermTag[];
13890
+ /** Tags for one side of a rate swap — derived, like the lending ones. */
13891
+ declare function deriveSwapTags(sw: SwapTermSheet, side: SwapSideTerms, governance?: GovernanceTerms): TermTag[];
13723
13892
 
13724
13893
  /**
13725
13894
  * Severity model — PURE, derived only from structured fields.
@@ -13789,6 +13958,14 @@ declare function borrowHeadline(b: BorrowTermSheet): string;
13789
13958
  declare function supplyDescription(s: SupplyTermSheet, sheet?: Pick<TermSheet, 'utilization' | 'asset'>): string;
13790
13959
  /** Borrow-side description. */
13791
13960
  declare function borrowDescription(b: BorrowTermSheet): string;
13961
+ /**
13962
+ * `"Receive fixed 8.05% · pay Hyperliquid BTC funding (now 10.95%) · to 30 Oct
13963
+ * 2026"` — which leg you pay is the whole product, so it leads.
13964
+ */
13965
+ declare function swapSideHeadline(sw: SwapTermSheet, s: SwapSideTerms): string;
13966
+ declare function swapSideDescription(sw: SwapTermSheet, s: SwapSideTerms): string;
13967
+ /** Derived warnings for one side, most important first. */
13968
+ declare function swapSideImplications(sw: SwapTermSheet, s: SwapSideTerms, governance?: TermSheet['governance']): string[];
13792
13969
 
13793
13970
  declare const TERM_PROFILES: TermProfile[];
13794
13971
  declare function getTermProfile(id: string): TermProfile | undefined;
@@ -16775,4 +16952,359 @@ declare const fetchFluidDexState: (chainId: string, multicallRetry: MulticallRet
16775
16952
  /** Synchronous read of whatever `fetchFluidDexState` last cached for a chain. */
16776
16953
  declare const getCachedFluidDexState: (chainId: string) => FluidDexStateMap | undefined;
16777
16954
 
16778
- export { ALCHEMIX_BLOCK_SECONDS, type AaveMetadata, type AaveV2Public, type AaveV2UserReserveResponse, type AaveV3Public, type AaveV3UserReserveResponse, type AdditionalYields, type AdminKind, type AlchemixMarketRaw, type AlchemixMarketsRaw, type AlchemixTransmuterRaw, ApiBookSource, type AprData, type AprPercent, type AssetInstrumentTerms, type AssetIssuerAttribution, type AssetQuality, type AssetRiskIndex, type AuctionWindow, type AvailabilityTerms, 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 ConsensusDemotionConfig, type ConvertLenderUserDataOptions, type CoolerDripRaw, type CoolerMarketsRaw, type CoolerPositionInfo, type CoreValidators, type CounterpartyTerms, type CoverageInfo, type CreditDesk, DEFAULT_CONSENSUS_DEMOTION, DEFAULT_MIDNIGHT_API, DEFAULT_OUTLIER_GUARD, DEFAULT_PROFILE_ID, DEFAULT_STALE_REJECT_SECONDS, DEFAULT_TERMMAX_API, DEFAULT_TERM_ORDER_STORE, DOLOMITE_ISO_ID_PREFIX, type DeepPartial, type Denomination, type DepthMap, type DolomiteIsolationRow, type DolomiteSubAccount, type DssMarketRaw, type DssMarketsRaw, type DssPositionInfo, EARN_DESCRIPTIONS, EARN_LABELS, EARN_RATE_SOURCE_BY_PROVIDER, EMPTY_BALANCE, type EModeAssets, type EModeData, type EModeResult, EXACTLY_LENDER_KEY, EXPONENT_MATURED_REASON, type EarnActionInput, type EarnActionKind, type EarnAmount, type EarnAppliedDefaults, type EarnAprBreakdown, type EarnAsset, type EarnAvailability, type EarnBasket, type EarnBasketLeg, type EarnCapability, type EarnCollateralLeg, type EarnCurator, type EarnExclusions, type EarnExit, type EarnExitHistory, type EarnExitHistoryDay, type EarnFacetBucket, type EarnFacets, type EarnGating, type EarnLabelDimension, type EarnLendingPosition, type EarnMarket, type EarnMarketLabelInput, type EarnPosition, type EarnPositionAsset, type EarnPositionBase, type EarnPositionLeg, type EarnPositionSourceStatus, type EarnPositionSubAccount, type EarnPositionTotals, type EarnPositionUid, type EarnPositionsResponse, type EarnProtocol, type EarnProtocolAndCurator, type EarnRate, type EarnRateSource, type EarnRefs, type EarnResponse, type EarnRisk, type EarnSanityResult, type EarnShareToken, type EarnSourceStatus, type EarnVaultNormalizeOptions, type EarnVaultPosition, type EarnVenueKind, type EarnVocabulary, type EmitterRole, type EmitterRow, type EmitterSide, type EndpointFailure, type EnrichmentIndex, type EulerEarnVault, type EulerEarnVaults, type EulerV2Metadata, type ExactlyFixedPool, type ExactlyFixedPosition, type ExactlyMarketAccount, type ExactlyMarketsRaw, type ExactlyUserFixedPosition, type ExposureEntry, type ExposureTerms, type ExtraValidationCall, FIXED_YIELD_EARN_VENUE_PREFIXES, FLYING_TULIP_LENDER_KEY, FRACTION_RATE_PROVIDERS, 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 MidnightChainBooks, type ModeBase, type ModeVariant, type MorphoMarketOverrides, type MorphoSubgraphProxyConfig, type MorphoUserMarketBalance, type MorphoUserReserveResponse, type MorphoVault, type MorphoVaults, type MulticallEndpointOptions, type MulticallRpcBatch, NON_EVM_VAULT_PROVIDERS, type NumberMap, type Open, type OracleBand, type OracleDiagnostics, type OraclePriceEntry, type OraclePricesResult, type OracleRiskRow, type OracleTerms, type OrderBookLendFacts, type OutlierGuardConfig, PASSTHROUGH_RATE_EPSILON, PENDLE_ASSETS_URL, PENDLE_CHAIN_IDS, PENDLE_MARKETS_URL, PREFIX_LENDERS, type PairRowDesks, type ParsedBalanceData, type ParsedEarnUid, type ParsedLendingEarnUid, type ParsedResponse, type ParsedUserBalance, type ParsedVaultEarnUid, type PendleApiAsset, type PendleApiMarket, type PendleApiMarketDetails, type PendlePtMarket, type PendlePtMarkets, type PermissionKind, type PermissionParams, type PoolData, type PoolSourceRow, type PoolWithMeta, type PortfolioSummary, type PortfolioTotals, type PositionConstraints, type PostTradeMetrics, type PreparedCall, type PreparedMergedMulticallParams, type PreparedMergedRpcCalls, type PreparedTokenBalanceRpcCalls, type PreparedUserDataRpcCalls, type PriceDerivation, type PriceSelection, type ProtocolParams, type ProviderOptions, RIPE_LENDER_KEY, type RateKind, type RateMenuEntry, type RateTerms, type RawRpcBatch, type RawRpcCall, type RawRpcResponse, type ReadFailurePolicy, type ReadUserPositionsParams, type ReadUserPositionsResult, type RedemptionTerms, type ResupplyMarketsRaw, type ResupplyPairIdentity, type ResupplyPairRaw, type ResupplyPositionInfo, type ResupplyWrappedMarket, type RewardSourceRef, type RewardStream, type RewardTerm, type RewardTokenRef, type RewardsDataByMarketUid, type RipeAccountInfo, type RipeAssetRaw, type RipeMarketsRaw, type RiverMarketRaw, type RiverMarketsRaw, type RiverPositionInfo, SDK_FRACTION_RATE_PROVIDERS, SPECTRA_NETWORKS, SPECTRA_RATE_MAX_PERCENT, SPECTRA_RATE_MIN_PERCENT, STABLECOIN_SYMBOLS, STCELO_MANAGER_ADDRESS, SVM_EARN_MINT_BUILDERS, SVM_EARN_VAULT_BUILDERS, SVM_VAULT_PROVIDERS, type SelectPricesOptions, type Severity, type SeverityFinding, type SiloVault, type SiloVaults, type SpectraApiMarket, type SpectraApiPool, type SpectraApiToken, type SpectraPtMarket, type SpectraPtMarkets, type StCeloValidatorGroup, type StaleFeedEntry, type StampOptions, type StructuredOraclePrices, type SubAccountSelection, type SubAccountSummary, type SumerPositionInput, type SummaryAprData, type SummaryBalanceData, type SupplyExitMode, type SupplyExitRoute, type SupplyExitTerms, type SupplyTermSheet, type SvmEarnBuildability, type SvmEarnBuilder, type SvmVaultProvider, TELLER_CALLS_PER_BID, DECIMAL_BASE as TERMMAX_DECIMAL_BASE, TERMMAX_LIQUIDATION_PENALTY, TERMMAX_LIQUIDATION_WINDOW_SECS, TERMMAX_LIQUIDATOR_BONUS, TERMMAX_MARKETS_PER_CALL, TERMMAX_PARTIAL_CLOSE_FACTOR, TERMMAX_PARTIAL_LIQUIDATION_THRESHOLD_USD, TERM_ADAPTERS, TERM_PROFILES, TERM_SHEET_SCHEMA_VERSION, type TellerDiscoveredBid, type TellerDiscovery, type TellerMarketsRaw, type TellerPoolRaw, type TermAdapter, type TermAssetRef, type TermAuctionOrder, type TermAuctionOrders, type TermBookSource, type TermBookTop, type TermFillNow, type TermFillNowSide, type TermInfo, type TermListing, type TermMarketRaw, TermMaxApiSource, type TermMaxBookTop, type TermMaxCurveSegment, type TermMaxDataSource, type TermMaxDiscovery, type TermMaxFeeConfig, type TermMaxMarketConfig, type TermMaxMarketRaw, type TermMaxOrderState, type TermProfile, type TermSheet, type TermSheetDigest, type TermSheetInput, type TermSheetVaultProvider, type TermSheetViolation, type TermStoreOrder, TermSubgraphSource, type TermTag, type TokenApprovalMeta, type TokenApprovalParams, type TokenBalanceEntry, type TokenBalanceQuery, type TokenBalanceResult, type TokenEntry, type TokenList, type TokenListInput, type TrackerDiagnostic, UPSHIFT_CHAIN_IDS, UPSHIFT_VAULTS_URL, type USDPriceMap, type UpshiftApiAsset, type UpshiftApiVault, type UpshiftVault, type UpshiftVaults, type UsddMarketRaw, type UsddMarketsRaw, type DssPositionInfo as UsddPositionInfo, type UserApr, type UserCallOptions, type UserConfig, type UserData, type UserDataResult, type UserDataTransport, type UserLendingPosition, type UsualRewardsClaimData, type UtilizationTerms, VAULT_PROVIDERS, VAULT_PROVIDER_PROFILE, VAULT_PROVIDER_TRAITS, VAULT_SHARE_PRICE_PROBE, VAULT_VENUE_PREFIX, VOLATILE_VAULT_OVERRIDES, type ValidationResult, type VaultAprResult, type VaultBalanceInput, type VaultClassification, type VaultClassificationFields, type VaultLookupEntry, type VaultMarketExposure, type VaultProvider, type VaultProviderTraits, type VaultPublicDataAll, type VaultPublicDataResult, type VaultSourceRow, type VaultTermInput, type VaultYieldSeries, type VaultYieldSnapshot, type YDaemonVault, YEARN_CHAIN_IDS, YEARN_YDAEMON_BASE, type YearnVault, type YearnVaultKind, type YearnVaults, type YieldDataByMarketUid, type YieldProfile, __resetResupplyUserCaches, accountDepositListKey, accountWithdrawalListKey, alchemixLenderKey, alchemixMytRate, alchemixRedemptionPace, appendSnapshot, applyEarnSanity, applyPositionDelta, attachImplications, attachPricesToFlashLiquidity, blockNumberFromTag, 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, convertAlchemixMarketsToResponse, 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, disambiguateOrderBookNames, dolomiteVaultAddress, dssIlkBytes32, dssKeyParts, dssLenderKey, duration, earnDescription, earnLabel, earnMarketFromPool, earnMarketFromVault, earnMarketLabel, earnPositionFromLenderEntry, earnPositionFromVaultBalance, earnPositionTotals, earnRateAtMaturity, earnRowSubtitle, earnUidFromMarketUid, earnVaultTerms, earnVenueKind, emitterCoverage, encodeBalanceFetcherCalldata, enrichTermSheet, enrichmentIndexFromRows, enumerateEmitters, exactlyPairLtv, exactlyPenaltyRateToAprPercent, exactlyWadRateToPercent, feePhrase, feedKeyOf, feedStatKey, fetchAlchemixMarkets, fetchCoolerMarkets, fetchDolomiteAccountNumbers, fetchDolomiteSubAccounts, fetchDssMarkets, fetchEulerEarnVaults, fetchEulerEarnVaultsFromSubgraph, fetchEulerSubAccountIndexes, fetchExactlyMarkets, fetchFlashLiquidityForChain, fetchFluidDexState, fetchFluidFTokens, fetchFlyingTulipMarkets, fetchFrankencoinMarkets, fetchFraxlendPairs, fetchGeneralYields, fetchGeneralYieldsByMarketUid, fetchGmxExecutionFees, fetchGmxTickerPrices, fetchGmxVaults, fetchHypercoreVaults, fetchInverseMarkets, fetchLagoonApiVaults, fetchLagoonVaults, fetchLenderRewards, fetchLenderRewardsByMarketUid, fetchLiquityMarkets, fetchListaVaultsFromChain, fetchLlamaLendMarkets, fetchMorphoUserBalances, fetchMorphoUserPositionMarkets, fetchMorphoVaults, fetchMorphoVaultsFromApi, fetchMorphoVaultsFromChain, fetchOraclePrices, fetchPendleApiAssets, fetchPendleApiMarkets, fetchPendlePrices, fetchPendlePtMarkets, fetchResupplyMarkets, fetchRipeMarkets, fetchRiverMarkets, fetchSiloVaults, fetchSpectraApiMarkets, fetchSpectraPtMarkets, fetchTellerMarkets, fetchTermMarkets, fetchTermMaxMarkets, fetchTermStoreOrders, fetchTokenBalances, fetchTokenMetadata, fetchUpshiftApiVaults, fetchUpshiftVaults, fetchUsddMarkets, fetchUsualRewardsClaimData, fetchYearnApiVaults, fetchYearnVaults, fillableRemaining, filterActiveLenders, filterLenderMeta, filterLendersByProtocol, finalizeInfo, findingsFor, 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, getMidnightChainBooks, getMorphoTypeMarketConverter, getReadFailurePolicy, getResolvedDolomiteAccountNumbers, getResolvedDolomiteSubAccounts, getStCeloValidatorGroups, getSubAccountAddress, getSubAccountIndex, getTermProfile, getVaultPublicDataAll, getVaultWithdrawalRequests, hasCritical, hasEulerEarnVaultSubgraph, hasLagoonVaults, hasMorphoPositionIndex, hasMorphoUserApi, hasMorphoUserSubgraph, hasPendleMarkets, hasSpectraMarkets, hasUpshiftVaults, hasYearnVaults, ilkToKeySegment, implausibleRatePercent, injectLenderInfoIntoEntries, inverseKeyParts, inverseLenderKey, isBoundNeed, isFailedCall, isFixedYieldEarnRow, isIlliquid, isLenderVenueKey, isLendingPosition, isLiveMarket as isLivePendleMarket, isLiveSpectraMarket, isMaturedTerm, isOrderBookCollateralLeg, isOrderBookLendRow, isSecondaryMarketOnly, isStablecoinSymbol, isSyntheticQuoteUnit, isUnearnableEarnRate, isUnrealizableEarnRate, isVaultPosition, isVaultVenue, isYearnV3, keySegmentToIlk, keysFromMaps, lenderApiOnly, lenderFamily, liquityCandidateTroveIds, liquityKeyParts, liquityLenderKey, llamaLendKeyParts, llamaLendLenderKey, marketKeysOf, meetsLiquidityFloor, mergeDeep, multicall3Abi, nanTo, needsLenderApproval, needsTokenApproval, noOpResult, normalizeToBytes, organizeUserQueries, parseBalanceFetcherResult, parseDolomiteSubAccountId, parseEarnUid, parseLenderKey, parseMergedResult, parseMulticallRpcResponses, parseExpirySeconds as parsePendleExpirySeconds, parseRawRpcBatchResponses, parseRawRpcResponses, parseCurveFee as parseSpectraCurveFee, parsePtRate as parseSpectraPtRate, parseTermMaxLtv, parseTokenBalanceResult, pct, assetKey as pendleAssetKey, pickPool as pickSpectraPool, positivePart, predictInverseEscrow, prepareLenderUserDataRpcCalls, prepareMergedMulticallParams, prepareMergedRpcCalls, prepareMulticallInputs, prepareTokenBalanceRpcCalls, priceGlvVaults, priceGmMarkets, probeAaveFeedTimestamps, protocolConsensus, protocolOf, pruneFeedStats, rankFindings, ratePercent, readUserPositions, readVaultSharePrices, rejectOutliers as rejectPriceOutliers, repairImpossibleTvl, resolveAdapter, resolveDerivation, resolveDolomiteRowIdentity, resolveEarnIdentity, resolveModeConfig, resolveStCeloDepositGroup, resolveVaultProfileId, resupplyKeyParts, resupplyLenderKey, resupplyMarketLabel, riverKeyParts, riverLenderKey, sanePercent as saneSpectraPercent, savingsAddresses, savingsBalanceKind, secondaryMarketVault, selectAssetGroupPrices, selectUsualRewardEntry, setMysticApiKey, shortDate, spectraAddress, spectraNetwork, spectraPoolsUrl, splitChainScopedAddress as splitPendleChainScopedAddress, stampCapabilities, stampEarnSubtitles, stampOrderBookLendRow, stampVaultClassification, stampVaultTermSheets, stripLeadingBrand, subAccountsOf, supplyDescription, supplyFindings, supplyHeadline, svmEarnBuildability, svmEarnBuilderKey, swapRoutedProvidersArePriceConsistent, 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 };
16955
+ /**
16956
+ * Pendle Boros — normalized shapes served by `fetchBorosMarkets` & co.
16957
+ *
16958
+ * Rates are nominal APR in PERCENT (the package convention); margin and fee
16959
+ * parameters are FRACTIONS. A market `size` is 1e18-scaled and denominated in
16960
+ * the market's COLLATERAL token: a USD₮0-margined BTC market sizes in dollars
16961
+ * of notional, a WBTC-margined one in BTC. See BOROS.md §2.
16962
+ */
16963
+ interface BorosCollateral {
16964
+ tokenId: number;
16965
+ address: string;
16966
+ symbol: string;
16967
+ decimals: number;
16968
+ priceUsd: number;
16969
+ }
16970
+ interface BorosMarket {
16971
+ marketId: number;
16972
+ /** Market contract (beacon proxy). */
16973
+ address: string;
16974
+ symbol: string;
16975
+ name: string;
16976
+ /** Venue whose funding the market references (`Hyperliquid`, `Binance` …). */
16977
+ venue: string;
16978
+ /** Asset whose perp funding is traded (`BTC`, `ETH`, `HYPE` …). */
16979
+ asset: string;
16980
+ /** True for a venue-vs-venue spread market (funding A − funding B). */
16981
+ isSpread: boolean;
16982
+ /** Unix seconds. */
16983
+ maturity: number;
16984
+ timeToMaturitySec: number;
16985
+ collateral: BorosCollateral;
16986
+ isIsolatedOnly: boolean;
16987
+ /** `Normal` while tradable. */
16988
+ state: string;
16989
+ maxLeverage: number | null;
16990
+ tickStep: number;
16991
+ /** AMM id to route against, when the market has one. */
16992
+ ammId: number | null;
16993
+ ammAddress: string | null;
16994
+ /** Seconds between funding settlements. */
16995
+ paymentPeriodSec: number | null;
16996
+ rates: {
16997
+ /** Mark (implied) fixed APR. */
16998
+ markApr: number | null;
16999
+ /** The venue's current floating funding, annualised. */
17000
+ floatingApr: number | null;
17001
+ midApr: number | null;
17002
+ bestBidApr: number | null;
17003
+ bestAskApr: number | null;
17004
+ lastTradedApr: number | null;
17005
+ ammImpliedApr: number | null;
17006
+ };
17007
+ /** Open interest in collateral units and USD. */
17008
+ openInterest: {
17009
+ units: number;
17010
+ usd: number;
17011
+ } | null;
17012
+ volume24h: {
17013
+ units: number;
17014
+ usd: number;
17015
+ } | null;
17016
+ fees: {
17017
+ /** Taker fee per YEAR to maturity, fraction of notional. */
17018
+ takerFee: number;
17019
+ otcFee: number;
17020
+ /** Charged every funding settlement, annualised fraction of notional. */
17021
+ settleFee: number | null;
17022
+ };
17023
+ margin: {
17024
+ /** Initial-margin factor. */
17025
+ kIM: number;
17026
+ /** Maintenance-margin factor. */
17027
+ kMM: number;
17028
+ /** Rate floor in the margin formula (`rate(iTickThresh)`), fraction. */
17029
+ rateFloor: number;
17030
+ iTickThresh: number;
17031
+ /** Time floor in the margin formula, seconds. */
17032
+ tThreshSec: number;
17033
+ /** Liquidation incentive `base + slope × (1 − health)` and the treasury fee rate (per year of TTM). */
17034
+ liquidation: {
17035
+ incentiveBase: number;
17036
+ incentiveSlope: number;
17037
+ feeRate: number;
17038
+ } | null;
17039
+ };
17040
+ /** Open-interest cap in collateral units; `softPct` = share of it at which new risk is limited. */
17041
+ openInterestCap: {
17042
+ hard: number;
17043
+ softPct: number | null;
17044
+ } | null;
17045
+ /** The funding-index oracle that relays the venue's rate. */
17046
+ fundingOracle: {
17047
+ address: string;
17048
+ maxUpdateDelaySec: number | null;
17049
+ } | null;
17050
+ /** Pendle's term sheet for this market (`swap`, both sides). */
17051
+ termSheet?: TermSheet;
17052
+ }
17053
+ /** One level of a Boros book. `aprPct` percent, `size` collateral units. */
17054
+ interface BorosBookLevel {
17055
+ aprPct: number;
17056
+ size: number;
17057
+ }
17058
+ /**
17059
+ * `bids` = resting LONG orders (a SHORT taker fills against them, best =
17060
+ * highest APR); `asks` = resting SHORT orders (a LONG taker fills against
17061
+ * them, best = lowest APR). AMM liquidity is merged in when available.
17062
+ */
17063
+ interface BorosOrderBook {
17064
+ marketId: number;
17065
+ bids: BorosBookLevel[];
17066
+ asks: BorosBookLevel[];
17067
+ }
17068
+ interface BorosPosition {
17069
+ marketId: number;
17070
+ marketAcc: string;
17071
+ isCross: boolean;
17072
+ side: 'long' | 'short';
17073
+ /** 1e18-scaled, signed (LONG > 0). */
17074
+ signedSize: string;
17075
+ /** Collateral units, absolute. */
17076
+ size: number;
17077
+ /** Average fixed APR of the position, percent. */
17078
+ fixedAprPct: number | null;
17079
+ /** Cumulative PnL, collateral units. */
17080
+ cumulativePnl: number | null;
17081
+ isMatured: boolean;
17082
+ /** APR at which the position is liquidated, percent (Boros's own figure). */
17083
+ liquidationAprPct: number | null;
17084
+ initialMargin: number | null;
17085
+ maintMargin: number | null;
17086
+ positionValue: number | null;
17087
+ }
17088
+ interface BorosCrossAccount {
17089
+ tokenId: number;
17090
+ marketAcc: string;
17091
+ collateral: BorosCollateral | null;
17092
+ /** Collateral units. */
17093
+ totalCash: number;
17094
+ netBalance: number;
17095
+ initialMargin: number;
17096
+ availableInitialMargin: number;
17097
+ availableMaintMargin: number;
17098
+ /** `netBalance / maintMargin` — liquidation at ≤ 1. `null` with no positions. */
17099
+ healthRatio: number | null;
17100
+ }
17101
+ interface BorosAccountState {
17102
+ account: string;
17103
+ positions: BorosPosition[];
17104
+ crossAccounts: BorosCrossAccount[];
17105
+ }
17106
+
17107
+ /**
17108
+ * The Boros open API — unauthenticated, public. Reads only: market list,
17109
+ * collateral assets, order books and account state. Nothing here signs or
17110
+ * submits (the Boros "send-txs" relay is the agent path we do not use — every
17111
+ * 1delta Boros action is a plain EOA transaction, BOROS.md §3).
17112
+ */
17113
+ declare const BOROS_API_BASE = "https://api.boros.finance/open-api";
17114
+ declare class BorosApiError extends Error {
17115
+ readonly status?: number | undefined;
17116
+ readonly errorCode?: string | undefined;
17117
+ constructor(message: string, status?: number | undefined, errorCode?: string | undefined);
17118
+ }
17119
+ declare function borosApi<T>(path: string, init?: {
17120
+ method?: 'GET' | 'POST';
17121
+ body?: unknown;
17122
+ }, fetchImpl?: typeof fetch): Promise<T>;
17123
+
17124
+ /**
17125
+ * Collateral roster. The endpoint also lists PRICE-ONLY assets (NVDA, XAU …)
17126
+ * with `tokenId: -1` and placeholder addresses — those are not collateral and
17127
+ * are dropped.
17128
+ */
17129
+ declare function fetchBorosCollaterals(fetchImpl?: typeof fetch): Promise<BorosCollateral[]>;
17130
+ declare function convertBorosMarket(m: any, collaterals: Map<number, BorosCollateral>, nowSec?: number): BorosMarket | null;
17131
+ /**
17132
+ * Every live Boros market (the API's whitelisted list), normalized. Memoised
17133
+ * per isolate for 30 s — the rates move with the book, so do not cache longer.
17134
+ */
17135
+ declare function fetchBorosMarkets(opts?: {
17136
+ fetchImpl?: typeof fetch;
17137
+ fresh?: boolean;
17138
+ }): Promise<BorosMarket[]>;
17139
+ declare function fetchBorosMarket(marketId: number, opts?: {
17140
+ fetchImpl?: typeof fetch;
17141
+ }): Promise<BorosMarket | undefined>;
17142
+
17143
+ /**
17144
+ * The live book of one market, AMM liquidity merged in. The API keys sides by
17145
+ * the RESTING order: `long` = bids (what a SHORT taker hits), `short` = asks.
17146
+ * `ia` is the implied APR in units of `tickSize` (0.0001 → 805 = 8.05 %).
17147
+ */
17148
+ declare function fetchBorosOrderBook(marketId: number, fetchImpl?: typeof fetch): Promise<BorosOrderBook>;
17149
+
17150
+ /**
17151
+ * The Boros term sheet — a `swap` sheet with BOTH sides (BOROS.md).
17152
+ *
17153
+ * Every number comes from the market row; every sentence is templated in
17154
+ * `terms/format.ts`. What we could not establish is declared in `coverage`
17155
+ * rather than defaulted (the three rules in AGENTS.md "Term sheets").
17156
+ */
17157
+ declare const BOROS_PROFILE_ID = "boros.funding-swap@v1";
17158
+ /**
17159
+ * Upgrade authority of BOTH the Router and the MarketHub, resolved on-chain
17160
+ * 2026-10-20: each EIP-1967 admin slot holds a ProxyAdmin whose `owner()` is
17161
+ * this Gnosis Safe — 2 of 3 owners, and not a timelock (`getMinDelay()`
17162
+ * reverts). Market contracts are beacon proxies; their beacon was not
17163
+ * resolved, so `governance` describes the shared core only.
17164
+ */
17165
+ declare const BOROS_GOVERNANCE: GovernanceTerms;
17166
+ declare function buildBorosTermSheet(m: BorosMarket, nowSec?: number): TermSheet;
17167
+
17168
+ /**
17169
+ * The account's Boros book: every open position (main account, all
17170
+ * collaterals) and the cross-margin account of each collateral it touches —
17171
+ * cash, margin in use, and health. Boros's own indexer is the source (it
17172
+ * carries the per-position liquidation APR the chain does not expose as one
17173
+ * read); `syncStatus` lag is a few seconds.
17174
+ */
17175
+ declare function fetchBorosAccount(account: string, fetchImpl?: typeof fetch): Promise<BorosAccountState>;
17176
+
17177
+ declare function borosInitialMargin(m: BorosMarket, size: number, ratePct: number, ttmSec?: number): number;
17178
+ declare function borosMaintenanceMargin(m: BorosMarket, size: number, markPct: number, ttmSec?: number): number;
17179
+ declare function borosTakerFee(m: BorosMarket, size: number): number;
17180
+ interface BorosFill {
17181
+ /** Collateral units filled. */
17182
+ filled: number;
17183
+ /** Size-weighted average APR, percent. */
17184
+ avgAprPct: number | null;
17185
+ /** APR of the last level touched, percent. */
17186
+ worstAprPct: number | null;
17187
+ /** True when the book could not absorb the whole size. */
17188
+ partial: boolean;
17189
+ }
17190
+ /**
17191
+ * Walk the book for a taker of `size`: a SHORT hits `bids` from the top, a
17192
+ * LONG lifts `asks`. A sizing ESTIMATE — execution is bounded on-chain by the
17193
+ * tick and the average-rate check, never by this.
17194
+ */
17195
+ declare function walkBorosBook(levels: BorosBookLevel[], size: number): BorosFill;
17196
+ /**
17197
+ * How far the mark rate can move AGAINST a single position before the
17198
+ * account reaches maintenance (health 1). Approximate: one position, margin
17199
+ * at the floor, ignores funding accrual — published as an estimate only.
17200
+ * Returned in percentage POINTS of APR.
17201
+ */
17202
+ declare function borosRateMoveToLiquidation(m: BorosMarket, size: number, equity: number, markPct: number): number | null;
17203
+
17204
+ /** The term-sheet side a position takes — what the user agrees to. */
17205
+ interface BorosSideTerms {
17206
+ profileId: string;
17207
+ marketUid?: string;
17208
+ side: 'long' | 'short';
17209
+ info: TermInfo;
17210
+ }
17211
+ declare function borosSideTerms(m: BorosMarket, side: 'long' | 'short'): BorosSideTerms | undefined;
17212
+ /**
17213
+ * Funding-rate hedging — which collateral earns perp funding, and the Boros
17214
+ * position that swaps that floating income for a fixed rate (BOROS.md §5).
17215
+ *
17216
+ * The hedge is a SHORT YU: pay the venue's floating funding, receive the fixed
17217
+ * rate the book fills at. It locks the FUNDING component of a yield, sized on
17218
+ * a USD notional, until the Boros market matures — and only as well as one
17219
+ * venue's funding tracks the collateral's actual yield. That basis risk is the
17220
+ * reason the exposure table is explicit and small: an asset not on it gets no
17221
+ * automatic hedge.
17222
+ */
17223
+ interface FundingExposureProfile {
17224
+ id: string;
17225
+ label: string;
17226
+ /** Asset weights of the perp book behind the yield (sum 1). */
17227
+ assets: Record<string, number>;
17228
+ /** Venues the issuer hedges on, best-tracking first. */
17229
+ venues: string[];
17230
+ /** Share of the yield that is funding (the rest is staking / T-bills / …). */
17231
+ fundingShare: string;
17232
+ notes: string[];
17233
+ }
17234
+ declare const FUNDING_EXPOSURE_PROFILES: Record<string, FundingExposureProfile>;
17235
+ declare function fundingExposureOf(symbol: string | undefined): FundingExposureProfile | undefined;
17236
+ interface HedgeMarketFilter {
17237
+ /** Underlying asset of the funding (`BTC`, `ETH`). */
17238
+ asset?: string;
17239
+ /** Preferred collateral symbols, most preferred first (default USD₮0, then the asset). */
17240
+ collateralSymbols?: string[];
17241
+ /** Minimum days to maturity (default 7 — a 5-day `tThresh` makes shorter legs margin-expensive). */
17242
+ minDays?: number;
17243
+ venues?: string[];
17244
+ }
17245
+ /**
17246
+ * Candidate markets for a hedge leg, best first: tradable, not a spread, the
17247
+ * right asset, preferred collateral, preferred venue, then the soonest
17248
+ * maturity past `minDays` (the most liquid, in practice).
17249
+ */
17250
+ declare function rankBorosHedgeMarkets(markets: BorosMarket[], f: HedgeMarketFilter): BorosMarket[];
17251
+ interface BorosHedgeLegQuote {
17252
+ marketId: number;
17253
+ symbol: string;
17254
+ venue: string;
17255
+ asset: string;
17256
+ maturity: number;
17257
+ daysToMaturity: number;
17258
+ collateral: BorosMarket['collateral'];
17259
+ side: 'short' | 'long';
17260
+ notionalUsd: number;
17261
+ /** Collateral units (the order `size`, unscaled). */
17262
+ size: number;
17263
+ /** Expected average fixed APR of the fill, percent. */
17264
+ fixedAprPct: number | null;
17265
+ /** Worst level touched, percent. */
17266
+ worstAprPct: number | null;
17267
+ /** The venue's floating funding now, percent. */
17268
+ floatingAprPct: number | null;
17269
+ /** fixed − floating, percent: what the lock gains (+) or gives up (−) today. */
17270
+ lockSpreadPct: number | null;
17271
+ /** Share of the size the book can fill now. */
17272
+ fillRatio: number;
17273
+ costs: {
17274
+ /** One-off taker fee, collateral units and USD. */
17275
+ takerFee: number;
17276
+ takerFeeUsd: number;
17277
+ /** Settlement fee as an APR on notional, percent. */
17278
+ settleFeeAprPct: number | null;
17279
+ /** Everything annualised over the remaining term, percent of notional. */
17280
+ allInAprPct: number | null;
17281
+ };
17282
+ margin: {
17283
+ /** Initial margin the position needs, collateral units and USD. */
17284
+ initial: number;
17285
+ initialUsd: number;
17286
+ maintenance: number;
17287
+ /** The deposit the quote sizes, collateral units and USD (IM × buffer + fees + floor). */
17288
+ deposit: number;
17289
+ depositUsd: number;
17290
+ buffer: number;
17291
+ /** Approximate adverse APR move (percentage points) to liquidation at that deposit. */
17292
+ rateMoveToLiquidationPct: number | null;
17293
+ };
17294
+ /** The term sheet of the side taken (SHORT for a hedge). */
17295
+ terms?: BorosSideTerms;
17296
+ }
17297
+ /** Minimum cross-account cash the hub requires to trade (~$10 per the API). */
17298
+ declare const BOROS_MIN_CASH_USD = 10;
17299
+ declare function quoteBorosHedgeLeg(p: {
17300
+ market: BorosMarket;
17301
+ book: BorosOrderBook;
17302
+ notionalUsd: number;
17303
+ side?: 'short' | 'long';
17304
+ /** Deposit = IM × buffer (default 2). */
17305
+ marginBuffer?: number;
17306
+ /** Existing free margin on the cross account, collateral units. */
17307
+ existingFreeMargin?: number;
17308
+ }): BorosHedgeLegQuote;
17309
+
17310
+ export { ALCHEMIX_BLOCK_SECONDS, type AaveMetadata, type AaveV2Public, type AaveV2UserReserveResponse, type AaveV3Public, type AaveV3UserReserveResponse, type AdditionalYields, type AdminKind, type AlchemixMarketRaw, type AlchemixMarketsRaw, type AlchemixTransmuterRaw, ApiBookSource, type AprData, type AprPercent, type AssetInstrumentTerms, type AssetIssuerAttribution, type AssetQuality, type AssetRiskIndex, type AuctionWindow, type AvailabilityTerms, BOROS_API_BASE, BOROS_GOVERNANCE, BOROS_MIN_CASH_USD, BOROS_PROFILE_ID, type BalanceData, type BaseLendingPosition, type BasicReserveResponse, type BorosAccountState, BorosApiError, type BorosBookLevel, type BorosCollateral, type BorosCrossAccount, type BorosFill, type BorosHedgeLegQuote, type BorosMarket, type BorosOrderBook, type BorosPosition, type BorosSideTerms, type BorrowExitTerms, type BorrowTermSheet, type BuildTermSheetOptions, type BuildVaultTermSheetOptions, type ChainDiagnostic, type ChainLinkResponse, type ChainQuery, type ChainSummary, type CompoundV2Metadata, type CompoundV3Public, type CompoundV3UserReserveResponse, type ConfigEntry, type ConsensusDemotionConfig, type ConvertLenderUserDataOptions, type CoolerDripRaw, type CoolerMarketsRaw, type CoolerPositionInfo, type CoreValidators, type CounterpartyTerms, type CoverageInfo, type CreditDesk, DEFAULT_CONSENSUS_DEMOTION, DEFAULT_MIDNIGHT_API, DEFAULT_OUTLIER_GUARD, DEFAULT_PROFILE_ID, DEFAULT_STALE_REJECT_SECONDS, DEFAULT_TERMMAX_API, DEFAULT_TERM_ORDER_STORE, DOLOMITE_ISO_ID_PREFIX, type DeepPartial, type Denomination, type DepthMap, type DolomiteIsolationRow, type DolomiteSubAccount, type DssMarketRaw, type DssMarketsRaw, type DssPositionInfo, EARN_DESCRIPTIONS, EARN_LABELS, EARN_RATE_SOURCE_BY_PROVIDER, EMPTY_BALANCE, type EModeAssets, type EModeData, type EModeResult, EXACTLY_LENDER_KEY, EXPONENT_MATURED_REASON, type EarnActionInput, type EarnActionKind, type EarnAmount, type EarnAppliedDefaults, type EarnAprBreakdown, type EarnAsset, type EarnAvailability, type EarnBasket, type EarnBasketLeg, type EarnCapability, type EarnCollateralLeg, type EarnCurator, type EarnExclusions, type EarnExit, type EarnExitHistory, type EarnExitHistoryDay, type EarnFacetBucket, type EarnFacets, type EarnGating, type EarnLabelDimension, type EarnLendingPosition, type EarnMarket, type EarnMarketLabelInput, type EarnPosition, type EarnPositionAsset, type EarnPositionBase, type EarnPositionLeg, type EarnPositionSourceStatus, type EarnPositionSubAccount, type EarnPositionTotals, type EarnPositionUid, type EarnPositionsResponse, type EarnProtocol, type EarnProtocolAndCurator, type EarnRate, type EarnRateSource, type EarnRefs, type EarnResponse, type EarnRisk, type EarnSanityResult, type EarnShareToken, type EarnSourceStatus, type EarnVaultNormalizeOptions, type EarnVaultPosition, type EarnVenueKind, type EarnVocabulary, type EmitterRole, type EmitterRow, type EmitterSide, type EndpointFailure, type EnrichmentIndex, type EulerEarnVault, type EulerEarnVaults, type EulerV2Metadata, type ExactlyFixedPool, type ExactlyFixedPosition, type ExactlyMarketAccount, type ExactlyMarketsRaw, type ExactlyUserFixedPosition, type ExposureEntry, type ExposureTerms, type ExtraValidationCall, FIXED_YIELD_EARN_VENUE_PREFIXES, FLYING_TULIP_LENDER_KEY, FRACTION_RATE_PROVIDERS, FUNDING_EXPOSURE_PROFILES, type FeeTerm, type FeeWhen, type FeedObservation, type FeedStat, type FeedStatsMap, type FeedTimestampMap, type FetchListaVaultsFromChainOptions, type FetchMorphoVaultsFromChainOptions, type FetchOraclePricesOptions, type FetchPendlePtOptions, type FetchSpectraPtOptions, type FetchTokenBalancesOptions, type FetchTokenMetadataOptions, type FlattenPriorityConfig, type FluidDexShareState, type FluidDexStateMap, type FluidFToken, type FluidFTokens, type FlyingTulipAssetRaw, type FlyingTulipMarketsRaw, type FrankencoinMarketRaw, type FrankencoinMarketsRaw, type FrankencoinPositionInfo, type FraxlendPairRaw, type FraxlendPairsRaw, type FullLenderRewardsMap, type FundingExposureProfile, GMX_API_HOSTS, GMX_READ_CONTRACTS, GMX_SUPPORTED_CHAINS, type GenericCurrency, type GenericTokenList, type GetVaultPublicDataAllOptions, type GmxExecutionFees, type GmxPendingDeposit, type GmxPendingWithdrawal, type GmxReadContracts, type GmxUserBalance, type GmxUserPositions, type GmxUserPositionsOptions, type GmxVault, type GmxVaultKind, type GmxVaults, type GmxVaultsFetchOptions, type GovernancePower, type GovernanceRow, type GovernanceTerms, type GroupAccumulator, HYPERCORE_VAULT_REGISTRY, type HedgeMarketFilter, type HypercoreLockStatus, type HypercoreUserPositionsOptions, type HypercoreVault, type HypercoreVaultPosition, type HypercoreVaultRegistryEntry, type HypercoreVaults, type HypercoreVaultsFetchOptions, IDLE_MARKET_ID, INTERFACE_IDS, type IncompleteLenderRead, type IncompleteReason, type InitMetadata, type InitPublic, type InitUserReserveResponse, type InterfaceKind, type InvariantViolation, type InverseMarketRaw, type InverseMarketsRaw, type InversePositionInfo, type IssuerExposure, type IssuerRef, LAGOON_API_URL, LAGOON_CHAIN_IDS, type LagoonApiVault, type LagoonSyncMode, type LagoonVault, type LagoonVaults, type LenderAssetReward, type LenderConfigData, type LenderConfigMap, type LenderCrossPoolMeta, type LenderData, type LenderDataEntry, type LenderInfo, type LenderInfoMap, type LenderPublicBase, type LenderRewardsMap, type LenderSummary, type LenderToLenderCrossPoolMeta, type LenderTotalAmounts, type LenderUserParams, type LenderUserQuery, type LenderUserResponse, type LenderYieldComplete, type LenderYields$1 as LenderYields, LendingMode, type LiquidationPenaltyTerm, type LiquidationTerms, type LiquityBranchRaw, type LiquityDiscoveredTrove, type LiquityDiscovery, type LiquityMarketsRaw, type LiquitySpInfo, type LiquityTroveInfo, type ListaMarketOverrides, type LlamaLendMarketOverride, type LlamaLendMarketOverrides, type LlamaLendMarketRaw, type LlamaLendMarketsRaw, type LlamaLendPositionInfo, type LoopPostTradeMetrics, type LstDelegation, type LstDelegationKind, type LstValidator, type LstWithdrawalFetchOptions, type LstWithdrawalRegistryEntry, type LstWithdrawalRequest, type LstWithdrawalRequestsByLst, type LstWithdrawalStatus, MORPHO_LENS, MULTICALL_FAILURE, type MaturityTerms, MaxParamThresholds, type MergedUserData, type MetaFilter, type MidnightBook, type MidnightBookLevel, type MidnightBookSource, type MidnightChainBooks, type ModeBase, type ModeVariant, type MorphoMarketOverrides, type MorphoSubgraphProxyConfig, type MorphoUserMarketBalance, type MorphoUserReserveResponse, type MorphoVault, type MorphoVaults, type MulticallEndpointOptions, type MulticallRpcBatch, NON_EVM_VAULT_PROVIDERS, type NumberMap, type Open, type OracleBand, type OracleDiagnostics, type OraclePriceEntry, type OraclePricesResult, type OracleRiskRow, type OracleTerms, type OrderBookLendFacts, type OutlierGuardConfig, PASSTHROUGH_RATE_EPSILON, PENDLE_ASSETS_URL, PENDLE_CHAIN_IDS, PENDLE_MARKETS_URL, PREFIX_LENDERS, type PairRowDesks, type ParsedBalanceData, type ParsedEarnUid, type ParsedLendingEarnUid, type ParsedResponse, type ParsedUserBalance, type ParsedVaultEarnUid, type PendleApiAsset, type PendleApiMarket, type PendleApiMarketDetails, type PendlePtMarket, type PendlePtMarkets, type PermissionKind, type PermissionParams, type PoolData, type PoolSourceRow, type PoolWithMeta, type PortfolioSummary, type PortfolioTotals, type PositionConstraints, type PostTradeMetrics, type PreparedCall, type PreparedMergedMulticallParams, type PreparedMergedRpcCalls, type PreparedTokenBalanceRpcCalls, type PreparedUserDataRpcCalls, type PriceDerivation, type PriceSelection, type ProtocolParams, type ProviderOptions, RIPE_LENDER_KEY, type RateKind, type RateMenuEntry, type RateTerms, type RawRpcBatch, type RawRpcCall, type RawRpcResponse, type ReadFailurePolicy, type ReadUserPositionsParams, type ReadUserPositionsResult, type RedemptionTerms, type ResupplyMarketsRaw, type ResupplyPairIdentity, type ResupplyPairRaw, type ResupplyPositionInfo, type ResupplyWrappedMarket, type RewardSourceRef, type RewardStream, type RewardTerm, type RewardTokenRef, type RewardsDataByMarketUid, type RipeAccountInfo, type RipeAssetRaw, type RipeMarketsRaw, type RiverMarketRaw, type RiverMarketsRaw, type RiverPositionInfo, SDK_FRACTION_RATE_PROVIDERS, SPECTRA_NETWORKS, SPECTRA_RATE_MAX_PERCENT, SPECTRA_RATE_MIN_PERCENT, STABLECOIN_SYMBOLS, STCELO_MANAGER_ADDRESS, SVM_EARN_MINT_BUILDERS, SVM_EARN_VAULT_BUILDERS, SVM_VAULT_PROVIDERS, type SelectPricesOptions, type Severity, type SeverityFinding, type SiloVault, type SiloVaults, type SpectraApiMarket, type SpectraApiPool, type SpectraApiToken, type SpectraPtMarket, type SpectraPtMarkets, type StCeloValidatorGroup, type StaleFeedEntry, type StampOptions, type StructuredOraclePrices, type SubAccountSelection, type SubAccountSummary, type SumerPositionInput, type SummaryAprData, type SummaryBalanceData, type SupplyExitMode, type SupplyExitRoute, type SupplyExitTerms, type SupplyTermSheet, type SvmEarnBuildability, type SvmEarnBuilder, type SvmVaultProvider, type SwapSideTerms, type SwapTermSheet, TELLER_CALLS_PER_BID, DECIMAL_BASE as TERMMAX_DECIMAL_BASE, TERMMAX_LIQUIDATION_PENALTY, TERMMAX_LIQUIDATION_WINDOW_SECS, TERMMAX_LIQUIDATOR_BONUS, TERMMAX_MARKETS_PER_CALL, TERMMAX_PARTIAL_CLOSE_FACTOR, TERMMAX_PARTIAL_LIQUIDATION_THRESHOLD_USD, TERM_ADAPTERS, TERM_PROFILES, TERM_SHEET_SCHEMA_VERSION, type TellerDiscoveredBid, type TellerDiscovery, type TellerMarketsRaw, type TellerPoolRaw, type TermAdapter, type TermAssetRef, type TermAuctionOrder, type TermAuctionOrders, type TermBookSource, type TermBookTop, type TermFillNow, type TermFillNowSide, type TermInfo, type TermListing, type TermMarketRaw, TermMaxApiSource, type TermMaxBookTop, type TermMaxCurveSegment, type TermMaxDataSource, type TermMaxDiscovery, type TermMaxFeeConfig, type TermMaxMarketConfig, type TermMaxMarketRaw, type TermMaxOrderState, type TermProfile, type TermSheet, type TermSheetDigest, type TermSheetInput, type TermSheetVaultProvider, type TermSheetViolation, type TermStoreOrder, TermSubgraphSource, type TermTag, type TokenApprovalMeta, type TokenApprovalParams, type TokenBalanceEntry, type TokenBalanceQuery, type TokenBalanceResult, type TokenEntry, type TokenList, type TokenListInput, type TrackerDiagnostic, UPSHIFT_CHAIN_IDS, UPSHIFT_VAULTS_URL, type USDPriceMap, type UpshiftApiAsset, type UpshiftApiVault, type UpshiftVault, type UpshiftVaults, type UsddMarketRaw, type UsddMarketsRaw, type DssPositionInfo as UsddPositionInfo, type UserApr, type UserCallOptions, type UserConfig, type UserData, type UserDataResult, type UserDataTransport, type UserLendingPosition, type UsualRewardsClaimData, type UtilizationTerms, VAULT_PROVIDERS, VAULT_PROVIDER_PROFILE, VAULT_PROVIDER_TRAITS, VAULT_SHARE_PRICE_PROBE, VAULT_VENUE_PREFIX, VOLATILE_VAULT_OVERRIDES, type ValidationResult, type VaultAprResult, type VaultBalanceInput, type VaultClassification, type VaultClassificationFields, type VaultLookupEntry, type VaultMarketExposure, type VaultProvider, type VaultProviderTraits, type VaultPublicDataAll, type VaultPublicDataResult, type VaultSourceRow, type VaultTermInput, type VaultYieldSeries, type VaultYieldSnapshot, type YDaemonVault, YEARN_CHAIN_IDS, YEARN_YDAEMON_BASE, type YearnVault, type YearnVaultKind, type YearnVaults, type YieldDataByMarketUid, type YieldProfile, __resetResupplyUserCaches, accountDepositListKey, accountWithdrawalListKey, alchemixLenderKey, alchemixMytRate, alchemixRedemptionPace, appendSnapshot, applyEarnSanity, applyPositionDelta, attachImplications, attachPricesToFlashLiquidity, blockNumberFromTag, borosApi, borosInitialMargin, borosMaintenanceMargin, borosRateMoveToLiquidation, borosSideTerms, borosTakerFee, borrowDescription, borrowFindings, borrowHeadline, buildBorosTermSheet, buildExposures, buildFluidFTokensCall, buildLendingPositionUid, buildLiquityUserCall, buildLoopResult, buildMorphoTypeCall, buildMorphoTypeUserCallWithLens, buildPortfolioTotals, buildQueriesFromMeta, buildSumerAccumulators, buildSummaries, buildTellerUserCall, buildTermMaxUserCall, buildTermSheet, buildTermSheetsForGroup, buildVaultEarnUid, buildVaultLookup, buildVaultTermSheet, calculateLeverage, calculateNetApr, calculateOverallNetApr, calculateWeightedAverage, classifyFreshness, classifyReliability, classifyVault, clearPendleMarketsCache, clearSpectraMarketsCache, collateralSymbolsByVenue, collectFeedObservations, computeBorrowDelta, computeCloseTradeDeltas, computeCollateralSwapDeltas, computeDebtSwapDeltas, computeDepositDelta, computeEModeAnalysis, computeOpenTradeDeltas, computePostTradeMetrics, computeRepayDelta, computeSumerBorrowDelta, computeSumerDepositDelta, computeSumerRepayDelta, computeSumerWaterfall, computeSumerWithdrawDelta, computeVaultApr, computeWithdrawDelta, computeZapTradeDeltas, consensusReference, convertAlchemixMarketsToResponse, convertBorosMarket, convertCoolerMarketsToResponse, convertDssMarketsToResponse, convertExactlyMarketsToResponse, convertFlyingTulipMarketsToResponse, convertFrankencoinMarketsToResponse, convertFraxlendPairsToResponse, convertInverseMarketsToResponse, convertLenderUserDataResult, convertLiquityMarketsToResponse, convertLlamaLendMarketsToResponse, convertResupplyMarketsToResponse, convertRipeMarketsToResponse, convertRiverMarketsToResponse, convertTellerMarketsToResponse, convertTermMarketsToResponse, convertTermMaxMarketsToResponse, convertUsddMarketsToResponse, createMarketUid, createMidnightBookSource, createMultiAccountTypeUserState, createMulticallRpcCall, createRawRpcCalls, createTermBookSource, createTermMaxDataSource, decodeListaMarkets, decodeMarkets, decodePackedListaUserDataset, decodePackedMorphoUserDataset, deriveBorrowTags, deriveSupplyTags, deriveSwapTags, detectInterfaceKinds, dexResolverFor, disambiguateEarnNames, disambiguateOrderBookNames, dolomiteVaultAddress, dssIlkBytes32, dssKeyParts, dssLenderKey, duration, earnDescription, earnLabel, earnMarketFromPool, earnMarketFromVault, earnMarketLabel, earnPositionFromLenderEntry, earnPositionFromVaultBalance, earnPositionTotals, earnRateAtMaturity, earnRowSubtitle, earnUidFromMarketUid, earnVaultTerms, earnVenueKind, emitterCoverage, encodeBalanceFetcherCalldata, enrichTermSheet, enrichmentIndexFromRows, enumerateEmitters, exactlyPairLtv, exactlyPenaltyRateToAprPercent, exactlyWadRateToPercent, feePhrase, feedKeyOf, feedStatKey, fetchAlchemixMarkets, fetchBorosAccount, fetchBorosCollaterals, fetchBorosMarket, fetchBorosMarkets, fetchBorosOrderBook, fetchCoolerMarkets, fetchDolomiteAccountNumbers, fetchDolomiteSubAccounts, fetchDssMarkets, fetchEulerEarnVaults, fetchEulerEarnVaultsFromSubgraph, fetchEulerSubAccountIndexes, fetchExactlyMarkets, fetchFlashLiquidityForChain, fetchFluidDexState, fetchFluidFTokens, fetchFlyingTulipMarkets, fetchFrankencoinMarkets, fetchFraxlendPairs, fetchGeneralYields, fetchGeneralYieldsByMarketUid, fetchGmxExecutionFees, fetchGmxTickerPrices, fetchGmxVaults, fetchHypercoreVaults, fetchInverseMarkets, fetchLagoonApiVaults, fetchLagoonVaults, fetchLenderRewards, fetchLenderRewardsByMarketUid, fetchLiquityMarkets, fetchListaVaultsFromChain, fetchLlamaLendMarkets, fetchMorphoUserBalances, fetchMorphoUserPositionMarkets, fetchMorphoVaults, fetchMorphoVaultsFromApi, fetchMorphoVaultsFromChain, fetchOraclePrices, fetchPendleApiAssets, fetchPendleApiMarkets, fetchPendlePrices, fetchPendlePtMarkets, fetchResupplyMarkets, fetchRipeMarkets, fetchRiverMarkets, fetchSiloVaults, fetchSpectraApiMarkets, fetchSpectraPtMarkets, fetchTellerMarkets, fetchTermMarkets, fetchTermMaxMarkets, fetchTermStoreOrders, fetchTokenBalances, fetchTokenMetadata, fetchUpshiftApiVaults, fetchUpshiftVaults, fetchUsddMarkets, fetchUsualRewardsClaimData, fetchYearnApiVaults, fetchYearnVaults, fillableRemaining, filterActiveLenders, filterLenderMeta, filterLendersByProtocol, finalizeInfo, findingsFor, formatRaw, frankencoinKeyParts, frankencoinLenderKey, fraxlendAssetPerCollateral, fraxlendKeyParts, fraxlendLenderKey, fundingExposureOf, fuseLenderData, generateLendingPools, getAavesForChain, getAssetConfig, getBalanceForMarketUid, getBorrowCapacity, getCachedFluidDexState, getCachedLiquityTroves, getCachedTellerBids, getCachedTermMaxDiscovery, getCachedTermMaxMarket, getCachedTermMaxMarkets, getCoreValidators, getFluidFTokensConverter, getGmxApiHost, getGmxReadContracts, getGmxUserPositions, getHealthFactor, getHypercoreUserPositions, getHypercoreVaultRegistry, getLenderAssets, getLenderPublicData, getLenderPublicDataAll, getLenderPublicDataViaApi, getLenderUserDataMulti, getLenderUserDataResult, getLendersForChain, getLstDelegation, getLstValidators, getLstWithdrawalRegistry, getLstWithdrawalRequests, getMaxAmountClose, getMaxAmountCollateralSwap, getMaxAmountDebtSwap, getMaxAmountOpen, getMergedUserData, getMidnightChainBooks, getMorphoTypeMarketConverter, getReadFailurePolicy, getResolvedDolomiteAccountNumbers, getResolvedDolomiteSubAccounts, getStCeloValidatorGroups, getSubAccountAddress, getSubAccountIndex, getTermProfile, getVaultPublicDataAll, getVaultWithdrawalRequests, hasCritical, hasEulerEarnVaultSubgraph, hasLagoonVaults, hasMorphoPositionIndex, hasMorphoUserApi, hasMorphoUserSubgraph, hasPendleMarkets, hasSpectraMarkets, hasUpshiftVaults, hasYearnVaults, ilkToKeySegment, implausibleRatePercent, injectLenderInfoIntoEntries, inverseKeyParts, inverseLenderKey, isBoundNeed, isFailedCall, isFixedYieldEarnRow, isIlliquid, isLenderVenueKey, isLendingPosition, isLiveMarket as isLivePendleMarket, isLiveSpectraMarket, isMaturedTerm, isOrderBookCollateralLeg, isOrderBookLendRow, isSecondaryMarketOnly, isStablecoinSymbol, isSyntheticQuoteUnit, isUnearnableEarnRate, isUnrealizableEarnRate, isVaultPosition, isVaultVenue, isYearnV3, keySegmentToIlk, keysFromMaps, lenderApiOnly, lenderFamily, liquityCandidateTroveIds, liquityKeyParts, liquityLenderKey, llamaLendKeyParts, llamaLendLenderKey, marketKeysOf, meetsLiquidityFloor, mergeDeep, multicall3Abi, nanTo, needsLenderApproval, needsTokenApproval, noOpResult, normalizeToBytes, organizeUserQueries, parseBalanceFetcherResult, parseDolomiteSubAccountId, parseEarnUid, parseLenderKey, parseMergedResult, parseMulticallRpcResponses, parseExpirySeconds as parsePendleExpirySeconds, parseRawRpcBatchResponses, parseRawRpcResponses, parseCurveFee as parseSpectraCurveFee, parsePtRate as parseSpectraPtRate, parseTermMaxLtv, parseTokenBalanceResult, pct, assetKey as pendleAssetKey, pickPool as pickSpectraPool, positivePart, predictInverseEscrow, prepareLenderUserDataRpcCalls, prepareMergedMulticallParams, prepareMergedRpcCalls, prepareMulticallInputs, prepareTokenBalanceRpcCalls, priceGlvVaults, priceGmMarkets, probeAaveFeedTimestamps, protocolConsensus, protocolOf, pruneFeedStats, quoteBorosHedgeLeg, rankBorosHedgeMarkets, rankFindings, ratePercent, readUserPositions, readVaultSharePrices, rejectOutliers as rejectPriceOutliers, repairImpossibleTvl, resolveAdapter, resolveDerivation, resolveDolomiteRowIdentity, resolveEarnIdentity, resolveModeConfig, resolveStCeloDepositGroup, resolveVaultProfileId, resupplyKeyParts, resupplyLenderKey, resupplyMarketLabel, riverKeyParts, riverLenderKey, sanePercent as saneSpectraPercent, savingsAddresses, savingsBalanceKind, secondaryMarketVault, selectAssetGroupPrices, selectUsualRewardEntry, setMysticApiKey, shortDate, spectraAddress, spectraNetwork, spectraPoolsUrl, splitChainScopedAddress as splitPendleChainScopedAddress, stampCapabilities, stampEarnSubtitles, stampOrderBookLendRow, stampVaultClassification, stampVaultTermSheets, stripLeadingBrand, subAccountsOf, supplyDescription, supplyFindings, supplyHeadline, svmEarnBuildability, svmEarnBuilderKey, swapRoutedProvidersArePriceConsistent, swapSideDescription, swapSideHeadline, swapSideImplications, tellerBpsToPercent, tellerImpliedLtv, tellerLenderKey, tellerPoolFromLenderKey, termApiBaseUrl, termLenderKey, termMaxApiBase, borrowNif as termMaxBorrowNif, curveApr as termMaxCurveApr, curveAprNumber as termMaxCurveAprNumber, daysToMaturity as termMaxDaysToMaturity, lendNif as termMaxLendNif, mintGtFeeRatio as termMaxMintGtFeeRatio, ratioToNumber as termMaxRatioToNumber, ratioToPercent as termMaxRatioToPercent, termOfferRateToAprPct, termOrderStoreBaseUrl, tickToAprNumber, tickToPrice, toDigest, toDolomiteSubAccountId, toTermFillNow, toTermSheetInput, toVaultTermInput, trancheFromCounterparty, tryParseEarnUid, unflattenLenderData, updateFeedStats, usdValue, usddIlkBytes32, usddKeyParts, usddLenderKey, validateTermSheet, validateTermSheets, validateUserData, vaultSharesToAssets, vaultTermInputFromEarnMarket, vaultTermInputFromSourceRow, vaultTraits, vaultVenue, venueBrand, venueBrandKey, walkBorosBook, withMaturityLabel, withTrancheLabel };