@1delta/margin-fetcher 5.0.9 → 5.0.11
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 +149 -23
- package/dist/index.js +342 -45
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -33,6 +33,50 @@ interface RewardEntry$1 extends BaseYields$1 {
|
|
|
33
33
|
asset: string;
|
|
34
34
|
}
|
|
35
35
|
type RewardsList$1 = RewardEntry$1[];
|
|
36
|
+
/**
|
|
37
|
+
* The knob the BORROWER turns at open, when this config's numbers depend on one.
|
|
38
|
+
*
|
|
39
|
+
* Absent on every protocol whose factors are constants (Aave, Morpho, Compound…).
|
|
40
|
+
* Present where a per-loan choice moves them — LlamaLend's band count `N` moves
|
|
41
|
+
* the collateral factor; Liquity's chosen interest rate moves the cost.
|
|
42
|
+
*
|
|
43
|
+
* This describes the DOMAIN only. The value a given position actually chose is
|
|
44
|
+
* per-position and lives in the user-data `modes[posId]` slot — it cannot live
|
|
45
|
+
* here, because a lender with sub-accounts (Liquity troves, TermMax GTs) has
|
|
46
|
+
* several live values in one market at once.
|
|
47
|
+
*
|
|
48
|
+
* `kind` is what tells a consumer how to READ that number: without it a UI
|
|
49
|
+
* renders a band count of 15 as "e-mode 15", since `modes` historically only
|
|
50
|
+
* ever carried e-mode categories.
|
|
51
|
+
*
|
|
52
|
+
* See POSITION_PARAMETERS_PLAN.md.
|
|
53
|
+
*/
|
|
54
|
+
interface OpenParameter {
|
|
55
|
+
/** Discriminator — how to interpret the matching `modes[posId]` value. */
|
|
56
|
+
kind: 'llamalend-bands' | 'interest-rate';
|
|
57
|
+
/** Which of this config's numbers moves with the parameter. */
|
|
58
|
+
dimension: 'collateralFactor' | 'rate';
|
|
59
|
+
/** Allowed values: a continuous range, or a discrete set. */
|
|
60
|
+
domain: {
|
|
61
|
+
min: number;
|
|
62
|
+
max: number;
|
|
63
|
+
} | {
|
|
64
|
+
values: number[];
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* The value THIS config's numbers were computed at. A consumer that quotes a
|
|
68
|
+
* different value must recompute — it must not reuse `collateralFactor`.
|
|
69
|
+
*/
|
|
70
|
+
default: number;
|
|
71
|
+
/**
|
|
72
|
+
* `true` ⇒ fixed for the life of the loan; changing it means close & reopen
|
|
73
|
+
* (LlamaLend — `_add_collateral_borrow` reuses the tick width).
|
|
74
|
+
* `false` ⇒ adjustable in place (Liquity), subject to the friction below.
|
|
75
|
+
*/
|
|
76
|
+
immutableAfterOpen: boolean;
|
|
77
|
+
/** Adjustment cooldown, when mutable (Liquity `interestRateAdjCooldownSeconds`). */
|
|
78
|
+
adjustCooldownSeconds?: number;
|
|
79
|
+
}
|
|
36
80
|
interface ConfigEntry {
|
|
37
81
|
category: number;
|
|
38
82
|
borrowCollateralFactor: number;
|
|
@@ -63,6 +107,8 @@ interface ConfigEntry {
|
|
|
63
107
|
targetHealthFactor?: number;
|
|
64
108
|
collateralDisabled?: boolean;
|
|
65
109
|
debtDisabled?: boolean;
|
|
110
|
+
/** Borrower-chosen open-time parameter this config's numbers depend on. */
|
|
111
|
+
openParameter?: OpenParameter;
|
|
66
112
|
}
|
|
67
113
|
interface PoolConfig {
|
|
68
114
|
[category: string]: ConfigEntry;
|
|
@@ -630,6 +676,12 @@ interface LenderConfigData {
|
|
|
630
676
|
targetHealthFactor?: number;
|
|
631
677
|
collateralDisabled?: boolean;
|
|
632
678
|
debtDisabled?: boolean;
|
|
679
|
+
/**
|
|
680
|
+
* Borrower-chosen open-time parameter this config's numbers depend on.
|
|
681
|
+
* Mirrors the API-side `ConfigEntry.openParameter`; see
|
|
682
|
+
* POSITION_PARAMETERS_PLAN.md.
|
|
683
|
+
*/
|
|
684
|
+
openParameter?: OpenParameter;
|
|
633
685
|
}
|
|
634
686
|
interface ModeBase {
|
|
635
687
|
category: number;
|
|
@@ -3271,6 +3323,16 @@ interface ResupplyPairIdentity {
|
|
|
3271
3323
|
underlying: string;
|
|
3272
3324
|
collateralDecimals: number;
|
|
3273
3325
|
underlyingDecimals: number;
|
|
3326
|
+
/**
|
|
3327
|
+
* The asset the WRAPPED market lends against (sfrxUSD, WBTC, …), read from
|
|
3328
|
+
* the collateral vault itself. Immutable, so it is cached with the identity.
|
|
3329
|
+
*
|
|
3330
|
+
* This is the per-market image source: every CurveLend pair's own two rows
|
|
3331
|
+
* are crvUSD/reUSD, so nothing else distinguishes them visually.
|
|
3332
|
+
*/
|
|
3333
|
+
wrappedCollateralToken?: string;
|
|
3334
|
+
/** Which family answered — `collateral_token()` vs `collateralContract()`. */
|
|
3335
|
+
wrappedFamily?: 'curvelend' | 'fraxlend';
|
|
3274
3336
|
}
|
|
3275
3337
|
/**
|
|
3276
3338
|
* One Resupply pair after the state batch. Raw bigints; `null` = failed
|
|
@@ -3304,11 +3366,41 @@ interface ResupplyPairRaw {
|
|
|
3304
3366
|
collateralPrice: bigint | null;
|
|
3305
3367
|
/** Cached `1e36 / collateralPrice` from the pair (stale between writes). */
|
|
3306
3368
|
exchangeRate: bigint | null;
|
|
3369
|
+
/** Convex pool id the collateral is staked into. 0 = not staked, no rewards. */
|
|
3370
|
+
convexPid: bigint | null;
|
|
3371
|
+
/** This pair's WEIGHT in the RSUP emission stream (not a token balance). */
|
|
3372
|
+
rsupWeight: bigint | null;
|
|
3373
|
+
/** Convex reward streams on the staked collateral: reward wei per second per
|
|
3374
|
+
* 1e18 of staked SHARES, aggregated by token (a pool can list the same
|
|
3375
|
+
* token twice). */
|
|
3376
|
+
collateralRewards: {
|
|
3377
|
+
token: string;
|
|
3378
|
+
ratePerSecPerShare: bigint;
|
|
3379
|
+
}[];
|
|
3380
|
+
}
|
|
3381
|
+
/**
|
|
3382
|
+
* Chain-level RSUP emission state — one read for the whole roster.
|
|
3383
|
+
*
|
|
3384
|
+
* `pairEmissions` stakes governance WEIGHT, not tokens: `totalWeight` is the
|
|
3385
|
+
* sum over all pairs and each pair's slice is its `rsupWeight`. A pair's RSUP
|
|
3386
|
+
* per second is `rewardRate x rsupWeight / totalWeight`.
|
|
3387
|
+
*/
|
|
3388
|
+
interface ResupplyRsupEmissions {
|
|
3389
|
+
/** The RSUP token. */
|
|
3390
|
+
govToken: string;
|
|
3391
|
+
/** RSUP wei per second across ALL pairs. */
|
|
3392
|
+
rewardRate: bigint;
|
|
3393
|
+
/** Sum of every pair's weight. */
|
|
3394
|
+
totalWeight: bigint;
|
|
3395
|
+
/** Emissions stop here; past it the stream pays nothing. */
|
|
3396
|
+
periodFinish: bigint;
|
|
3307
3397
|
}
|
|
3308
3398
|
interface ResupplyMarketsRaw {
|
|
3309
3399
|
lender: string;
|
|
3310
3400
|
config?: ResupplyConfigChain;
|
|
3311
3401
|
pairs: ResupplyPairRaw[];
|
|
3402
|
+
/** Absent when the stream has ended or could not be read. */
|
|
3403
|
+
rsup?: ResupplyRsupEmissions;
|
|
3312
3404
|
}
|
|
3313
3405
|
|
|
3314
3406
|
/**
|
|
@@ -3349,6 +3441,12 @@ declare function fetchResupplyMarkets(lender: string, chainId: string): Promise<
|
|
|
3349
3441
|
* `CurveLend:` names map to LlamaLend `version: 1` and `CurveLendV2:` to
|
|
3350
3442
|
* `version: 2`. The other 5 are Fraxlend pairs, which we do not integrate as a
|
|
3351
3443
|
* lender, so they resolve to `provider: 'fraxlend'` with no market key.
|
|
3444
|
+
*
|
|
3445
|
+
* The roster is an ENRICHMENT, not the source of the identity: the wrapped
|
|
3446
|
+
* collateral is read from the vault itself (`collateral_token()` on a Curve
|
|
3447
|
+
* Lend vault, `collateralContract()` on a Fraxlend pair — the same probe
|
|
3448
|
+
* Resupply's own `Utilities` uses to tell the families apart), so all 21 pairs
|
|
3449
|
+
* carry one whether or not LlamaLend metadata is published.
|
|
3352
3450
|
*/
|
|
3353
3451
|
interface ResupplyWrappedMarket {
|
|
3354
3452
|
/** Which protocol the collateral position lives in. */
|
|
@@ -3367,7 +3465,32 @@ interface ResupplyWrappedMarket {
|
|
|
3367
3465
|
version?: 1 | 2;
|
|
3368
3466
|
/** What the wrapped market lends against, e.g. `sfrxUSD`. */
|
|
3369
3467
|
collateralSymbol?: string;
|
|
3468
|
+
/**
|
|
3469
|
+
* The wrapped market's collateral TOKEN.
|
|
3470
|
+
*
|
|
3471
|
+
* This is the per-market image source. Every CurveLend pair looks identical
|
|
3472
|
+
* on our two rows — both are crvUSD/reUSD — so the only thing that visually
|
|
3473
|
+
* distinguishes `crvUSD/sfrxUSD` from `crvUSD/WBTC` is the asset the WRAPPED
|
|
3474
|
+
* market lends against, which is not one of our rows. Consumers resolve the
|
|
3475
|
+
* token icon from this address; the brand icon (`lenderIcon`) stays the
|
|
3476
|
+
* fallback and is deliberately still one image for all 21 pairs.
|
|
3477
|
+
*/
|
|
3478
|
+
collateralToken?: string;
|
|
3479
|
+
collateralDecimals?: number;
|
|
3370
3480
|
}
|
|
3481
|
+
/**
|
|
3482
|
+
* Human label for a pair, from its on-chain `name()`.
|
|
3483
|
+
*
|
|
3484
|
+
* The pair deployer emits `Resupply Pair (CurveLend: crvUSD/sfrxUSD) - 1`:
|
|
3485
|
+
* the useful part is inside the parentheses — it names the WRAPPED market,
|
|
3486
|
+
* which is the only thing distinguishing one Resupply pair from another. The
|
|
3487
|
+
* `- N` suffix is a redeploy counter (there are two `crvUSD/sDOLA` pairs), so
|
|
3488
|
+
* it is kept only when it is not `- 1`.
|
|
3489
|
+
*
|
|
3490
|
+
* Falls back to the raw name rather than inventing one: a pair whose name
|
|
3491
|
+
* stops matching this shape should read oddly, not silently lose its identity.
|
|
3492
|
+
*/
|
|
3493
|
+
declare function resupplyMarketLabel(rawName: string): string;
|
|
3371
3494
|
/**
|
|
3372
3495
|
* Synthesized per-pair lender key, e.g. `RESUPPLY_1_C5184CCC…`. The chain id
|
|
3373
3496
|
* rides in the key (Fluid/River/Frankencoin convention) even though Resupply
|
|
@@ -3556,28 +3679,6 @@ declare function llamaLendKeyParts(key: string): {
|
|
|
3556
3679
|
lender: string;
|
|
3557
3680
|
controller: string;
|
|
3558
3681
|
} | undefined;
|
|
3559
|
-
/**
|
|
3560
|
-
* Map the LlamaLend batch into the shared `MorphoGeneralPublicResponse` shape,
|
|
3561
|
-
* keyed by `LLAMALEND_<CONTROLLER_ADDR>` — one key per market.
|
|
3562
|
-
*
|
|
3563
|
-
* Per market, two entries in the isolated-pair layout:
|
|
3564
|
-
*
|
|
3565
|
-
* - COLLATERAL entry — deposit-only. `collateralFactor` is the LTV AT THE
|
|
3566
|
-
* MARKET'S DEFAULT BAND COUNT, because LlamaLend has no market-constant
|
|
3567
|
-
* LTV: it is a function of `N` and moves 0.886..0.991 on a single market.
|
|
3568
|
-
* The whole curve rides along in `params.market.llamalend.bandLtv` so the
|
|
3569
|
-
* UI can show the trade-off and the leverage sizer can use the real number
|
|
3570
|
-
* for the `N` the user actually picks.
|
|
3571
|
-
* - LOAN entry — the borrowed token. Supply side is the ERC-4626 vault, so
|
|
3572
|
-
* unlike Inverse this one HAS `totalDeposits`.
|
|
3573
|
-
*
|
|
3574
|
-
* SOFT LIQUIDATION is the thing this shape cannot express natively, so it is
|
|
3575
|
-
* carried explicitly in the descriptor. `liquidationPenalty` here is the HARD
|
|
3576
|
-
* liquidation bonus only — it applies below the entire band range. Inside the
|
|
3577
|
-
* range a position is converted gradually through the market's own AMM with no
|
|
3578
|
-
* penalty at all, and a consumer that renders `liquidationPenalty` as "what
|
|
3579
|
-
* you lose when the price hits X" is describing the wrong event.
|
|
3580
|
-
*/
|
|
3581
3682
|
declare function convertLlamaLendMarketsToResponse(raw: LlamaLendMarketsRaw, chainId: string, prices?: {
|
|
3582
3683
|
[asset: string]: number;
|
|
3583
3684
|
}, additionalYields?: AdditionalYields, tokens?: GenericTokenList): {
|
|
@@ -8850,6 +8951,31 @@ interface LiquidationTerms {
|
|
|
8850
8951
|
bandLtv?: Record<string, number>;
|
|
8851
8952
|
/** Band count `ltv` / `liquidationLtv` were computed at. */
|
|
8852
8953
|
defaultBands?: number;
|
|
8954
|
+
/**
|
|
8955
|
+
* The knob the BORROWER turns at open, when the factors above depend on one.
|
|
8956
|
+
*
|
|
8957
|
+
* Mirrors `ConfigEntry.openParameter` — it is the same descriptor, surfaced on
|
|
8958
|
+
* the term sheet because that is where a UI edits terms rather than reads
|
|
8959
|
+
* them. Describes the DOMAIN only; the value a given position chose lives in
|
|
8960
|
+
* the per-position `modes[posId]` slot.
|
|
8961
|
+
*
|
|
8962
|
+
* Prefer this over {@link bandLtv}: the curve is sampled at four points and is
|
|
8963
|
+
* absent whenever it could not be computed, whereas this is the whole domain
|
|
8964
|
+
* and is always available. See POSITION_PARAMETERS_PLAN.md.
|
|
8965
|
+
*/
|
|
8966
|
+
openParameter?: {
|
|
8967
|
+
kind: 'llamalend-bands' | 'interest-rate';
|
|
8968
|
+
dimension: 'collateralFactor' | 'rate';
|
|
8969
|
+
domain: {
|
|
8970
|
+
min: number;
|
|
8971
|
+
max: number;
|
|
8972
|
+
} | {
|
|
8973
|
+
values: number[];
|
|
8974
|
+
};
|
|
8975
|
+
default: number;
|
|
8976
|
+
immutableAfterOpen: boolean;
|
|
8977
|
+
adjustCooldownSeconds?: number;
|
|
8978
|
+
};
|
|
8853
8979
|
/**
|
|
8854
8980
|
* Aave-style escalation: the close factor rises to 1 once health falls below
|
|
8855
8981
|
* this. Without it, `closeFactor: 0.5` understates the worst case.
|
|
@@ -9712,4 +9838,4 @@ interface TermAdapter {
|
|
|
9712
9838
|
declare const TERM_ADAPTERS: TermAdapter[];
|
|
9713
9839
|
declare function resolveAdapter(lender: string): TermAdapter | undefined;
|
|
9714
9840
|
|
|
9715
|
-
export { type AaveMetadata, type AaveV2Public, type AaveV2UserReserveResponse, type AaveV3Public, type AaveV3UserReserveResponse, type AdditionalYields, type AdminKind, ApiBookSource, type AprData, type AprPercent, type AssetQuality, type AssetRiskIndex, type AuctionWindow, type AvailabilityTerms, type BalanceData, type BaseLendingPosition, type BasicReserveResponse, type BorrowExitTerms, type BorrowTermSheet, type BuildTermSheetOptions, type ChainDiagnostic, type ChainLinkResponse, type ChainQuery, type ChainSummary, type CompoundV2Metadata, type CompoundV3Public, type CompoundV3UserReserveResponse, type ConfigEntry, type ConvertLenderUserDataOptions, type CoreValidators, type CounterpartyTerms, type CoverageInfo, DEFAULT_MIDNIGHT_API, DEFAULT_OUTLIER_GUARD, DEFAULT_PROFILE_ID, DEFAULT_STALE_REJECT_SECONDS, DEFAULT_TERMMAX_API, type DeepPartial, type Denomination, type DepthMap, EMPTY_BALANCE, type EModeAssets, type EModeData, type EModeResult, EXACTLY_LENDER_KEY, 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, type FeeTerm, type FeeWhen, type FeedObservation, type FeedStat, type FeedStatsMap, type FeedTimestampMap, type FetchListaVaultsFromChainOptions, type FetchMorphoVaultsFromChainOptions, type FetchOraclePricesOptions, type FetchTokenBalancesOptions, type FlattenPriorityConfig, type FluidFToken, type FluidFTokens, type FrankencoinMarketRaw, type FrankencoinMarketsRaw, type FrankencoinPositionInfo, 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, 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 LiquidationPenaltyTerm, type LiquidationTerms, type LiquityBranchRaw, type LiquityDiscoveredTrove, type LiquityDiscovery, type LiquityMarketsRaw, type LiquitySpInfo, type LiquityTroveInfo, type ListaMarketOverrides, 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 MidnightBook, type MidnightBookLevel, type MidnightBookSource, type ModeBase, type ModeVariant, type MorphoMarketOverrides, type MorphoSubgraphProxyConfig, type MorphoUserMarketBalance, type MorphoUserReserveResponse, type MorphoVault, type MorphoVaults, type MulticallEndpointOptions, type MulticallRpcBatch, type NumberMap, type Open, type OracleBand, type OracleDiagnostics, type OraclePriceEntry, type OraclePricesResult, type OracleRiskRow, type OracleTerms, type OutlierGuardConfig, type ParsedBalanceData, type ParsedResponse, type ParsedUserBalance, type PermissionKind, type PermissionParams, type PoolData, type PoolWithMeta, type PortfolioSummary, type PortfolioTotals, type PositionConstraints, type PostTradeMetrics, type PreparedCall, type PreparedMergedMulticallParams, type PreparedMergedRpcCalls, type PreparedTokenBalanceRpcCalls, type PreparedUserDataRpcCalls, type PriceDerivation, type PriceSelection, type ProtocolParams, type ProviderOptions, type RateKind, type RateMenuEntry, type RateTerms, type RawRpcBatch, type RawRpcCall, type RawRpcResponse, type ReadFailurePolicy, type RedemptionTerms, type ResupplyMarketsRaw, type ResupplyPairIdentity, type ResupplyPairRaw, type ResupplyPositionInfo, type ResupplyWrappedMarket, type RewardTerm, type RiverMarketRaw, type RiverMarketsRaw, type RiverPositionInfo, STABLECOIN_SYMBOLS, STCELO_MANAGER_ADDRESS, type SelectPricesOptions, type Severity, type SeverityFinding, type SiloVault, type SiloVaults, type StCeloValidatorGroup, type StaleFeedEntry, type StampOptions, type StructuredOraclePrices, type SubAccountSummary, type SumerPositionInput, type SummaryAprData, type SummaryBalanceData, type SupplyExitMode, type SupplyExitTerms, type SupplyTermSheet, 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, 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 TermInfo, type TermListing, type TermMarketRaw, TermMaxApiSource, type TermMaxBookTop, type TermMaxCurveSegment, type TermMaxDataSource, type TermMaxDiscovery, type TermMaxFeeConfig, type TermMaxMarketConfig, type TermMaxMarketRaw, type TermMaxOrderState, type TermProfile, type TermSheet, type TermSheetDigest, type TermSheetInput, type TermSheetViolation, 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 UsddPositionInfo, type UserApr, type UserConfig, type UserData, type UserDataResult, type UserLendingPosition, type UtilizationTerms, VAULT_SHARE_PRICE_PROBE, VOLATILE_VAULT_OVERRIDES, type ValidationResult, 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, __resetResupplyUserCaches, accountDepositListKey, accountWithdrawalListKey, appendSnapshot, applyPositionDelta, attachImplications, attachPricesToFlashLiquidity, borrowDescription, borrowFindings, borrowHeadline, buildExposures, buildFluidFTokensCall, buildLiquityUserCall, buildLoopResult, buildMorphoTypeCall, buildMorphoTypeUserCallWithLens, buildPortfolioTotals, buildSumerAccumulators, buildSummaries, buildTellerUserCall, buildTermMaxUserCall, buildTermSheet, buildTermSheetsForGroup, 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, convertFrankencoinMarketsToResponse, convertInverseMarketsToResponse, convertLenderUserDataResult, convertLiquityMarketsToResponse, convertLlamaLendMarketsToResponse, convertResupplyMarketsToResponse, convertRiverMarketsToResponse, convertTellerMarketsToResponse, convertTermMarketsToResponse, convertTermMaxMarketsToResponse, convertUsddMarketsToResponse, createMarketUid, createMidnightBookSource, createMulticallRpcCall, createRawRpcCalls, createTermBookSource, createTermMaxDataSource, decodeListaMarkets, decodeMarkets, decodePackedListaUserDataset, decodePackedMorphoUserDataset, deriveBorrowTags, deriveSupplyTags, detectInterfaceKinds, duration, encodeBalanceFetcherCalldata, enrichTermSheet, enrichmentIndexFromRows, exactlyPairLtv, exactlyPenaltyRateToAprPercent, exactlyWadRateToPercent, feePhrase, feedKeyOf, feedStatKey, fetchDolomiteAccountNumbers, fetchEulerEarnVaults, fetchEulerEarnVaultsFromSubgraph, fetchEulerSubAccountIndexes, fetchExactlyMarkets, fetchFlashLiquidityForChain, fetchFluidFTokens, fetchFrankencoinMarkets, fetchGeneralYields, fetchGeneralYieldsByMarketUid, fetchGmxExecutionFees, fetchGmxTickerPrices, fetchGmxVaults, fetchHypercoreVaults, fetchInverseMarkets, fetchLagoonApiVaults, fetchLagoonVaults, fetchLiquityMarkets, fetchListaVaultsFromChain, fetchLlamaLendMarkets, fetchMorphoUserBalances, fetchMorphoUserPositionMarkets, fetchMorphoVaults, fetchMorphoVaultsFromApi, fetchMorphoVaultsFromChain, fetchOraclePrices, fetchPendlePrices, fetchResupplyMarkets, fetchRiverMarkets, fetchSiloVaults, fetchTellerMarkets, fetchTermMarkets, fetchTermMaxMarkets, fetchTokenBalances, fetchTokenMetadata, fetchUpshiftApiVaults, fetchUpshiftVaults, fetchUsddMarkets, fetchYearnApiVaults, fetchYearnVaults, filterActiveLenders, filterLendersByProtocol, finalizeInfo, findingsFor, frankencoinKeyParts, frankencoinLenderKey, 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, getReadFailurePolicy, getResolvedDolomiteAccountNumbers, getStCeloValidatorGroups, getSubAccountAddress, getSubAccountIndex, getTermProfile, getVaultPublicDataAll, getVaultWithdrawalRequests, hasCritical, hasEulerEarnVaultSubgraph, hasLagoonVaults, hasMorphoPositionIndex, hasMorphoUserApi, hasMorphoUserSubgraph, hasUpshiftVaults, hasYearnVaults, inverseKeyParts, inverseLenderKey, isFailedCall, isStablecoinSymbol, isYearnV3, keysFromMaps, lenderApiOnly, lenderFamily, liquityCandidateTroveIds, liquityKeyParts, liquityLenderKey, llamaLendKeyParts, llamaLendLenderKey, mergeDeep, multicall3Abi, nanTo, needsLenderApproval, needsTokenApproval, noOpResult, normalizeToBytes, parseBalanceFetcherResult, parseMergedResult, parseMulticallRpcResponses, parseRawRpcBatchResponses, parseRawRpcResponses, parseTermMaxLtv, parseTokenBalanceResult, pct, positivePart, predictInverseEscrow, prepareLenderUserDataRpcCalls, prepareMergedMulticallParams, prepareMergedRpcCalls, prepareMulticallInputs, prepareTokenBalanceRpcCalls, priceGlvVaults, priceGmMarkets, probeAaveFeedTimestamps, pruneFeedStats, rankFindings, readVaultSharePrices, rejectOutliers as rejectPriceOutliers, resolveAdapter, resolveDerivation, resolveStCeloDepositGroup, resupplyKeyParts, resupplyLenderKey, riverKeyParts, riverLenderKey, selectAssetGroupPrices, shortDate, stampVaultClassification, supplyDescription, supplyFindings, supplyHeadline, 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, toDigest, toTermSheetInput, unflattenLenderData, updateFeedStats, usddIlkBytes32, usddKeyParts, usddLenderKey, validateTermSheet, validateTermSheets, validateUserData };
|
|
9841
|
+
export { type AaveMetadata, type AaveV2Public, type AaveV2UserReserveResponse, type AaveV3Public, type AaveV3UserReserveResponse, type AdditionalYields, type AdminKind, ApiBookSource, type AprData, type AprPercent, type AssetQuality, type AssetRiskIndex, type AuctionWindow, type AvailabilityTerms, type BalanceData, type BaseLendingPosition, type BasicReserveResponse, type BorrowExitTerms, type BorrowTermSheet, type BuildTermSheetOptions, type ChainDiagnostic, type ChainLinkResponse, type ChainQuery, type ChainSummary, type CompoundV2Metadata, type CompoundV3Public, type CompoundV3UserReserveResponse, type ConfigEntry, type ConvertLenderUserDataOptions, type CoreValidators, type CounterpartyTerms, type CoverageInfo, DEFAULT_MIDNIGHT_API, DEFAULT_OUTLIER_GUARD, DEFAULT_PROFILE_ID, DEFAULT_STALE_REJECT_SECONDS, DEFAULT_TERMMAX_API, type DeepPartial, type Denomination, type DepthMap, EMPTY_BALANCE, type EModeAssets, type EModeData, type EModeResult, EXACTLY_LENDER_KEY, 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, type FeeTerm, type FeeWhen, type FeedObservation, type FeedStat, type FeedStatsMap, type FeedTimestampMap, type FetchListaVaultsFromChainOptions, type FetchMorphoVaultsFromChainOptions, type FetchOraclePricesOptions, type FetchTokenBalancesOptions, type FlattenPriorityConfig, type FluidFToken, type FluidFTokens, type FrankencoinMarketRaw, type FrankencoinMarketsRaw, type FrankencoinPositionInfo, 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, 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 LiquidationPenaltyTerm, type LiquidationTerms, type LiquityBranchRaw, type LiquityDiscoveredTrove, type LiquityDiscovery, type LiquityMarketsRaw, type LiquitySpInfo, type LiquityTroveInfo, type ListaMarketOverrides, 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 MidnightBook, type MidnightBookLevel, type MidnightBookSource, type ModeBase, type ModeVariant, type MorphoMarketOverrides, type MorphoSubgraphProxyConfig, type MorphoUserMarketBalance, type MorphoUserReserveResponse, type MorphoVault, type MorphoVaults, type MulticallEndpointOptions, type MulticallRpcBatch, type NumberMap, type Open, type OracleBand, type OracleDiagnostics, type OraclePriceEntry, type OraclePricesResult, type OracleRiskRow, type OracleTerms, type OutlierGuardConfig, type ParsedBalanceData, type ParsedResponse, type ParsedUserBalance, type PermissionKind, type PermissionParams, type PoolData, type PoolWithMeta, type PortfolioSummary, type PortfolioTotals, type PositionConstraints, type PostTradeMetrics, type PreparedCall, type PreparedMergedMulticallParams, type PreparedMergedRpcCalls, type PreparedTokenBalanceRpcCalls, type PreparedUserDataRpcCalls, type PriceDerivation, type PriceSelection, type ProtocolParams, type ProviderOptions, type RateKind, type RateMenuEntry, type RateTerms, type RawRpcBatch, type RawRpcCall, type RawRpcResponse, type ReadFailurePolicy, type RedemptionTerms, type ResupplyMarketsRaw, type ResupplyPairIdentity, type ResupplyPairRaw, type ResupplyPositionInfo, type ResupplyWrappedMarket, type RewardTerm, type RiverMarketRaw, type RiverMarketsRaw, type RiverPositionInfo, STABLECOIN_SYMBOLS, STCELO_MANAGER_ADDRESS, type SelectPricesOptions, type Severity, type SeverityFinding, type SiloVault, type SiloVaults, type StCeloValidatorGroup, type StaleFeedEntry, type StampOptions, type StructuredOraclePrices, type SubAccountSummary, type SumerPositionInput, type SummaryAprData, type SummaryBalanceData, type SupplyExitMode, type SupplyExitTerms, type SupplyTermSheet, 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, 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 TermInfo, type TermListing, type TermMarketRaw, TermMaxApiSource, type TermMaxBookTop, type TermMaxCurveSegment, type TermMaxDataSource, type TermMaxDiscovery, type TermMaxFeeConfig, type TermMaxMarketConfig, type TermMaxMarketRaw, type TermMaxOrderState, type TermProfile, type TermSheet, type TermSheetDigest, type TermSheetInput, type TermSheetViolation, 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 UsddPositionInfo, type UserApr, type UserConfig, type UserData, type UserDataResult, type UserLendingPosition, type UtilizationTerms, VAULT_SHARE_PRICE_PROBE, VOLATILE_VAULT_OVERRIDES, type ValidationResult, 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, __resetResupplyUserCaches, accountDepositListKey, accountWithdrawalListKey, appendSnapshot, applyPositionDelta, attachImplications, attachPricesToFlashLiquidity, borrowDescription, borrowFindings, borrowHeadline, buildExposures, buildFluidFTokensCall, buildLiquityUserCall, buildLoopResult, buildMorphoTypeCall, buildMorphoTypeUserCallWithLens, buildPortfolioTotals, buildSumerAccumulators, buildSummaries, buildTellerUserCall, buildTermMaxUserCall, buildTermSheet, buildTermSheetsForGroup, 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, convertFrankencoinMarketsToResponse, convertInverseMarketsToResponse, convertLenderUserDataResult, convertLiquityMarketsToResponse, convertLlamaLendMarketsToResponse, convertResupplyMarketsToResponse, convertRiverMarketsToResponse, convertTellerMarketsToResponse, convertTermMarketsToResponse, convertTermMaxMarketsToResponse, convertUsddMarketsToResponse, createMarketUid, createMidnightBookSource, createMulticallRpcCall, createRawRpcCalls, createTermBookSource, createTermMaxDataSource, decodeListaMarkets, decodeMarkets, decodePackedListaUserDataset, decodePackedMorphoUserDataset, deriveBorrowTags, deriveSupplyTags, detectInterfaceKinds, duration, encodeBalanceFetcherCalldata, enrichTermSheet, enrichmentIndexFromRows, exactlyPairLtv, exactlyPenaltyRateToAprPercent, exactlyWadRateToPercent, feePhrase, feedKeyOf, feedStatKey, fetchDolomiteAccountNumbers, fetchEulerEarnVaults, fetchEulerEarnVaultsFromSubgraph, fetchEulerSubAccountIndexes, fetchExactlyMarkets, fetchFlashLiquidityForChain, fetchFluidFTokens, fetchFrankencoinMarkets, fetchGeneralYields, fetchGeneralYieldsByMarketUid, fetchGmxExecutionFees, fetchGmxTickerPrices, fetchGmxVaults, fetchHypercoreVaults, fetchInverseMarkets, fetchLagoonApiVaults, fetchLagoonVaults, fetchLiquityMarkets, fetchListaVaultsFromChain, fetchLlamaLendMarkets, fetchMorphoUserBalances, fetchMorphoUserPositionMarkets, fetchMorphoVaults, fetchMorphoVaultsFromApi, fetchMorphoVaultsFromChain, fetchOraclePrices, fetchPendlePrices, fetchResupplyMarkets, fetchRiverMarkets, fetchSiloVaults, fetchTellerMarkets, fetchTermMarkets, fetchTermMaxMarkets, fetchTokenBalances, fetchTokenMetadata, fetchUpshiftApiVaults, fetchUpshiftVaults, fetchUsddMarkets, fetchYearnApiVaults, fetchYearnVaults, filterActiveLenders, filterLendersByProtocol, finalizeInfo, findingsFor, frankencoinKeyParts, frankencoinLenderKey, 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, getReadFailurePolicy, getResolvedDolomiteAccountNumbers, getStCeloValidatorGroups, getSubAccountAddress, getSubAccountIndex, getTermProfile, getVaultPublicDataAll, getVaultWithdrawalRequests, hasCritical, hasEulerEarnVaultSubgraph, hasLagoonVaults, hasMorphoPositionIndex, hasMorphoUserApi, hasMorphoUserSubgraph, hasUpshiftVaults, hasYearnVaults, inverseKeyParts, inverseLenderKey, isFailedCall, isStablecoinSymbol, isYearnV3, keysFromMaps, lenderApiOnly, lenderFamily, liquityCandidateTroveIds, liquityKeyParts, liquityLenderKey, llamaLendKeyParts, llamaLendLenderKey, mergeDeep, multicall3Abi, nanTo, needsLenderApproval, needsTokenApproval, noOpResult, normalizeToBytes, parseBalanceFetcherResult, parseMergedResult, parseMulticallRpcResponses, parseRawRpcBatchResponses, parseRawRpcResponses, parseTermMaxLtv, parseTokenBalanceResult, pct, positivePart, predictInverseEscrow, prepareLenderUserDataRpcCalls, prepareMergedMulticallParams, prepareMergedRpcCalls, prepareMulticallInputs, prepareTokenBalanceRpcCalls, priceGlvVaults, priceGmMarkets, probeAaveFeedTimestamps, pruneFeedStats, rankFindings, readVaultSharePrices, rejectOutliers as rejectPriceOutliers, resolveAdapter, resolveDerivation, resolveStCeloDepositGroup, resupplyKeyParts, resupplyLenderKey, resupplyMarketLabel, riverKeyParts, riverLenderKey, selectAssetGroupPrices, shortDate, stampVaultClassification, supplyDescription, supplyFindings, supplyHeadline, 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, toDigest, toTermSheetInput, unflattenLenderData, updateFeedStats, usddIlkBytes32, usddKeyParts, usddLenderKey, validateTermSheet, validateTermSheets, validateUserData };
|