@1delta/margin-fetcher 5.0.89 → 5.0.91
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 +385 -39
- package/dist/index.js +3436 -1880
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -166,6 +166,21 @@ interface MarketAccumulator {
|
|
|
166
166
|
supplyIndex: string;
|
|
167
167
|
borrowIndex?: string;
|
|
168
168
|
kind: 'ray' | 'exchange_rate' | 'assets_per_share' | 'share_price';
|
|
169
|
+
/**
|
|
170
|
+
* The block the on-chain read was served at, so a consumer can match the
|
|
171
|
+
* sample to a state read at the SAME block instead of the nearest hour
|
|
172
|
+
* (yield-tracer `market_index_snapshots.block_number`; pos-indexer pins
|
|
173
|
+
* position units at a block and walks them with `units × index`).
|
|
174
|
+
*
|
|
175
|
+
* Read by a `Multicall3.getBlockNumber()` sentinel in the FIRST slot of the
|
|
176
|
+
* same `aggregate3` the market reads ride in (`fetchLender.ts`), so it costs
|
|
177
|
+
* no extra request and is answered by the node that served the data. It is
|
|
178
|
+
* the block of the first chunk; a chain whose read spans several chunks may
|
|
179
|
+
* have later markets a block or two ahead — seconds of accrual, against the
|
|
180
|
+
* hour a timestamp match carries. Absent on API-sourced rows (Morpho on the
|
|
181
|
+
* indexed chains, Silo) and when the sentinel slot failed.
|
|
182
|
+
*/
|
|
183
|
+
blockNumber?: number;
|
|
169
184
|
}
|
|
170
185
|
interface PoolData {
|
|
171
186
|
poolId: string;
|
|
@@ -338,16 +353,43 @@ interface GetEvmClientOptions {
|
|
|
338
353
|
type GetEvmClientFunction = (chain: string, rpcId?: number, options?: GetEvmClientOptions) => PublicClient;
|
|
339
354
|
|
|
340
355
|
type SerializedBigNumber = string;
|
|
356
|
+
/**
|
|
357
|
+
* What a query carries besides the account. Two shapes, both already on the
|
|
358
|
+
* wire — declared here because every caller was casting (`as any`) to get one
|
|
359
|
+
* of them past `params?: any[]`, which described neither:
|
|
360
|
+
*
|
|
361
|
+
* - a **string list**: the per-market lender keys a collapsed query stands for
|
|
362
|
+
* (`organizeUserQueries` builds it for Morpho / Lista / Silo / Gearbox /
|
|
363
|
+
* Term / TermMax / LlamaLend / …, and the builder reads it as its roster);
|
|
364
|
+
* - an **object**: the sub-accounts the caller wants read — Euler sub-account
|
|
365
|
+
* indexes, Dolomite account numbers (`<n>` or `iso:<marketId>:<n>`).
|
|
366
|
+
*
|
|
367
|
+
* The two never mix: a family that collapses per-market keys has no
|
|
368
|
+
* sub-accounts and vice versa.
|
|
369
|
+
*/
|
|
370
|
+
type LenderUserParams = string[] | {
|
|
371
|
+
/** Euler: sub-account indexes 0..255 (the EVC XOR of the low byte). */
|
|
372
|
+
subAccountIndexes?: number[];
|
|
373
|
+
/** Dolomite: account numbers — `uint256` or `iso:<marketId>:<n>`. */
|
|
374
|
+
accountNumbers?: string[];
|
|
375
|
+
};
|
|
341
376
|
interface LenderUserQuery {
|
|
342
377
|
/** the lender enum (Note that for multi-market ones, it is not the lender but the group) */
|
|
343
|
-
lender:
|
|
378
|
+
lender: string;
|
|
344
379
|
/** user address */
|
|
345
380
|
account: string;
|
|
346
381
|
/** custom parameters for fetching e.g. multi-market lenders */
|
|
347
|
-
params?:
|
|
382
|
+
params?: LenderUserParams;
|
|
348
383
|
/** custom parameters for spceifying assets */
|
|
349
384
|
assets?: any[];
|
|
350
385
|
}
|
|
386
|
+
/** The collapsed per-market keys of a query, or `undefined` for the other shape. */
|
|
387
|
+
declare const marketKeysOf: (params: LenderUserParams | undefined) => string[] | undefined;
|
|
388
|
+
/** The sub-account selection of a query, or `undefined` for the other shape. */
|
|
389
|
+
declare const subAccountsOf: (params: LenderUserParams | undefined) => {
|
|
390
|
+
subAccountIndexes?: number[];
|
|
391
|
+
accountNumbers?: string[];
|
|
392
|
+
} | undefined;
|
|
351
393
|
/**
|
|
352
394
|
* Collapse per-market queries whose builder + RPC call are identical
|
|
353
395
|
* across every market key into a single query. Without this, a chain
|
|
@@ -398,6 +440,12 @@ interface AaveV2UserReserveResponse {
|
|
|
398
440
|
};
|
|
399
441
|
rewards: UserRewardEntry;
|
|
400
442
|
}
|
|
443
|
+
/**
|
|
444
|
+
* What `depositShares` / `debtShares` / `debtPar` on a position row denote.
|
|
445
|
+
* `resolved_amount`: the row carries amounts only; the state read owns the
|
|
446
|
+
* unit. A consumer valuing a position off a market index must switch on this.
|
|
447
|
+
*/
|
|
448
|
+
type PositionUnitKind = 'morpho_shares' | 'ctoken' | 'silo_shares' | 'euler_shares' | 'dolomite_par' | 'face_value' | 'resolved_amount';
|
|
401
449
|
interface BaseLendingPositions {
|
|
402
450
|
marketUid: string;
|
|
403
451
|
/**
|
|
@@ -416,6 +464,20 @@ interface BaseLendingPositions {
|
|
|
416
464
|
debtStableUSDOracle?: number;
|
|
417
465
|
collateralEnabled: boolean;
|
|
418
466
|
claimableRewards: number;
|
|
467
|
+
/**
|
|
468
|
+
* SCALED UNITS — the quantity that changes only on user activity while the
|
|
469
|
+
* market index carries the accrual (POSITION_INDEX_SUPPORT.md, Contract B).
|
|
470
|
+
* Emitted by the parsers that read them on-chain (Morpho supply/borrow
|
|
471
|
+
* shares, Compound-V2 cTokens, Silo collateral shares, Dolomite par) and
|
|
472
|
+
* declared here so the wire shape is a contract, not an accident of the
|
|
473
|
+
* object literal. `unitKind` names what the units ARE, and is
|
|
474
|
+
* `resolved_amount` where the row carries no unit — never absent.
|
|
475
|
+
*/
|
|
476
|
+
depositShares?: string;
|
|
477
|
+
debtShares?: string;
|
|
478
|
+
/** Dolomite: index-scaled principal magnitude (see fetch-balances/types.ts). */
|
|
479
|
+
debtPar?: string;
|
|
480
|
+
unitKind?: PositionUnitKind;
|
|
419
481
|
/** max withdrawable token amount (capped at deposit balance) */
|
|
420
482
|
withdrawable?: string;
|
|
421
483
|
/** max borrowable token amount */
|
|
@@ -1003,6 +1065,52 @@ interface MulticallEndpointOptions {
|
|
|
1003
1065
|
}
|
|
1004
1066
|
declare function prepareMulticallInputs(abi: any[], calls: Call[]): PreparedCall[];
|
|
1005
1067
|
|
|
1068
|
+
/**
|
|
1069
|
+
* What a user-data READ knows besides the account — the context the batched
|
|
1070
|
+
* phase already had and the discovery phase did not.
|
|
1071
|
+
*
|
|
1072
|
+
* `prepareLenderUserDataRpcCalls` pins its `aggregate3` to a block, but the
|
|
1073
|
+
* families that must DISCOVER before they read (Liquity troves, Teller bids,
|
|
1074
|
+
* dss CDPs, Twyne vaults, Resupply pairs, Curvance markets, Lista's broker)
|
|
1075
|
+
* run their own multicall inside the build phase. Until these options existed
|
|
1076
|
+
* those reads went to the endpoint's HEAD through the global `LIST_OVERRIDES`
|
|
1077
|
+
* — so a read pinned to block N returned head-discovered troves with
|
|
1078
|
+
* block-N data, and a consumer storing an anchor at N stored a set that never
|
|
1079
|
+
* existed at N.
|
|
1080
|
+
*
|
|
1081
|
+
* Every field is optional and absent means exactly the old behaviour: no
|
|
1082
|
+
* block parameter on the request, the global endpoint lists, the default
|
|
1083
|
+
* client. Nothing here adds a call.
|
|
1084
|
+
*/
|
|
1085
|
+
interface UserCallOptions {
|
|
1086
|
+
/**
|
|
1087
|
+
* Pin the discovery reads to this block. The endpoint must be archival for
|
|
1088
|
+
* it, and it must be at or after Multicall3's deployment on the chain —
|
|
1089
|
+
* viem refuses a multicall pinned before `chain.contracts.multicall3
|
|
1090
|
+
* .blockCreated` outright. Absent = head.
|
|
1091
|
+
*/
|
|
1092
|
+
blockNumber?: bigint;
|
|
1093
|
+
/**
|
|
1094
|
+
* Endpoint lists per chain for the discovery reads, instead of the process
|
|
1095
|
+
* global `LIST_OVERRIDES`. A caller that serves its own RPCs (a fork, an
|
|
1096
|
+
* indexer's own endpoint roster) can route them per call instead of
|
|
1097
|
+
* mutating the global.
|
|
1098
|
+
*/
|
|
1099
|
+
rpcOverrides?: Record<string, string[]>;
|
|
1100
|
+
/**
|
|
1101
|
+
* Client factory for the builders that read through viem directly rather
|
|
1102
|
+
* than through the multicall ladder (Lista's broker warm-up). Same shape
|
|
1103
|
+
* the e2e path already passed.
|
|
1104
|
+
*/
|
|
1105
|
+
getClient?: (chainId: string, rpcId?: number) => any;
|
|
1106
|
+
}
|
|
1107
|
+
/**
|
|
1108
|
+
* The block tag a prepared batch carries, as a `blockNumber` for the
|
|
1109
|
+
* discovery reads that run beside it. `latest` / `pending` / `earliest` and
|
|
1110
|
+
* anything unparseable answer `undefined` — head, as before.
|
|
1111
|
+
*/
|
|
1112
|
+
declare const blockNumberFromTag: (blockTag: string | number | bigint | undefined) => bigint | undefined;
|
|
1113
|
+
|
|
1006
1114
|
interface PreparedUserDataRpcCalls {
|
|
1007
1115
|
batches: MulticallRpcBatch[];
|
|
1008
1116
|
preparedCalls: PreparedCall[];
|
|
@@ -1260,7 +1368,27 @@ type LenderYieldComplete = {
|
|
|
1260
1368
|
type LenderCrossPoolMeta = Record<string, LenderYieldComplete>;
|
|
1261
1369
|
type LenderToLenderCrossPoolMeta = Record<string, LenderCrossPoolMeta>;
|
|
1262
1370
|
interface UserDataForSubAccount {
|
|
1371
|
+
/**
|
|
1372
|
+
* The sub-account this set belongs to, as the FAMILY keys it: Euler's
|
|
1373
|
+
* sub-account index (`'0'` = the owner's own account), Dolomite's account
|
|
1374
|
+
* number (`<n>`, or `iso:<marketId>:<n>` for an isolation-mode vault),
|
|
1375
|
+
* a Gearbox credit account, `'0'` for every single-account lender.
|
|
1376
|
+
*
|
|
1377
|
+
* It is the position key a consumer joins on, so it must not be reinvented
|
|
1378
|
+
* downstream — see {@link UserDataForSubAccount.accountAddress} for the
|
|
1379
|
+
* address that key resolves to, where the family has one.
|
|
1380
|
+
*/
|
|
1263
1381
|
accountId: string;
|
|
1382
|
+
/**
|
|
1383
|
+
* The ADDRESS the sub-account acts as on chain, when it is not the owner's:
|
|
1384
|
+
* Euler's EVC sub-account (`owner ^ index`) and Dolomite's isolation-mode
|
|
1385
|
+
* vault. Derived offline — it costs no call — and stated here because every
|
|
1386
|
+
* consumer that attributes a LOG to a position had to re-derive it, and one
|
|
1387
|
+
* that derives it differently silently splits the position in two.
|
|
1388
|
+
*
|
|
1389
|
+
* Absent where the account IS the owner's address.
|
|
1390
|
+
*/
|
|
1391
|
+
accountAddress?: string;
|
|
1264
1392
|
health: number | null;
|
|
1265
1393
|
/** Total USD borrowable while maintaining health >= 1 */
|
|
1266
1394
|
borrowCapacityUSD: number;
|
|
@@ -1366,6 +1494,15 @@ interface ConvertLenderUserDataOptions {
|
|
|
1366
1494
|
* `retryableFailedCalls`.
|
|
1367
1495
|
*/
|
|
1368
1496
|
permanentFailures?: Set<number>;
|
|
1497
|
+
/**
|
|
1498
|
+
* The block the reads were pinned to, when they were. The families that
|
|
1499
|
+
* DISCOVER before they read (Liquity, Teller, dss, Twyne, Resupply,
|
|
1500
|
+
* Curvance) hand the build phase's result to the parse phase through a
|
|
1501
|
+
* per-account cache, and that cache is keyed by the block — so a parse of a
|
|
1502
|
+
* pinned read must name the same block its build did, or it finds nothing
|
|
1503
|
+
* where a whole position set should be. Absent = head, as before.
|
|
1504
|
+
*/
|
|
1505
|
+
blockNumber?: bigint;
|
|
1369
1506
|
}
|
|
1370
1507
|
/**
|
|
1371
1508
|
* Converts the raw results into the desired format
|
|
@@ -1501,14 +1638,26 @@ declare const getLenderUserDataResult: (chainId: string, queriesRaw: LenderUserQ
|
|
|
1501
1638
|
* Prepares the RPC calls for fetching user data without executing them
|
|
1502
1639
|
* Uses multicall3 aggregate3 to batch all calls into a single RPC call
|
|
1503
1640
|
* This reduces multiple RPC calls to one, avoiding rate limiting
|
|
1641
|
+
*
|
|
1642
|
+
* `blockTag` pins the batch AND the build phase: the families that discover
|
|
1643
|
+
* before they read (Liquity, Teller, dss, Twyne, Resupply, Curvance, Lista's
|
|
1644
|
+
* broker) run their own multicall here, and until this was threaded they ran
|
|
1645
|
+
* it at HEAD — so a batch pinned to N returned a head-discovered position set
|
|
1646
|
+
* read at N. A caller that pins now gets one block for both phases; one that
|
|
1647
|
+
* does not is unchanged. Pass the same `blockNumber` to
|
|
1648
|
+
* {@link convertLenderUserDataResult} (`options.blockNumber`), which is how
|
|
1649
|
+
* the parse phase finds the discovery this build cached.
|
|
1650
|
+
*
|
|
1504
1651
|
* @param chainId - The chain ID
|
|
1505
1652
|
* @param queriesRaw - The queries to fetch data for
|
|
1506
1653
|
* @param batchSize - Multicall batch size, default is 4096
|
|
1507
1654
|
* @param blockTag - Block tag for the RPC calls, default is 'latest'
|
|
1508
1655
|
* @param allowFailure - Allow individual calls to fail within multicall, default is true
|
|
1656
|
+
* @param opts - read context for the discovery phase (endpoint lists, client).
|
|
1657
|
+
* The block comes from `blockTag`; an explicit `opts.blockNumber` wins.
|
|
1509
1658
|
* @returns The prepared RPC batches and metadata needed for parsing
|
|
1510
1659
|
*/
|
|
1511
|
-
declare const prepareLenderUserDataRpcCalls: (chainId: string, queriesRaw: LenderUserQuery[], batchSize?: number, blockTag?: string, allowFailure?: boolean) => Promise<PreparedUserDataRpcCalls>;
|
|
1660
|
+
declare const prepareLenderUserDataRpcCalls: (chainId: string, queriesRaw: LenderUserQuery[], batchSize?: number, blockTag?: string, allowFailure?: boolean, opts?: UserCallOptions) => Promise<PreparedUserDataRpcCalls>;
|
|
1512
1661
|
/**
|
|
1513
1662
|
* Fetch structured lender balance set for addresses
|
|
1514
1663
|
* @param account general account as override in queries
|
|
@@ -1737,7 +1886,7 @@ declare function decodePackedListaUserDataset(hex: string, marketsCount: number)
|
|
|
1737
1886
|
declare const MORPHO_LENS: {
|
|
1738
1887
|
[c: string]: string;
|
|
1739
1888
|
};
|
|
1740
|
-
declare const buildMorphoTypeUserCallWithLens: (chainId: string, account: string, lender: string, marketsToQuery: string[],
|
|
1889
|
+
declare const buildMorphoTypeUserCallWithLens: (chainId: string, account: string, lender: string, marketsToQuery: string[], opts?: UserCallOptions) => Call[] | Promise<Call[]>;
|
|
1741
1890
|
|
|
1742
1891
|
/**
|
|
1743
1892
|
* Back-compat alias. New callers should use `RelayProxyConfig` directly from
|
|
@@ -1962,6 +2111,170 @@ declare function filterActiveLenders(summary: PortfolioSummary): PortfolioSummar
|
|
|
1962
2111
|
*/
|
|
1963
2112
|
declare function fuseLenderData(userDataResult: UserDataResult, summary: PortfolioSummary): LenderDataEntry[];
|
|
1964
2113
|
|
|
2114
|
+
/**
|
|
2115
|
+
* Lender keys the meta publishes PER MARKET, as `<KEY>_<market>`: naming the
|
|
2116
|
+
* family selects every one of its markets. Everything else matches exactly.
|
|
2117
|
+
*/
|
|
2118
|
+
declare const PREFIX_LENDERS: Set<string>;
|
|
2119
|
+
/** Normalize a raw lender key: uppercase, hyphens to underscores. */
|
|
2120
|
+
declare const parseLenderKey: (raw: string) => string;
|
|
2121
|
+
interface MetaFilter {
|
|
2122
|
+
/** exact keys, or a prefix family (`MORPHO_BLUE`); empty/absent = every lender */
|
|
2123
|
+
lenders?: string[];
|
|
2124
|
+
/**
|
|
2125
|
+
* Market ids (hex, `0x` optional) a PREFIX family is narrowed to — the
|
|
2126
|
+
* caller already knows which markets the account is in and a chain can
|
|
2127
|
+
* carry a thousand. Ignored for exactly-matched keys.
|
|
2128
|
+
*/
|
|
2129
|
+
markets?: string[];
|
|
2130
|
+
}
|
|
2131
|
+
/**
|
|
2132
|
+
* The slice of a chain's meta a read should cover. Returns the input when
|
|
2133
|
+
* nothing is selected, so the "read everything" path allocates nothing.
|
|
2134
|
+
*/
|
|
2135
|
+
declare function filterLenderMeta<T extends Record<string, any>>(meta: T, filter?: MetaFilter): T;
|
|
2136
|
+
interface SubAccountSelection {
|
|
2137
|
+
/** Euler sub-account indexes (0..255). */
|
|
2138
|
+
subAccountIndexes?: number[];
|
|
2139
|
+
/** Dolomite account numbers — `<n>` or `iso:<marketId>:<n>`. */
|
|
2140
|
+
accountNumbers?: string[];
|
|
2141
|
+
}
|
|
2142
|
+
/**
|
|
2143
|
+
* One query per lender key in the meta, carrying the sub-account selection to
|
|
2144
|
+
* the two families that take one.
|
|
2145
|
+
*
|
|
2146
|
+
* Naming them matters: with no `subAccountIndexes`, Euler's upstream builds
|
|
2147
|
+
* ALL 256 indexes when its API is silent, and Dolomite reads account 0 alone
|
|
2148
|
+
* when the subgraph is.
|
|
2149
|
+
*/
|
|
2150
|
+
declare const buildQueriesFromMeta: (meta: Record<string, any>, account: string, selection?: SubAccountSelection) => LenderUserQuery[];
|
|
2151
|
+
/**
|
|
2152
|
+
* Attach each entry's lender info (name, logo) in place. Keyed by chain
|
|
2153
|
+
* because a read can span several and an entry names its own.
|
|
2154
|
+
*/
|
|
2155
|
+
declare const injectLenderInfoIntoEntries: (entries: {
|
|
2156
|
+
chainId: string;
|
|
2157
|
+
lender: string;
|
|
2158
|
+
lenderInfo?: LenderInfo;
|
|
2159
|
+
}[], infoByChain: Record<string, LenderInfoMap> | undefined) => void;
|
|
2160
|
+
|
|
2161
|
+
interface RawRpcResponse {
|
|
2162
|
+
jsonrpc: '2.0';
|
|
2163
|
+
id: number;
|
|
2164
|
+
result?: string;
|
|
2165
|
+
error?: {
|
|
2166
|
+
code: number;
|
|
2167
|
+
message: string;
|
|
2168
|
+
};
|
|
2169
|
+
}
|
|
2170
|
+
declare function parseRawRpcResponses(responses: RawRpcResponse[], callMetadata: PreparedCall[], allowFailure?: boolean): any[];
|
|
2171
|
+
declare function parseRawRpcBatchResponses(batches: RawRpcBatch[], batchResponses: RawRpcResponse[][], allowFailure?: boolean): any[];
|
|
2172
|
+
/**
|
|
2173
|
+
* Parses multicall3 aggregate3 responses
|
|
2174
|
+
* The response contains an array of {success, returnData} tuples
|
|
2175
|
+
* Each returnData needs to be decoded using the original call's ABI
|
|
2176
|
+
*
|
|
2177
|
+
* `permanentFailures`, when supplied, is filled with the indices of calls that
|
|
2178
|
+
* failed DETERMINISTICALLY. This path can tell them apart with certainty, which
|
|
2179
|
+
* the viem path can only infer: if the batch response itself came back, the
|
|
2180
|
+
* transport worked, so a `success: false` entry inside it is a revert — the
|
|
2181
|
+
* chain's answer, not a lost read. Only a batch-level error is a lost read.
|
|
2182
|
+
*
|
|
2183
|
+
* The distinction matters downstream: a cross-margin lender voids its whole set
|
|
2184
|
+
* on a lost read, and without this a single always-reverting market would void
|
|
2185
|
+
* a perfectly good position on every request.
|
|
2186
|
+
*/
|
|
2187
|
+
declare function parseMulticallRpcResponses(responses: RawRpcResponse[], batches: MulticallRpcBatch[], allowFailure?: boolean, permanentFailures?: Set<number>): any[];
|
|
2188
|
+
|
|
2189
|
+
/** Sends prepared `eth_call` batches and returns their answers, in call order. */
|
|
2190
|
+
type UserDataTransport = (calls: RawRpcCall[]) => Promise<RawRpcResponse[]>;
|
|
2191
|
+
interface ReadUserPositionsParams extends SubAccountSelection {
|
|
2192
|
+
chainId: string;
|
|
2193
|
+
account: string;
|
|
2194
|
+
/** The chain's lender meta — the market book the parsers read against. */
|
|
2195
|
+
meta: LenderToLenderCrossPoolMeta;
|
|
2196
|
+
/** exact lender keys, or a prefix family (`MORPHO_BLUE`); absent = all */
|
|
2197
|
+
lenders?: string[];
|
|
2198
|
+
/** market ids a prefix family is narrowed to (see {@link filterLenderMeta}) */
|
|
2199
|
+
markets?: string[];
|
|
2200
|
+
/**
|
|
2201
|
+
* Pin every call — the batch AND the discovery reads — to this block.
|
|
2202
|
+
* Absent = the transport's own block tag, i.e. head.
|
|
2203
|
+
*/
|
|
2204
|
+
blockNumber?: number | bigint;
|
|
2205
|
+
/** calls per `aggregate3` batch */
|
|
2206
|
+
batchSize?: number;
|
|
2207
|
+
/** Names and logos, attached per entry when given. */
|
|
2208
|
+
lenderInfo?: LenderInfoMap;
|
|
2209
|
+
/** Endpoint lists / client for the discovery reads, instead of the globals. */
|
|
2210
|
+
readContext?: Omit<UserCallOptions, 'blockNumber'>;
|
|
2211
|
+
/** Called once per lender that did not read cleanly. */
|
|
2212
|
+
onIncomplete?: (info: IncompleteLenderRead) => void;
|
|
2213
|
+
transport: UserDataTransport;
|
|
2214
|
+
}
|
|
2215
|
+
interface ReadUserPositionsResult {
|
|
2216
|
+
/** Fused entries — positions plus the per-lender summary — one per lender. */
|
|
2217
|
+
items: LenderDataEntry[];
|
|
2218
|
+
/** The block the read was pinned to, or `null` when it was not pinned. */
|
|
2219
|
+
asOfBlock: number | null;
|
|
2220
|
+
/** True when at least one lender could not be read completely. */
|
|
2221
|
+
partial: boolean;
|
|
2222
|
+
/** `<chainId>:<lender>` for each lender dropped or flagged incomplete. */
|
|
2223
|
+
incompleteLenders: string[];
|
|
2224
|
+
stats: {
|
|
2225
|
+
lenders: number;
|
|
2226
|
+
calls: number;
|
|
2227
|
+
batches: number;
|
|
2228
|
+
ms: number;
|
|
2229
|
+
};
|
|
2230
|
+
}
|
|
2231
|
+
/**
|
|
2232
|
+
* A lender whose reads ALL failed is dropped and named rather than returned
|
|
2233
|
+
* as an empty position — "we could not read" and "there is nothing here" are
|
|
2234
|
+
* different answers and a consumer storing an anchor acts on them
|
|
2235
|
+
* differently.
|
|
2236
|
+
*/
|
|
2237
|
+
declare function readUserPositions(params: ReadUserPositionsParams): Promise<ReadUserPositionsResult>;
|
|
2238
|
+
|
|
2239
|
+
type EmitterRole = 'core' | 'market' | 'shareToken' | 'debtToken' | 'positionNft' | 'broker' | 'factory' | 'router'
|
|
2240
|
+
/** a side contract that emits an action on a market (Silo's PartialLiquidation hook: `LiquidationCall`) */
|
|
2241
|
+
| 'hook';
|
|
2242
|
+
type EmitterSide = 'supply' | 'borrow' | 'collateral' | 'share';
|
|
2243
|
+
interface EmitterRow {
|
|
2244
|
+
chainId: string;
|
|
2245
|
+
/** lowercase */
|
|
2246
|
+
address: string;
|
|
2247
|
+
/** `AAVE_V3`, `MORPHO_BLUE`, `SILO_V2_<cfg>`, `vault.savings`, … */
|
|
2248
|
+
lenderKey: string;
|
|
2249
|
+
/** decoder family in position-events */
|
|
2250
|
+
family: string;
|
|
2251
|
+
role: EmitterRole;
|
|
2252
|
+
/** when the emitter IS one market */
|
|
2253
|
+
marketUid?: string;
|
|
2254
|
+
side?: EmitterSide;
|
|
2255
|
+
/** the asset a per-market emitter is denominated in */
|
|
2256
|
+
asset?: string;
|
|
2257
|
+
/** `'transfers'` when the lender core already records deposit/withdraw (aTokens, share tokens) */
|
|
2258
|
+
shareEvents?: 'all' | 'transfers';
|
|
2259
|
+
/**
|
|
2260
|
+
* For emitters whose logs name the market by a protocol-native key (Morpho
|
|
2261
|
+
* `id`, Dolomite `market`, Fluid `supply`/`borrow` legs): key → market.
|
|
2262
|
+
*/
|
|
2263
|
+
markets?: Record<string, {
|
|
2264
|
+
marketUid: string;
|
|
2265
|
+
asset?: string;
|
|
2266
|
+
}>;
|
|
2267
|
+
/** a human tag for the roster listing; never consumed by the decoder */
|
|
2268
|
+
label?: string;
|
|
2269
|
+
}
|
|
2270
|
+
/** Every emitter row for one chain. Pure over the loaded data-sdk registries. */
|
|
2271
|
+
declare function enumerateEmitters(chainId: string): EmitterRow[];
|
|
2272
|
+
/** Lender family prefixes (from `getLendersForChain`) → whether this file emits for them. */
|
|
2273
|
+
declare function emitterCoverage(chainId: string): {
|
|
2274
|
+
covered: string[];
|
|
2275
|
+
missing: string[];
|
|
2276
|
+
};
|
|
2277
|
+
|
|
1965
2278
|
interface BaseYields {
|
|
1966
2279
|
variableBorrowRate: number;
|
|
1967
2280
|
stableBorrowRate: number;
|
|
@@ -3635,7 +3948,7 @@ interface LiquityDiscovery {
|
|
|
3635
3948
|
perBranch: LiquityDiscoveredTrove[][];
|
|
3636
3949
|
at: number;
|
|
3637
3950
|
}
|
|
3638
|
-
declare const getCachedLiquityTroves: (chainId: string, lender: string, account: string) => LiquityDiscovery | undefined;
|
|
3951
|
+
declare const getCachedLiquityTroves: (chainId: string, lender: string, account: string, opts?: UserCallOptions) => LiquityDiscovery | undefined;
|
|
3639
3952
|
/** Candidate trove ids for one user: direct + per-zapper salted, as decimal strings. */
|
|
3640
3953
|
declare function liquityCandidateTroveIds(account: string, zappers: string[]): string[];
|
|
3641
3954
|
/**
|
|
@@ -3649,7 +3962,7 @@ declare function liquityCandidateTroveIds(account: string, zappers: string[]): s
|
|
|
3649
3962
|
* getDepositorCollGain, stashedColl](account)
|
|
3650
3963
|
* + CollSurplusPool.getCollateral(account) (when configured)
|
|
3651
3964
|
*/
|
|
3652
|
-
declare const buildLiquityUserCall: (chainId: string, lender: string, account: string) => Promise<Call[]>;
|
|
3965
|
+
declare const buildLiquityUserCall: (chainId: string, lender: string, account: string, opts?: UserCallOptions) => Promise<Call[]>;
|
|
3653
3966
|
|
|
3654
3967
|
/**
|
|
3655
3968
|
* Raw per-TroveManager on-chain snapshot of a River deployment. All bigints
|
|
@@ -4939,8 +5252,8 @@ interface TellerDiscovery {
|
|
|
4939
5252
|
bids: TellerDiscoveredBid[];
|
|
4940
5253
|
at: number;
|
|
4941
5254
|
}
|
|
4942
|
-
declare const getCachedTellerBids: (chainId: string, account: string) => TellerDiscovery | undefined;
|
|
4943
|
-
declare const buildTellerUserCall: (chainId: string, _lender: string, account: string) => Promise<Call[]>;
|
|
5255
|
+
declare const getCachedTellerBids: (chainId: string, account: string, opts?: UserCallOptions) => TellerDiscovery | undefined;
|
|
5256
|
+
declare const buildTellerUserCall: (chainId: string, _lender: string, account: string, opts?: UserCallOptions) => Promise<Call[]>;
|
|
4944
5257
|
|
|
4945
5258
|
/**
|
|
4946
5259
|
* TermMax public-data types.
|
|
@@ -7539,13 +7852,54 @@ interface TermAssetRef {
|
|
|
7539
7852
|
decimals?: number;
|
|
7540
7853
|
assetGroup?: string;
|
|
7541
7854
|
logoURI?: string;
|
|
7855
|
+
/**
|
|
7856
|
+
* Set when the asset is ITSELF a fixed-maturity instrument — a Pendle or
|
|
7857
|
+
* Spectra principal token posted as collateral in a variable-rate market.
|
|
7858
|
+
*
|
|
7859
|
+
* Independent of the side's `maturity`, which is the MARKET's term: a Lista
|
|
7860
|
+
* pool lending USDT against `PT-sUSDai-15OCT2026-(ARB)` is perpetual, and
|
|
7861
|
+
* the collateral still expires on 15 Oct 2026. Before this field the sheet
|
|
7862
|
+
* read "Collateral only · with no maturity" on a bond.
|
|
7863
|
+
*/
|
|
7864
|
+
instrument?: AssetInstrumentTerms;
|
|
7865
|
+
}
|
|
7866
|
+
/**
|
|
7867
|
+
* A fixed-maturity instrument held as the asset of a market.
|
|
7868
|
+
*
|
|
7869
|
+
* `redemption` is the fact a holder needs most: a Pendle PT bridged off its
|
|
7870
|
+
* issuing chain is a LayerZero OFT with no SY, YT or market where it sits —
|
|
7871
|
+
* it cannot be minted or redeemed there, only traded or bridged back. At
|
|
7872
|
+
* maturity, bridging back is the ONLY way to par (verified on all 31 such
|
|
7873
|
+
* tokens, 2026-09-20; see PENDLE_PT.md §8).
|
|
7874
|
+
*/
|
|
7875
|
+
interface AssetInstrumentTerms {
|
|
7876
|
+
kind: Open<'principal-token'>;
|
|
7877
|
+
venue: Open<'pendle' | 'spectra'>;
|
|
7878
|
+
/** unix seconds. */
|
|
7879
|
+
maturity: number;
|
|
7880
|
+
maturityIso: string;
|
|
7881
|
+
/** Snapshot at `asOf`; 0 once matured. */
|
|
7882
|
+
secondsToMaturity: number;
|
|
7883
|
+
matured: boolean;
|
|
7884
|
+
redemption: {
|
|
7885
|
+
/** Can it be minted / redeemed at par on THIS chain? */
|
|
7886
|
+
local: boolean;
|
|
7887
|
+
/** Where it can — the origin chain for a bridged mirror. */
|
|
7888
|
+
chainId: string;
|
|
7889
|
+
/** The instrument's address on that chain (the origin PT for a mirror). */
|
|
7890
|
+
address?: string;
|
|
7891
|
+
};
|
|
7542
7892
|
}
|
|
7543
7893
|
/**
|
|
7544
7894
|
* Machine tags for filtering/faceting. DERIVED from the structured fields in
|
|
7545
7895
|
* `tags.ts` — never hand-written per lender, so they cannot drift from the
|
|
7546
7896
|
* numbers they summarize.
|
|
7547
7897
|
*/
|
|
7548
|
-
type TermTag = Open<
|
|
7898
|
+
type TermTag = Open<
|
|
7899
|
+
/** The ASSET is a fixed-maturity instrument (a PT as collateral). */
|
|
7900
|
+
'asset-matures'
|
|
7901
|
+
/** …and a bridged mirror: not mintable or redeemable on this chain. */
|
|
7902
|
+
| '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'
|
|
7549
7903
|
/**
|
|
7550
7904
|
* The DEBT cannot be repaid for a period after opening or topping up.
|
|
7551
7905
|
*
|
|
@@ -12138,34 +12492,6 @@ interface DolomiteRowIdentity {
|
|
|
12138
12492
|
*/
|
|
12139
12493
|
declare function resolveDolomiteRowIdentity(chainId: string, lender: string, marketId: string | number, token: string, tokenList?: GenericTokenList): DolomiteRowIdentity;
|
|
12140
12494
|
|
|
12141
|
-
interface RawRpcResponse {
|
|
12142
|
-
jsonrpc: '2.0';
|
|
12143
|
-
id: number;
|
|
12144
|
-
result?: string;
|
|
12145
|
-
error?: {
|
|
12146
|
-
code: number;
|
|
12147
|
-
message: string;
|
|
12148
|
-
};
|
|
12149
|
-
}
|
|
12150
|
-
declare function parseRawRpcResponses(responses: RawRpcResponse[], callMetadata: PreparedCall[], allowFailure?: boolean): any[];
|
|
12151
|
-
declare function parseRawRpcBatchResponses(batches: RawRpcBatch[], batchResponses: RawRpcResponse[][], allowFailure?: boolean): any[];
|
|
12152
|
-
/**
|
|
12153
|
-
* Parses multicall3 aggregate3 responses
|
|
12154
|
-
* The response contains an array of {success, returnData} tuples
|
|
12155
|
-
* Each returnData needs to be decoded using the original call's ABI
|
|
12156
|
-
*
|
|
12157
|
-
* `permanentFailures`, when supplied, is filled with the indices of calls that
|
|
12158
|
-
* failed DETERMINISTICALLY. This path can tell them apart with certainty, which
|
|
12159
|
-
* the viem path can only infer: if the batch response itself came back, the
|
|
12160
|
-
* transport worked, so a `success: false` entry inside it is a revert — the
|
|
12161
|
-
* chain's answer, not a lost read. Only a batch-level error is a lost read.
|
|
12162
|
-
*
|
|
12163
|
-
* The distinction matters downstream: a cross-margin lender voids its whole set
|
|
12164
|
-
* on a lost read, and without this a single always-reverting market would void
|
|
12165
|
-
* a perfectly good position on every request.
|
|
12166
|
-
*/
|
|
12167
|
-
declare function parseMulticallRpcResponses(responses: RawRpcResponse[], batches: MulticallRpcBatch[], allowFailure?: boolean, permanentFailures?: Set<number>): any[];
|
|
12168
|
-
|
|
12169
12495
|
type TokenEntry = {
|
|
12170
12496
|
chainId: string;
|
|
12171
12497
|
decimals: number;
|
|
@@ -12343,6 +12669,8 @@ interface TermSheetInput {
|
|
|
12343
12669
|
decimals?: number;
|
|
12344
12670
|
assetGroup?: string;
|
|
12345
12671
|
logoURI?: string;
|
|
12672
|
+
/** Token-list `props` (`pendle` / `spectra` / …) when the row carries them. */
|
|
12673
|
+
props?: Record<string, any>;
|
|
12346
12674
|
};
|
|
12347
12675
|
underlying?: string;
|
|
12348
12676
|
decimals?: number;
|
|
@@ -12454,7 +12782,7 @@ interface BuildTermSheetOptions {
|
|
|
12454
12782
|
declare function buildTermSheet(input: TermSheetInput, opts?: BuildTermSheetOptions): TermSheet;
|
|
12455
12783
|
|
|
12456
12784
|
/** Supply-side tags. Market-level tags are folded in by the caller. */
|
|
12457
|
-
declare function deriveSupplyTags(supply: SupplyTermSheet, market?: Pick<TermSheet, 'governance' | 'oracle'>): TermTag[];
|
|
12785
|
+
declare function deriveSupplyTags(supply: SupplyTermSheet, market?: Pick<TermSheet, 'governance' | 'oracle' | 'asset'>): TermTag[];
|
|
12458
12786
|
/** Borrow-side tags. */
|
|
12459
12787
|
declare function deriveBorrowTags(borrow: BorrowTermSheet, market?: Pick<TermSheet, 'governance' | 'oracle'>): TermTag[];
|
|
12460
12788
|
|
|
@@ -13073,10 +13401,28 @@ interface EarnExitHistory {
|
|
|
13073
13401
|
/** longest dry run, hours; null = never dry */
|
|
13074
13402
|
worstDrySpellHours: number | null;
|
|
13075
13403
|
currentlyDry: boolean;
|
|
13404
|
+
/**
|
|
13405
|
+
* The month, one point per UTC calendar day with at least one sample — the
|
|
13406
|
+
* series a lockup chart draws. A day with no sample is absent, so a gap in
|
|
13407
|
+
* the recording reads as a gap. (`days` above is the window LENGTH.)
|
|
13408
|
+
*/
|
|
13409
|
+
daily: EarnExitHistoryDay[];
|
|
13076
13410
|
/** hourly point samples — a trough inside one hour is invisible, so every
|
|
13077
13411
|
* figure here underestimates the lockup */
|
|
13078
13412
|
lowerBound: true;
|
|
13079
13413
|
}
|
|
13414
|
+
interface EarnExitHistoryDay {
|
|
13415
|
+
/** YYYY-MM-DD, UTC */
|
|
13416
|
+
d: string;
|
|
13417
|
+
/** hourly samples that landed on the day */
|
|
13418
|
+
samples: number;
|
|
13419
|
+
/** least withdrawable at once in any sampled hour of the day, USD */
|
|
13420
|
+
worstUsd: number | null;
|
|
13421
|
+
/** the same as a share of TVL, 0..1; null when TVL read 0 */
|
|
13422
|
+
worstRatio: number | null;
|
|
13423
|
+
/** sampled hours below the dry line (max($1k, 0.5 % of TVL)) */
|
|
13424
|
+
dryHours: number;
|
|
13425
|
+
}
|
|
13080
13426
|
interface EarnAvailability {
|
|
13081
13427
|
canDeposit: boolean;
|
|
13082
13428
|
canWithdraw: boolean;
|
|
@@ -15116,4 +15462,4 @@ declare const fetchFluidDexState: (chainId: string, multicallRetry: MulticallRet
|
|
|
15116
15462
|
/** Synchronous read of whatever `fetchFluidDexState` last cached for a chain. */
|
|
15117
15463
|
declare const getCachedFluidDexState: (chainId: string) => FluidDexStateMap | undefined;
|
|
15118
15464
|
|
|
15119
|
-
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 BuildVaultTermSheetOptions, type ChainDiagnostic, type ChainLinkResponse, type ChainQuery, type ChainSummary, type CompoundV2Metadata, type CompoundV3Public, type CompoundV3UserReserveResponse, type ConfigEntry, type ConvertLenderUserDataOptions, type CoolerDripRaw, type CoolerMarketsRaw, type CoolerPositionInfo, type CoreValidators, type CounterpartyTerms, type CoverageInfo, DEFAULT_MIDNIGHT_API, DEFAULT_OUTLIER_GUARD, DEFAULT_PROFILE_ID, DEFAULT_STALE_REJECT_SECONDS, DEFAULT_TERMMAX_API, DEFAULT_TERM_ORDER_STORE, DOLOMITE_ISO_ID_PREFIX, type DeepPartial, type Denomination, type DepthMap, type DolomiteIsolationRow, type DolomiteSubAccount, type DssMarketRaw, type DssMarketsRaw, type DssPositionInfo, EARN_DESCRIPTIONS, EARN_LABELS, EARN_RATE_SOURCE_BY_PROVIDER, EMPTY_BALANCE, type EModeAssets, type EModeData, type EModeResult, EXACTLY_LENDER_KEY, type EarnActionInput, type EarnActionKind, type EarnAmount, type EarnAppliedDefaults, type EarnAprBreakdown, type EarnAsset, type EarnAvailability, type EarnBasket, type EarnBasketLeg, type EarnCapability, type EarnCurator, type EarnExclusions, type EarnExit, type EarnExitHistory, type 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 EndpointFailure, type EnrichmentIndex, type EulerEarnVault, type EulerEarnVaults, type EulerV2Metadata, type ExactlyFixedPool, type ExactlyFixedPosition, type ExactlyMarketAccount, type ExactlyMarketsRaw, type ExactlyUserFixedPosition, type ExposureEntry, type ExposureTerms, type ExtraValidationCall, FLYING_TULIP_LENDER_KEY, FRACTION_RATE_PROVIDERS, type FeeTerm, type FeeWhen, type FeedObservation, type FeedStat, type FeedStatsMap, type FeedTimestampMap, type FetchListaVaultsFromChainOptions, type FetchMorphoVaultsFromChainOptions, type FetchOraclePricesOptions, type FetchPendlePtOptions, type FetchSpectraPtOptions, type FetchTokenBalancesOptions, type FetchTokenMetadataOptions, type FlattenPriorityConfig, type FluidDexShareState, type FluidDexStateMap, type FluidFToken, type FluidFTokens, type FlyingTulipAssetRaw, type FlyingTulipMarketsRaw, type FrankencoinMarketRaw, type FrankencoinMarketsRaw, type FrankencoinPositionInfo, type FraxlendPairRaw, type FraxlendPairsRaw, type FullLenderRewardsMap, GMX_API_HOSTS, GMX_READ_CONTRACTS, GMX_SUPPORTED_CHAINS, type GenericCurrency, type GenericTokenList, type GetVaultPublicDataAllOptions, type GmxExecutionFees, type GmxPendingDeposit, type GmxPendingWithdrawal, type GmxReadContracts, type GmxUserBalance, type GmxUserPositions, type GmxUserPositionsOptions, type GmxVault, type GmxVaultKind, type GmxVaults, type GmxVaultsFetchOptions, type GovernancePower, type GovernanceRow, type GovernanceTerms, type GroupAccumulator, HYPERCORE_VAULT_REGISTRY, type HypercoreLockStatus, type HypercoreUserPositionsOptions, type HypercoreVault, type HypercoreVaultPosition, type HypercoreVaultRegistryEntry, type HypercoreVaults, type HypercoreVaultsFetchOptions, IDLE_MARKET_ID, INTERFACE_IDS, type IncompleteLenderRead, type IncompleteReason, type InitMetadata, type InitPublic, type InitUserReserveResponse, type InterfaceKind, type InvariantViolation, type InverseMarketRaw, type InverseMarketsRaw, type InversePositionInfo, 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 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 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, PASSTHROUGH_RATE_EPSILON, PENDLE_ASSETS_URL, PENDLE_CHAIN_IDS, PENDLE_MARKETS_URL, type ParsedBalanceData, type ParsedEarnUid, type ParsedLendingEarnUid, type ParsedResponse, type ParsedUserBalance, type ParsedVaultEarnUid, type PendleApiAsset, type PendleApiMarket, type PendleApiMarketDetails, type PendlePtMarket, type PendlePtMarkets, type PermissionKind, type PermissionParams, type PoolData, type PoolSourceRow, type PoolWithMeta, type PortfolioSummary, type PortfolioTotals, type PositionConstraints, type PostTradeMetrics, type PreparedCall, type PreparedMergedMulticallParams, type PreparedMergedRpcCalls, type PreparedTokenBalanceRpcCalls, type PreparedUserDataRpcCalls, type PriceDerivation, type PriceSelection, type ProtocolParams, type ProviderOptions, type RateKind, type RateMenuEntry, type RateTerms, type RawRpcBatch, type RawRpcCall, type RawRpcResponse, type ReadFailurePolicy, type RedemptionTerms, type ResupplyMarketsRaw, type ResupplyPairIdentity, type ResupplyPairRaw, type ResupplyPositionInfo, type ResupplyWrappedMarket, type RewardSourceRef, type RewardStream, type RewardTerm, type RewardTokenRef, type RiverMarketRaw, type RiverMarketsRaw, type RiverPositionInfo, SDK_FRACTION_RATE_PROVIDERS, SPECTRA_NETWORKS, SPECTRA_RATE_MAX_PERCENT, SPECTRA_RATE_MIN_PERCENT, STABLECOIN_SYMBOLS, STCELO_MANAGER_ADDRESS, 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 SubAccountSummary, type SumerPositionInput, type SummaryAprData, type SummaryBalanceData, type SupplyExitMode, type SupplyExitRoute, type SupplyExitTerms, type SupplyTermSheet, TELLER_CALLS_PER_BID, DECIMAL_BASE as TERMMAX_DECIMAL_BASE, TERMMAX_LIQUIDATION_PENALTY, TERMMAX_LIQUIDATION_WINDOW_SECS, TERMMAX_LIQUIDATOR_BONUS, TERMMAX_MARKETS_PER_CALL, TERMMAX_PARTIAL_CLOSE_FACTOR, TERMMAX_PARTIAL_LIQUIDATION_THRESHOLD_USD, TERM_ADAPTERS, TERM_PROFILES, TERM_SHEET_SCHEMA_VERSION, type TellerDiscoveredBid, type TellerDiscovery, type TellerMarketsRaw, type TellerPoolRaw, type TermAdapter, type TermAssetRef, type TermAuctionOrder, type TermAuctionOrders, type TermBookSource, type TermBookTop, type TermFillNow, type TermFillNowSide, type TermInfo, type TermListing, type TermMarketRaw, TermMaxApiSource, type TermMaxBookTop, type TermMaxCurveSegment, type TermMaxDataSource, type TermMaxDiscovery, type TermMaxFeeConfig, type TermMaxMarketConfig, type TermMaxMarketRaw, type TermMaxOrderState, type TermProfile, type TermSheet, type TermSheetDigest, type TermSheetInput, type TermSheetViolation, type TermStoreOrder, TermSubgraphSource, type TermTag, type TokenApprovalMeta, type TokenApprovalParams, type TokenBalanceEntry, type TokenBalanceQuery, type TokenBalanceResult, type TokenEntry, type TokenList, type TokenListInput, type TrackerDiagnostic, UPSHIFT_CHAIN_IDS, UPSHIFT_VAULTS_URL, type USDPriceMap, type UpshiftApiAsset, type UpshiftApiVault, type UpshiftVault, type UpshiftVaults, type UsddMarketRaw, type UsddMarketsRaw, type DssPositionInfo as UsddPositionInfo, type UserApr, type UserConfig, type UserData, type UserDataResult, type UserLendingPosition, type UtilizationTerms, VAULT_PROVIDERS, VAULT_PROVIDER_PROFILE, VAULT_PROVIDER_TRAITS, VAULT_SHARE_PRICE_PROBE, VAULT_VENUE_PREFIX, VOLATILE_VAULT_OVERRIDES, type ValidationResult, type VaultAprResult, type VaultBalanceInput, type VaultClassification, type VaultClassificationFields, type VaultLookupEntry, type VaultMarketExposure, type VaultProvider, type VaultProviderTraits, type VaultPublicDataAll, type VaultPublicDataResult, type VaultSourceRow, type VaultTermInput, type VaultYieldSeries, type VaultYieldSnapshot, type YDaemonVault, YEARN_CHAIN_IDS, YEARN_YDAEMON_BASE, type YearnVault, type YearnVaultKind, type YearnVaults, type YieldProfile, __resetResupplyUserCaches, accountDepositListKey, accountWithdrawalListKey, appendSnapshot, applyEarnSanity, applyPositionDelta, attachImplications, attachPricesToFlashLiquidity, borrowDescription, borrowFindings, borrowHeadline, buildExposures, buildFluidFTokensCall, buildLendingPositionUid, buildLiquityUserCall, buildLoopResult, buildMorphoTypeCall, buildMorphoTypeUserCallWithLens, buildPortfolioTotals, buildSumerAccumulators, buildSummaries, buildTellerUserCall, buildTermMaxUserCall, buildTermSheet, buildTermSheetsForGroup, buildVaultEarnUid, buildVaultLookup, buildVaultTermSheet, calculateLeverage, calculateNetApr, calculateOverallNetApr, calculateWeightedAverage, classifyFreshness, classifyReliability, classifyVault, clearPendleMarketsCache, clearSpectraMarketsCache, collateralSymbolsByVenue, collectFeedObservations, computeBorrowDelta, computeCloseTradeDeltas, computeCollateralSwapDeltas, computeDebtSwapDeltas, computeDepositDelta, computeEModeAnalysis, computeOpenTradeDeltas, computePostTradeMetrics, computeRepayDelta, computeSumerBorrowDelta, computeSumerDepositDelta, computeSumerRepayDelta, computeSumerWaterfall, computeSumerWithdrawDelta, computeVaultApr, computeWithdrawDelta, computeZapTradeDeltas, consensusReference, convertCoolerMarketsToResponse, convertDssMarketsToResponse, convertExactlyMarketsToResponse, convertFlyingTulipMarketsToResponse, convertFrankencoinMarketsToResponse, convertFraxlendPairsToResponse, convertInverseMarketsToResponse, convertLenderUserDataResult, convertLiquityMarketsToResponse, convertLlamaLendMarketsToResponse, convertResupplyMarketsToResponse, convertRiverMarketsToResponse, convertTellerMarketsToResponse, convertTermMarketsToResponse, convertTermMaxMarketsToResponse, convertUsddMarketsToResponse, createMarketUid, createMidnightBookSource, createMulticallRpcCall, createRawRpcCalls, createTermBookSource, createTermMaxDataSource, decodeListaMarkets, decodeMarkets, decodePackedListaUserDataset, decodePackedMorphoUserDataset, deriveBorrowTags, deriveSupplyTags, detectInterfaceKinds, dexResolverFor, disambiguateEarnNames, dolomiteVaultAddress, dssIlkBytes32, dssKeyParts, dssLenderKey, duration, earnDescription, earnLabel, earnMarketFromPool, earnMarketFromVault, earnMarketLabel, earnPositionFromLenderEntry, earnPositionFromVaultBalance, earnPositionTotals, earnRateAtMaturity, earnRowSubtitle, earnUidFromMarketUid, earnVaultTerms, earnVenueKind, encodeBalanceFetcherCalldata, enrichTermSheet, enrichmentIndexFromRows, exactlyPairLtv, exactlyPenaltyRateToAprPercent, exactlyWadRateToPercent, feePhrase, feedKeyOf, feedStatKey, fetchCoolerMarkets, fetchDolomiteAccountNumbers, fetchDolomiteSubAccounts, fetchDssMarkets, fetchEulerEarnVaults, fetchEulerEarnVaultsFromSubgraph, fetchEulerSubAccountIndexes, fetchExactlyMarkets, fetchFlashLiquidityForChain, fetchFluidDexState, fetchFluidFTokens, fetchFlyingTulipMarkets, fetchFrankencoinMarkets, fetchFraxlendPairs, fetchGeneralYields, fetchGeneralYieldsByMarketUid, fetchGmxExecutionFees, fetchGmxTickerPrices, fetchGmxVaults, fetchHypercoreVaults, fetchInverseMarkets, fetchLagoonApiVaults, fetchLagoonVaults, fetchLiquityMarkets, fetchListaVaultsFromChain, fetchLlamaLendMarkets, fetchMorphoUserBalances, fetchMorphoUserPositionMarkets, fetchMorphoVaults, fetchMorphoVaultsFromApi, fetchMorphoVaultsFromChain, fetchOraclePrices, fetchPendleApiAssets, fetchPendleApiMarkets, fetchPendlePrices, fetchPendlePtMarkets, fetchResupplyMarkets, fetchRiverMarkets, fetchSiloVaults, fetchSpectraApiMarkets, fetchSpectraPtMarkets, fetchTellerMarkets, fetchTermMarkets, fetchTermMaxMarkets, fetchTermStoreOrders, fetchTokenBalances, fetchTokenMetadata, fetchUpshiftApiVaults, fetchUpshiftVaults, fetchUsddMarkets, fetchYearnApiVaults, fetchYearnVaults, fillableRemaining, filterActiveLenders, filterLendersByProtocol, finalizeInfo, findingsFor, formatRaw, frankencoinKeyParts, frankencoinLenderKey, fraxlendAssetPerCollateral, fraxlendKeyParts, fraxlendLenderKey, fuseLenderData, generateLendingPools, getAavesForChain, getAssetConfig, getBalanceForMarketUid, getBorrowCapacity, getCachedFluidDexState, getCachedLiquityTroves, getCachedTellerBids, getCachedTermMaxDiscovery, getCachedTermMaxMarket, getCachedTermMaxMarkets, getCoreValidators, getFluidFTokensConverter, getGmxApiHost, getGmxReadContracts, getGmxUserPositions, getHealthFactor, getHypercoreUserPositions, getHypercoreVaultRegistry, getLenderAssets, getLenderPublicData, getLenderPublicDataAll, getLenderPublicDataViaApi, getLenderUserDataMulti, getLenderUserDataResult, getLendersForChain, getLstDelegation, getLstValidators, getLstWithdrawalRegistry, getLstWithdrawalRequests, getMaxAmountClose, getMaxAmountCollateralSwap, getMaxAmountDebtSwap, getMaxAmountOpen, getMergedUserData, getMorphoTypeMarketConverter, getReadFailurePolicy, getResolvedDolomiteAccountNumbers, getResolvedDolomiteSubAccounts, getStCeloValidatorGroups, getSubAccountAddress, getSubAccountIndex, getTermProfile, getVaultPublicDataAll, getVaultWithdrawalRequests, hasCritical, hasEulerEarnVaultSubgraph, hasLagoonVaults, hasMorphoPositionIndex, hasMorphoUserApi, hasMorphoUserSubgraph, hasPendleMarkets, hasSpectraMarkets, hasUpshiftVaults, hasYearnVaults, ilkToKeySegment, implausibleRatePercent, inverseKeyParts, inverseLenderKey, isBoundNeed, isFailedCall, isIlliquid, isLendingPosition, isLiveMarket as isLivePendleMarket, isLiveSpectraMarket, isMaturedTerm, isSecondaryMarketOnly, isStablecoinSymbol, isUnearnableEarnRate, isUnrealizableEarnRate, isVaultPosition, isVaultVenue, isYearnV3, keySegmentToIlk, keysFromMaps, lenderApiOnly, lenderFamily, liquityCandidateTroveIds, liquityKeyParts, liquityLenderKey, llamaLendKeyParts, llamaLendLenderKey, meetsLiquidityFloor, mergeDeep, multicall3Abi, nanTo, needsLenderApproval, needsTokenApproval, noOpResult, normalizeToBytes, organizeUserQueries, parseBalanceFetcherResult, parseDolomiteSubAccountId, parseEarnUid, parseMergedResult, parseMulticallRpcResponses, parseExpirySeconds as parsePendleExpirySeconds, parseRawRpcBatchResponses, parseRawRpcResponses, parseCurveFee as parseSpectraCurveFee, parsePtRate as parseSpectraPtRate, parseTermMaxLtv, parseTokenBalanceResult, pct, assetKey as pendleAssetKey, pickPool as pickSpectraPool, positivePart, predictInverseEscrow, prepareLenderUserDataRpcCalls, prepareMergedMulticallParams, prepareMergedRpcCalls, prepareMulticallInputs, prepareTokenBalanceRpcCalls, priceGlvVaults, priceGmMarkets, probeAaveFeedTimestamps, pruneFeedStats, rankFindings, ratePercent, readVaultSharePrices, rejectOutliers as rejectPriceOutliers, repairImpossibleTvl, resolveAdapter, resolveDerivation, resolveDolomiteRowIdentity, resolveEarnIdentity, resolveModeConfig, resolveStCeloDepositGroup, resolveVaultProfileId, resupplyKeyParts, resupplyLenderKey, resupplyMarketLabel, riverKeyParts, riverLenderKey, sanePercent as saneSpectraPercent, savingsAddresses, savingsBalanceKind, secondaryMarketVault, selectAssetGroupPrices, setMysticApiKey, shortDate, spectraAddress, spectraNetwork, spectraPoolsUrl, splitChainScopedAddress as splitPendleChainScopedAddress, stampCapabilities, stampEarnSubtitles, stampVaultClassification, stampVaultTermSheets, stripLeadingBrand, supplyDescription, supplyFindings, supplyHeadline, 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 };
|
|
15465
|
+
export { type AaveMetadata, type AaveV2Public, type AaveV2UserReserveResponse, type AaveV3Public, type AaveV3UserReserveResponse, type AdditionalYields, type AdminKind, ApiBookSource, type AprData, type AprPercent, type AssetInstrumentTerms, type AssetQuality, type AssetRiskIndex, type AuctionWindow, type AvailabilityTerms, type BalanceData, type BaseLendingPosition, type BasicReserveResponse, type BorrowExitTerms, type BorrowTermSheet, type BuildTermSheetOptions, type BuildVaultTermSheetOptions, type ChainDiagnostic, type ChainLinkResponse, type ChainQuery, type ChainSummary, type CompoundV2Metadata, type CompoundV3Public, type CompoundV3UserReserveResponse, type ConfigEntry, type ConvertLenderUserDataOptions, type CoolerDripRaw, type CoolerMarketsRaw, type CoolerPositionInfo, type CoreValidators, type CounterpartyTerms, type CoverageInfo, DEFAULT_MIDNIGHT_API, DEFAULT_OUTLIER_GUARD, DEFAULT_PROFILE_ID, DEFAULT_STALE_REJECT_SECONDS, DEFAULT_TERMMAX_API, DEFAULT_TERM_ORDER_STORE, DOLOMITE_ISO_ID_PREFIX, type DeepPartial, type Denomination, type DepthMap, type DolomiteIsolationRow, type DolomiteSubAccount, type DssMarketRaw, type DssMarketsRaw, type DssPositionInfo, EARN_DESCRIPTIONS, EARN_LABELS, EARN_RATE_SOURCE_BY_PROVIDER, EMPTY_BALANCE, type EModeAssets, type EModeData, type EModeResult, EXACTLY_LENDER_KEY, type EarnActionInput, type EarnActionKind, type EarnAmount, type EarnAppliedDefaults, type EarnAprBreakdown, type EarnAsset, type EarnAvailability, type EarnBasket, type EarnBasketLeg, type EarnCapability, type EarnCurator, type EarnExclusions, type EarnExit, type EarnExitHistory, type EarnExitHistoryDay, type EarnFacetBucket, type EarnFacets, type EarnGating, type EarnLabelDimension, type EarnLendingPosition, type EarnMarket, type EarnMarketLabelInput, type EarnPosition, type EarnPositionAsset, type EarnPositionBase, type EarnPositionLeg, type EarnPositionSourceStatus, type EarnPositionSubAccount, type EarnPositionTotals, type EarnPositionUid, type EarnPositionsResponse, type EarnProtocol, type EarnProtocolAndCurator, type EarnRate, type EarnRateSource, type EarnRefs, type EarnResponse, type EarnRisk, type EarnSanityResult, type EarnShareToken, type EarnSourceStatus, type EarnVaultNormalizeOptions, type EarnVaultPosition, type EarnVenueKind, type EarnVocabulary, type EmitterRole, type EmitterRow, type EmitterSide, type EndpointFailure, type EnrichmentIndex, type EulerEarnVault, type EulerEarnVaults, type EulerV2Metadata, type ExactlyFixedPool, type ExactlyFixedPosition, type ExactlyMarketAccount, type ExactlyMarketsRaw, type ExactlyUserFixedPosition, type ExposureEntry, type ExposureTerms, type ExtraValidationCall, FLYING_TULIP_LENDER_KEY, FRACTION_RATE_PROVIDERS, type FeeTerm, type FeeWhen, type FeedObservation, type FeedStat, type FeedStatsMap, type FeedTimestampMap, type FetchListaVaultsFromChainOptions, type FetchMorphoVaultsFromChainOptions, type FetchOraclePricesOptions, type FetchPendlePtOptions, type FetchSpectraPtOptions, type FetchTokenBalancesOptions, type FetchTokenMetadataOptions, type FlattenPriorityConfig, type FluidDexShareState, type FluidDexStateMap, type FluidFToken, type FluidFTokens, type FlyingTulipAssetRaw, type FlyingTulipMarketsRaw, type FrankencoinMarketRaw, type FrankencoinMarketsRaw, type FrankencoinPositionInfo, type FraxlendPairRaw, type FraxlendPairsRaw, type FullLenderRewardsMap, GMX_API_HOSTS, GMX_READ_CONTRACTS, GMX_SUPPORTED_CHAINS, type GenericCurrency, type GenericTokenList, type GetVaultPublicDataAllOptions, type GmxExecutionFees, type GmxPendingDeposit, type GmxPendingWithdrawal, type GmxReadContracts, type GmxUserBalance, type GmxUserPositions, type GmxUserPositionsOptions, type GmxVault, type GmxVaultKind, type GmxVaults, type GmxVaultsFetchOptions, type GovernancePower, type GovernanceRow, type GovernanceTerms, type GroupAccumulator, HYPERCORE_VAULT_REGISTRY, type HypercoreLockStatus, type HypercoreUserPositionsOptions, type HypercoreVault, type HypercoreVaultPosition, type HypercoreVaultRegistryEntry, type HypercoreVaults, type HypercoreVaultsFetchOptions, IDLE_MARKET_ID, INTERFACE_IDS, type IncompleteLenderRead, type IncompleteReason, type InitMetadata, type InitPublic, type InitUserReserveResponse, type InterfaceKind, type InvariantViolation, type InverseMarketRaw, type InverseMarketsRaw, type InversePositionInfo, LAGOON_API_URL, LAGOON_CHAIN_IDS, type LagoonApiVault, type LagoonSyncMode, type LagoonVault, type LagoonVaults, type LenderAssetReward, type LenderConfigData, type LenderConfigMap, type LenderCrossPoolMeta, type LenderData, type LenderDataEntry, type LenderInfo, type LenderInfoMap, type LenderPublicBase, type LenderRewardsMap, type LenderSummary, type LenderToLenderCrossPoolMeta, type LenderTotalAmounts, type LenderUserParams, type LenderUserQuery, type LenderUserResponse, type LenderYieldComplete, type LenderYields$1 as LenderYields, LendingMode, type LiquidationPenaltyTerm, type LiquidationTerms, type LiquityBranchRaw, type LiquityDiscoveredTrove, type LiquityDiscovery, type LiquityMarketsRaw, type LiquitySpInfo, type LiquityTroveInfo, type ListaMarketOverrides, type LlamaLendMarketOverride, type LlamaLendMarketOverrides, type LlamaLendMarketRaw, type LlamaLendMarketsRaw, type LlamaLendPositionInfo, type LoopPostTradeMetrics, type LstDelegation, type LstDelegationKind, type LstValidator, type LstWithdrawalFetchOptions, type LstWithdrawalRegistryEntry, type LstWithdrawalRequest, type LstWithdrawalRequestsByLst, type LstWithdrawalStatus, MORPHO_LENS, MULTICALL_FAILURE, type MaturityTerms, MaxParamThresholds, type MergedUserData, type MetaFilter, type MidnightBook, type MidnightBookLevel, type MidnightBookSource, type ModeBase, type ModeVariant, type MorphoMarketOverrides, type MorphoSubgraphProxyConfig, type MorphoUserMarketBalance, type MorphoUserReserveResponse, type MorphoVault, type MorphoVaults, type MulticallEndpointOptions, type MulticallRpcBatch, type NumberMap, type Open, type OracleBand, type OracleDiagnostics, type OraclePriceEntry, type OraclePricesResult, type OracleRiskRow, type OracleTerms, type OutlierGuardConfig, PASSTHROUGH_RATE_EPSILON, PENDLE_ASSETS_URL, PENDLE_CHAIN_IDS, PENDLE_MARKETS_URL, PREFIX_LENDERS, type ParsedBalanceData, type ParsedEarnUid, type ParsedLendingEarnUid, type ParsedResponse, type ParsedUserBalance, type ParsedVaultEarnUid, type PendleApiAsset, type PendleApiMarket, type PendleApiMarketDetails, type PendlePtMarket, type PendlePtMarkets, type PermissionKind, type PermissionParams, type PoolData, type PoolSourceRow, type PoolWithMeta, type PortfolioSummary, type PortfolioTotals, type PositionConstraints, type PostTradeMetrics, type PreparedCall, type PreparedMergedMulticallParams, type PreparedMergedRpcCalls, type PreparedTokenBalanceRpcCalls, type PreparedUserDataRpcCalls, type PriceDerivation, type PriceSelection, type ProtocolParams, type ProviderOptions, type RateKind, type RateMenuEntry, type RateTerms, type RawRpcBatch, type RawRpcCall, type RawRpcResponse, type ReadFailurePolicy, type ReadUserPositionsParams, type ReadUserPositionsResult, type RedemptionTerms, type ResupplyMarketsRaw, type ResupplyPairIdentity, type ResupplyPairRaw, type ResupplyPositionInfo, type ResupplyWrappedMarket, type RewardSourceRef, type RewardStream, type RewardTerm, type RewardTokenRef, type RiverMarketRaw, type RiverMarketsRaw, type RiverPositionInfo, SDK_FRACTION_RATE_PROVIDERS, SPECTRA_NETWORKS, SPECTRA_RATE_MAX_PERCENT, SPECTRA_RATE_MIN_PERCENT, STABLECOIN_SYMBOLS, STCELO_MANAGER_ADDRESS, 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, TELLER_CALLS_PER_BID, DECIMAL_BASE as TERMMAX_DECIMAL_BASE, TERMMAX_LIQUIDATION_PENALTY, TERMMAX_LIQUIDATION_WINDOW_SECS, TERMMAX_LIQUIDATOR_BONUS, TERMMAX_MARKETS_PER_CALL, TERMMAX_PARTIAL_CLOSE_FACTOR, TERMMAX_PARTIAL_LIQUIDATION_THRESHOLD_USD, TERM_ADAPTERS, TERM_PROFILES, TERM_SHEET_SCHEMA_VERSION, type TellerDiscoveredBid, type TellerDiscovery, type TellerMarketsRaw, type TellerPoolRaw, type TermAdapter, type TermAssetRef, type TermAuctionOrder, type TermAuctionOrders, type TermBookSource, type TermBookTop, type TermFillNow, type TermFillNowSide, type TermInfo, type TermListing, type TermMarketRaw, TermMaxApiSource, type TermMaxBookTop, type TermMaxCurveSegment, type TermMaxDataSource, type TermMaxDiscovery, type TermMaxFeeConfig, type TermMaxMarketConfig, type TermMaxMarketRaw, type TermMaxOrderState, type TermProfile, type TermSheet, type TermSheetDigest, type TermSheetInput, type TermSheetViolation, type TermStoreOrder, TermSubgraphSource, type TermTag, type TokenApprovalMeta, type TokenApprovalParams, type TokenBalanceEntry, type TokenBalanceQuery, type TokenBalanceResult, type TokenEntry, type TokenList, type TokenListInput, type TrackerDiagnostic, UPSHIFT_CHAIN_IDS, UPSHIFT_VAULTS_URL, type USDPriceMap, type UpshiftApiAsset, type UpshiftApiVault, type UpshiftVault, type UpshiftVaults, type UsddMarketRaw, type UsddMarketsRaw, type DssPositionInfo as UsddPositionInfo, type UserApr, type UserCallOptions, type UserConfig, type UserData, type UserDataResult, type UserDataTransport, type UserLendingPosition, type UtilizationTerms, VAULT_PROVIDERS, VAULT_PROVIDER_PROFILE, VAULT_PROVIDER_TRAITS, VAULT_SHARE_PRICE_PROBE, VAULT_VENUE_PREFIX, VOLATILE_VAULT_OVERRIDES, type ValidationResult, type VaultAprResult, type VaultBalanceInput, type VaultClassification, type VaultClassificationFields, type VaultLookupEntry, type VaultMarketExposure, type VaultProvider, type VaultProviderTraits, type VaultPublicDataAll, type VaultPublicDataResult, type VaultSourceRow, type VaultTermInput, type VaultYieldSeries, type VaultYieldSnapshot, type YDaemonVault, YEARN_CHAIN_IDS, YEARN_YDAEMON_BASE, type YearnVault, type YearnVaultKind, type YearnVaults, type YieldProfile, __resetResupplyUserCaches, accountDepositListKey, accountWithdrawalListKey, appendSnapshot, applyEarnSanity, applyPositionDelta, attachImplications, attachPricesToFlashLiquidity, blockNumberFromTag, borrowDescription, borrowFindings, borrowHeadline, buildExposures, buildFluidFTokensCall, buildLendingPositionUid, buildLiquityUserCall, buildLoopResult, buildMorphoTypeCall, buildMorphoTypeUserCallWithLens, buildPortfolioTotals, buildQueriesFromMeta, buildSumerAccumulators, buildSummaries, buildTellerUserCall, buildTermMaxUserCall, buildTermSheet, buildTermSheetsForGroup, buildVaultEarnUid, buildVaultLookup, buildVaultTermSheet, calculateLeverage, calculateNetApr, calculateOverallNetApr, calculateWeightedAverage, classifyFreshness, classifyReliability, classifyVault, clearPendleMarketsCache, clearSpectraMarketsCache, collateralSymbolsByVenue, collectFeedObservations, computeBorrowDelta, computeCloseTradeDeltas, computeCollateralSwapDeltas, computeDebtSwapDeltas, computeDepositDelta, computeEModeAnalysis, computeOpenTradeDeltas, computePostTradeMetrics, computeRepayDelta, computeSumerBorrowDelta, computeSumerDepositDelta, computeSumerRepayDelta, computeSumerWaterfall, computeSumerWithdrawDelta, computeVaultApr, computeWithdrawDelta, computeZapTradeDeltas, consensusReference, convertCoolerMarketsToResponse, convertDssMarketsToResponse, convertExactlyMarketsToResponse, convertFlyingTulipMarketsToResponse, convertFrankencoinMarketsToResponse, convertFraxlendPairsToResponse, convertInverseMarketsToResponse, convertLenderUserDataResult, convertLiquityMarketsToResponse, convertLlamaLendMarketsToResponse, convertResupplyMarketsToResponse, convertRiverMarketsToResponse, convertTellerMarketsToResponse, convertTermMarketsToResponse, convertTermMaxMarketsToResponse, convertUsddMarketsToResponse, createMarketUid, createMidnightBookSource, createMulticallRpcCall, createRawRpcCalls, createTermBookSource, createTermMaxDataSource, decodeListaMarkets, decodeMarkets, decodePackedListaUserDataset, decodePackedMorphoUserDataset, deriveBorrowTags, deriveSupplyTags, detectInterfaceKinds, dexResolverFor, disambiguateEarnNames, dolomiteVaultAddress, dssIlkBytes32, dssKeyParts, dssLenderKey, duration, earnDescription, earnLabel, earnMarketFromPool, earnMarketFromVault, earnMarketLabel, earnPositionFromLenderEntry, earnPositionFromVaultBalance, earnPositionTotals, earnRateAtMaturity, earnRowSubtitle, earnUidFromMarketUid, earnVaultTerms, earnVenueKind, emitterCoverage, encodeBalanceFetcherCalldata, enrichTermSheet, enrichmentIndexFromRows, enumerateEmitters, exactlyPairLtv, exactlyPenaltyRateToAprPercent, exactlyWadRateToPercent, feePhrase, feedKeyOf, feedStatKey, fetchCoolerMarkets, fetchDolomiteAccountNumbers, fetchDolomiteSubAccounts, fetchDssMarkets, fetchEulerEarnVaults, fetchEulerEarnVaultsFromSubgraph, fetchEulerSubAccountIndexes, fetchExactlyMarkets, fetchFlashLiquidityForChain, fetchFluidDexState, fetchFluidFTokens, fetchFlyingTulipMarkets, fetchFrankencoinMarkets, fetchFraxlendPairs, fetchGeneralYields, fetchGeneralYieldsByMarketUid, fetchGmxExecutionFees, fetchGmxTickerPrices, fetchGmxVaults, fetchHypercoreVaults, fetchInverseMarkets, fetchLagoonApiVaults, fetchLagoonVaults, fetchLiquityMarkets, fetchListaVaultsFromChain, fetchLlamaLendMarkets, fetchMorphoUserBalances, fetchMorphoUserPositionMarkets, fetchMorphoVaults, fetchMorphoVaultsFromApi, fetchMorphoVaultsFromChain, fetchOraclePrices, fetchPendleApiAssets, fetchPendleApiMarkets, fetchPendlePrices, fetchPendlePtMarkets, fetchResupplyMarkets, fetchRiverMarkets, fetchSiloVaults, fetchSpectraApiMarkets, fetchSpectraPtMarkets, fetchTellerMarkets, fetchTermMarkets, fetchTermMaxMarkets, fetchTermStoreOrders, fetchTokenBalances, fetchTokenMetadata, fetchUpshiftApiVaults, fetchUpshiftVaults, fetchUsddMarkets, fetchYearnApiVaults, fetchYearnVaults, fillableRemaining, filterActiveLenders, filterLenderMeta, filterLendersByProtocol, finalizeInfo, findingsFor, formatRaw, frankencoinKeyParts, frankencoinLenderKey, fraxlendAssetPerCollateral, fraxlendKeyParts, fraxlendLenderKey, fuseLenderData, generateLendingPools, getAavesForChain, getAssetConfig, getBalanceForMarketUid, getBorrowCapacity, getCachedFluidDexState, getCachedLiquityTroves, getCachedTellerBids, getCachedTermMaxDiscovery, getCachedTermMaxMarket, getCachedTermMaxMarkets, getCoreValidators, getFluidFTokensConverter, getGmxApiHost, getGmxReadContracts, getGmxUserPositions, getHealthFactor, getHypercoreUserPositions, getHypercoreVaultRegistry, getLenderAssets, getLenderPublicData, getLenderPublicDataAll, getLenderPublicDataViaApi, getLenderUserDataMulti, getLenderUserDataResult, getLendersForChain, getLstDelegation, getLstValidators, getLstWithdrawalRegistry, getLstWithdrawalRequests, getMaxAmountClose, getMaxAmountCollateralSwap, getMaxAmountDebtSwap, getMaxAmountOpen, getMergedUserData, getMorphoTypeMarketConverter, getReadFailurePolicy, getResolvedDolomiteAccountNumbers, getResolvedDolomiteSubAccounts, getStCeloValidatorGroups, getSubAccountAddress, getSubAccountIndex, getTermProfile, getVaultPublicDataAll, getVaultWithdrawalRequests, hasCritical, hasEulerEarnVaultSubgraph, hasLagoonVaults, hasMorphoPositionIndex, hasMorphoUserApi, hasMorphoUserSubgraph, hasPendleMarkets, hasSpectraMarkets, hasUpshiftVaults, hasYearnVaults, ilkToKeySegment, implausibleRatePercent, injectLenderInfoIntoEntries, inverseKeyParts, inverseLenderKey, isBoundNeed, isFailedCall, isIlliquid, isLendingPosition, isLiveMarket as isLivePendleMarket, isLiveSpectraMarket, isMaturedTerm, isSecondaryMarketOnly, isStablecoinSymbol, isUnearnableEarnRate, isUnrealizableEarnRate, isVaultPosition, isVaultVenue, isYearnV3, keySegmentToIlk, keysFromMaps, lenderApiOnly, lenderFamily, liquityCandidateTroveIds, liquityKeyParts, liquityLenderKey, llamaLendKeyParts, llamaLendLenderKey, marketKeysOf, meetsLiquidityFloor, mergeDeep, multicall3Abi, nanTo, needsLenderApproval, needsTokenApproval, noOpResult, normalizeToBytes, organizeUserQueries, parseBalanceFetcherResult, parseDolomiteSubAccountId, parseEarnUid, parseLenderKey, parseMergedResult, parseMulticallRpcResponses, parseExpirySeconds as parsePendleExpirySeconds, parseRawRpcBatchResponses, parseRawRpcResponses, parseCurveFee as parseSpectraCurveFee, parsePtRate as parseSpectraPtRate, parseTermMaxLtv, parseTokenBalanceResult, pct, assetKey as pendleAssetKey, pickPool as pickSpectraPool, positivePart, predictInverseEscrow, prepareLenderUserDataRpcCalls, prepareMergedMulticallParams, prepareMergedRpcCalls, prepareMulticallInputs, prepareTokenBalanceRpcCalls, priceGlvVaults, priceGmMarkets, probeAaveFeedTimestamps, pruneFeedStats, rankFindings, ratePercent, readUserPositions, readVaultSharePrices, rejectOutliers as rejectPriceOutliers, repairImpossibleTvl, resolveAdapter, resolveDerivation, resolveDolomiteRowIdentity, resolveEarnIdentity, resolveModeConfig, resolveStCeloDepositGroup, resolveVaultProfileId, resupplyKeyParts, resupplyLenderKey, resupplyMarketLabel, riverKeyParts, riverLenderKey, sanePercent as saneSpectraPercent, savingsAddresses, savingsBalanceKind, secondaryMarketVault, selectAssetGroupPrices, setMysticApiKey, shortDate, spectraAddress, spectraNetwork, spectraPoolsUrl, splitChainScopedAddress as splitPendleChainScopedAddress, stampCapabilities, stampEarnSubtitles, stampVaultClassification, stampVaultTermSheets, stripLeadingBrand, subAccountsOf, supplyDescription, supplyFindings, supplyHeadline, 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 };
|