@1delta/margin-fetcher 5.0.116 → 5.0.118

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.js CHANGED
@@ -22161,9 +22161,9 @@ async function fetchTopAndBookWithFallback(source, chainId, marketId, nowSec9) {
22161
22161
  lastGood.set(key4, { top: fresh2.top, book: fresh2.book, at: nowSec9 });
22162
22162
  return { top: fresh2.top, book: fresh2.book };
22163
22163
  }
22164
- const cached = lastGood.get(key4);
22165
- if (cached && nowSec9 - cached.at <= LKG_TTL_SEC) {
22166
- return { top: cached.top, book: cached.book };
22164
+ const cached2 = lastGood.get(key4);
22165
+ if (cached2 && nowSec9 - cached2.at <= LKG_TTL_SEC) {
22166
+ return { top: cached2.top, book: cached2.book };
22167
22167
  }
22168
22168
  return { top: null, book: null };
22169
22169
  }
@@ -22955,10 +22955,10 @@ async function fetchTopAndBookWithFallback2(source, chainId, config, nowSec9) {
22955
22955
  });
22956
22956
  return { top: fresh2.top, book: fresh2.book, auction: fresh2.auction ?? null };
22957
22957
  }
22958
- const cached = lastGood2.get(key4);
22959
- if (cached && nowSec9 - cached.at <= LKG_TTL_SEC2) {
22960
- const stillOpen = cached.auction && cached.auction.endTime > nowSec9 ? cached.auction : null;
22961
- return { top: cached.top, book: cached.book, auction: stillOpen };
22958
+ const cached2 = lastGood2.get(key4);
22959
+ if (cached2 && nowSec9 - cached2.at <= LKG_TTL_SEC2) {
22960
+ const stillOpen = cached2.auction && cached2.auction.endTime > nowSec9 ? cached2.auction : null;
22961
+ return { top: cached2.top, book: cached2.book, auction: stillOpen };
22962
22962
  }
22963
22963
  return { top: null, book: null, auction: null };
22964
22964
  }
@@ -24801,11 +24801,11 @@ function refreshLiveMarkets(chainId, source) {
24801
24801
  async function fetchTermMaxMarkets(chainId, source = createTermMaxDataSource(chainId), options) {
24802
24802
  if (!termMaxConfigByChain(chainId)) return [];
24803
24803
  const nowSec9 = Math.floor(Date.now() / 1e3);
24804
- const cached = lastGood3.get(chainId);
24805
- const ageSec = cached ? nowSec9 - cached.at : Infinity;
24804
+ const cached2 = lastGood3.get(chainId);
24805
+ const ageSec = cached2 ? nowSec9 - cached2.at : Infinity;
24806
24806
  let live;
24807
- if (cached && ageSec <= LKG_TTL_SEC3) {
24808
- live = cached.markets.filter((m) => m.config.maturity > nowSec9);
24807
+ if (cached2 && ageSec <= LKG_TTL_SEC3) {
24808
+ live = cached2.markets.filter((m) => m.config.maturity > nowSec9);
24809
24809
  const attemptedAt = lastRefreshAttempt.get(chainId) ?? 0;
24810
24810
  if (ageSec * 1e3 > SWR_FRESH_MS && Date.now() - attemptedAt > REFRESH_RETRY_MS) {
24811
24811
  void refreshLiveMarkets(chainId, source);
@@ -32230,8 +32230,8 @@ function indexesFromApiPositions(positions, owner) {
32230
32230
  }
32231
32231
  function fetchEulerActiveIndexesViaApi(chainId, owner) {
32232
32232
  const key4 = `${chainId}:${owner.toLowerCase()}`;
32233
- const cached = accountCache.get(key4);
32234
- if (cached) return cached.promise;
32233
+ const cached2 = accountCache.get(key4);
32234
+ if (cached2) return cached2.promise;
32235
32235
  const promise = fetchEulerPositionsFromApi(chainId, owner).then(
32236
32236
  (positions) => positions === void 0 ? void 0 : indexesFromApiPositions(positions, owner)
32237
32237
  ).catch(() => void 0);
@@ -32521,8 +32521,8 @@ function dolomiteVaultAddress(chainId, marketId, user) {
32521
32521
  var subgraphCache = /* @__PURE__ */ new Map();
32522
32522
  function fetchDolomiteSubAccounts(chainId, owner) {
32523
32523
  const key4 = `${chainId}:${owner.toLowerCase()}`;
32524
- const cached = subgraphCache.get(key4);
32525
- if (cached) return cached.promise;
32524
+ const cached2 = subgraphCache.get(key4);
32525
+ if (cached2) return cached2.promise;
32526
32526
  const promise = fetchSubAccountsFromSubgraph(chainId, owner).then((accounts) => withDefault(owner, accounts)).catch(() => withDefault(owner, []));
32527
32527
  const timer = setTimeout(
32528
32528
  () => subgraphCache.delete(key4),
@@ -33285,8 +33285,8 @@ var toNum4 = (v) => {
33285
33285
  };
33286
33286
  var fetchRoster = async (chainId, lender, opts) => {
33287
33287
  const key4 = rosterKey(chainId, lender, blockKey(opts));
33288
- const cached = rosterCache4.get(key4);
33289
- if (cached && Date.now() - cached.at < ROSTER_TTL_MS) return cached;
33288
+ const cached2 = rosterCache4.get(key4);
33289
+ if (cached2 && Date.now() - cached2.at < ROSTER_TTL_MS) return cached2;
33290
33290
  const addresses = await resolveRipeAddresses(
33291
33291
  lender,
33292
33292
  chainId,
@@ -33388,8 +33388,8 @@ var buildRipeUserCall = async (chainId, lender, account, opts) => {
33388
33388
  roster = void 0;
33389
33389
  }
33390
33390
  if (!roster) return [];
33391
- const cached = discoveryCache2.get(key4);
33392
- let vaults = cached && Date.now() - cached.at < DISCOVERY_TTL_MS ? cached.vaults : await discover2(chainId, roster, account, opts);
33391
+ const cached2 = discoveryCache2.get(key4);
33392
+ let vaults = cached2 && Date.now() - cached2.at < DISCOVERY_TTL_MS ? cached2.vaults : await discover2(chainId, roster, account, opts);
33393
33393
  if (!vaults) return [];
33394
33394
  discoveryCache2.set(key4, {
33395
33395
  addresses: roster.addresses,
@@ -33421,8 +33421,8 @@ var rosterKey2 = (chainId, lender, block = "head") => `${chainId}:${lender}:${bl
33421
33421
  var discoveryKey2 = (chainId, lender, account, block = "head") => `${chainId}:${lender}:${account.toLowerCase()}:${block}`;
33422
33422
  var getCachedResupplyDiscovery = (chainId, lender, account, opts) => discoveryCache3.get(discoveryKey2(chainId, lender, account, blockKey(opts)));
33423
33423
  var fetchRoster2 = async (chainId, lender, registry, allowlist2, opts) => {
33424
- const cached = rosterCache5.get(rosterKey2(chainId, lender, blockKey(opts)));
33425
- if (cached && Date.now() - cached.at < ROSTER_TTL_MS2) return cached;
33424
+ const cached2 = rosterCache5.get(rosterKey2(chainId, lender, blockKey(opts)));
33425
+ if (cached2 && Date.now() - cached2.at < ROSTER_TTL_MS2) return cached2;
33426
33426
  let addresses = [];
33427
33427
  const [raw] = await discoveryMulticall(
33428
33428
  {
@@ -33617,8 +33617,8 @@ var rosterKey3 = (chainId, lender, block = "head") => `${chainId}:${lender}:${bl
33617
33617
  var discoveryKey3 = (chainId, lender, account, block = "head") => `${chainId}:${lender}:${account.toLowerCase()}:${block}`;
33618
33618
  var getCachedCurvanceDiscovery = (chainId, lender, account, opts) => discoveryCache4.get(discoveryKey3(chainId, lender, account, blockKey(opts)));
33619
33619
  var fetchRoster3 = async (chainId, lender, centralRegistry, allowlist2, opts) => {
33620
- const cached = rosterCache6.get(rosterKey3(chainId, lender, blockKey(opts)));
33621
- if (cached && Date.now() - cached.at < ROSTER_TTL_MS3) return cached;
33620
+ const cached2 = rosterCache6.get(rosterKey3(chainId, lender, blockKey(opts)));
33621
+ if (cached2 && Date.now() - cached2.at < ROSTER_TTL_MS3) return cached2;
33622
33622
  let managers = [];
33623
33623
  const [raw] = await discoveryMulticall(
33624
33624
  {
@@ -33763,8 +33763,8 @@ var buildCurvanceUserCall = async (chainId, lender, account, opts) => {
33763
33763
  stash([]);
33764
33764
  return [];
33765
33765
  }
33766
- const cached = discoveryCache4.get(key4);
33767
- const positions = cached && Date.now() - cached.at < DISCOVERY_TTL_MS3 ? cached.positions : await discoverPositions2(chainId, roster.markets, account, opts);
33766
+ const cached2 = discoveryCache4.get(key4);
33767
+ const positions = cached2 && Date.now() - cached2.at < DISCOVERY_TTL_MS3 ? cached2.positions : await discoverPositions2(chainId, roster.markets, account, opts);
33768
33768
  stash(positions);
33769
33769
  if (positions.length === 0) return [];
33770
33770
  return positions.flatMap((p) => [
@@ -33800,8 +33800,8 @@ var lower2 = (a) => String(a).toLowerCase();
33800
33800
  var isAddress4 = (v) => typeof v === "string" && /^0x[0-9a-fA-F]{40}$/.test(v);
33801
33801
  async function discover3(chainId, lender, account, opts) {
33802
33802
  const key4 = discoveryKey4(chainId, lender, account, blockKey(opts));
33803
- const cached = discoveryCache5.get(key4);
33804
- if (cached && Date.now() - cached.at < DISCOVERY_TTL_MS4) return cached;
33803
+ const cached2 = discoveryCache5.get(key4);
33804
+ if (cached2 && Date.now() - cached2.at < DISCOVERY_TTL_MS4) return cached2;
33805
33805
  const cfg = twyneConfigFor(lender, chainId);
33806
33806
  const empty2 = { vaults: [], at: Date.now() };
33807
33807
  if (!cfg?.collateralVaultFactory) return empty2;
@@ -44785,9 +44785,9 @@ function cacheKey6(chainId, account) {
44785
44785
  async function dedupedFetch(chainId, account, loader) {
44786
44786
  const key4 = cacheKey6(chainId, account);
44787
44787
  const now = Date.now();
44788
- const cached = resolved.get(key4);
44789
- if (cached && cached.expiresAt > now) {
44790
- return cached.value;
44788
+ const cached2 = resolved.get(key4);
44789
+ if (cached2 && cached2.expiresAt > now) {
44790
+ return cached2.value;
44791
44791
  }
44792
44792
  const existing = inflight3.get(key4);
44793
44793
  if (existing) return existing;
@@ -48972,10 +48972,14 @@ var mapleFetcher = {
48972
48972
 
48973
48973
  // src/yields/intrinsic/fetchers/yoProtocol.ts
48974
48974
  var YO_URL = "https://api.yo.xyz/api/v1/vault/stats";
48975
- var yoeth = "Yield Optimizer ETH::YOETH";
48976
- var yobtc = "Yield Optimizer BTC::YOBTC";
48977
- var yousd = "Yield Optimizer USD::YOUSD";
48978
- var yoeur = "Yield Optimizer EUR::yoEUR";
48975
+ var YO_YIELD_KEYS = {
48976
+ yoETH: "Yield Optimizer ETH::YOETH",
48977
+ yoBTC: "Yield Optimizer BTC::YOBTC",
48978
+ yoUSD: "Yield Optimizer USD::YOUSD",
48979
+ yoEUR: "Yield Optimizer EUR::yoEUR",
48980
+ yoUSDEdge: "Yield Optimizer USD Edge::yoUSDEdge",
48981
+ yoGOLD: "Yield Optimizer GOLD::yoGOLD"
48982
+ };
48979
48983
  var yoFetcher = {
48980
48984
  label: "YO",
48981
48985
  fetch: async () => {
@@ -48983,17 +48987,13 @@ var yoFetcher = {
48983
48987
  method: "GET",
48984
48988
  headers: { Accept: "application/json" }
48985
48989
  }).then((r) => r.json());
48986
- const datas = res?.data;
48987
- const yoETH = datas.find((a) => a.id === "yoETH").yield?.["1d"];
48988
- const yoBTC = datas.find((a) => a.id === "yoBTC").yield?.["1d"];
48989
- const yoUSD = datas.find((a) => a.id === "yoUSD").yield?.["1d"];
48990
- const yoEUR = datas.find((a) => a.id === "yoEUR").yield?.["1d"];
48991
- return {
48992
- [yoeth]: apyToAprPercent(yoETH),
48993
- [yobtc]: apyToAprPercent(yoBTC),
48994
- [yousd]: apyToAprPercent(yoUSD),
48995
- [yoeur]: apyToAprPercent(yoEUR)
48996
- };
48990
+ const datas = res?.data ?? [];
48991
+ const out = {};
48992
+ for (const [id, key4] of Object.entries(YO_YIELD_KEYS)) {
48993
+ const apy = Number(datas.find((a) => a?.id === id)?.yield?.["1d"]);
48994
+ if (Number.isFinite(apy)) out[key4] = apyToAprPercent(apy);
48995
+ }
48996
+ return out;
48997
48997
  }
48998
48998
  };
48999
48999
 
@@ -53509,7 +53509,7 @@ var sGreenGroup = {
53509
53509
  base: {
53510
53510
  symbol: "sGREEN",
53511
53511
  brand: "Ripe",
53512
- description: "GREEN is Ripe Protocol's overcollateralised USD stablecoin, minted by borrowers against multi-collateral positions (tokenised stocks, ETH, stablecoins) and through a peg-stability module. sGREEN is its ERC-4626 savings vault: borrower interest and origination fees are minted into it as GREEN, net of a governance-set share routed to RIPE buybacks, so the share price steps up when revenue is realised and sits flat in between. Each chain's vault is independent with its own rate. Deposits and withdrawals are instant, permissionless and free.",
53512
+ description: "GREEN is Ripe Protocol's USD stablecoin. Only about a fifth of its supply is borrower debt against multi-collateral positions (tokenised stocks, ETH, stablecoins): the rest is minted by the protocol itself into its Curve pools (a stabilizer, repaid as it is removed) and against USDC through a peg-stability module whose reserves sit in Underscore's own USDC vault and whose redemptions are allowlisted on Base. A 2-of-3 multisig controls minting, prices and limits with no time lock, and single keys can freeze accounts. sGREEN is its ERC-4626 savings vault: borrower interest and origination fees are minted into it as GREEN, net of a governance-set share routed to RIPE buybacks, so the share price steps up when revenue is realised and sits flat in between. Each chain's vault is independent with its own rate. Deposits and withdrawals are instant, permissionless and free.",
53513
53513
  decimals: 18,
53514
53514
  isRebasing: false,
53515
53515
  isMintable: true,
@@ -53594,6 +53594,27 @@ var frankencoinSavingsBase = {
53594
53594
  solvency: "overcollateralized",
53595
53595
  yieldFetcher: frankencoinSavingsFetcher
53596
53596
  };
53597
+ var YO_VAULTS = {
53598
+ yoETH: "0x3a43aec53490cb9fa922847385d82fe25d0e9de7",
53599
+ yoBTC: "0xbcbc8cb4d1e8ed048a6276a5e94a3e952660bcbc",
53600
+ yoUSD: "0x0000000f2eb9f69274678c76222b35eec7588a65",
53601
+ yoEUR: "0x50c749ae210d3977adc824ae11f3c7fd10c871e9",
53602
+ yoUSDEdge: "0x5dd8bfa6c5c68d05d25ef6143e05c11e26c4cdb7",
53603
+ yoGOLD: "0x586675a3a46b008d8408933cf42d8ff6c9cc61a1"
53604
+ };
53605
+ var yoVault = (key4, underlying, decimals, asset) => ({
53606
+ address: YO_VAULTS[key4],
53607
+ underlying,
53608
+ symbol: key4 === "yoUSDEdge" ? "yoUSD Edge" : key4,
53609
+ brand: "YO",
53610
+ description: key4 === "yoUSDEdge" ? `YO's higher-yield ${asset} optimizer: ${asset} is allocated across a wider, riskier set of curated on-chain strategies than yoUSD, and yield accrues into the share price. Async ERC-7540 redemption \u2014 instant when idle liquidity covers it, up to ~24 hours when unwinding non-liquid strategies.` : `YO's ${asset} yield optimizer: ${asset} is allocated across curated on-chain strategies and yield accrues into the share price. Async ERC-7540 redemption \u2014 instant when idle liquidity covers it, up to ~24 hours when unwinding non-liquid strategies.`,
53611
+ decimals,
53612
+ isRebasing: false,
53613
+ isMintable: true,
53614
+ withdrawalMode: "request-based",
53615
+ yieldFetcher: yoFetcher,
53616
+ yieldKey: YO_YIELD_KEYS[key4]
53617
+ });
53597
53618
  var ybMarket = (symbol, underlying, underlyingDecimals, address, capacityContract, yieldKey) => ({
53598
53619
  reader: "yieldbasis-lt",
53599
53620
  address,
@@ -53653,6 +53674,17 @@ var YIELD_BASIS_ENTRIES = [
53653
53674
  var SINGLE_CHAIN_ENTRIES = {
53654
53675
  "1": [
53655
53676
  ...YIELD_BASIS_ENTRIES,
53677
+ yoVault("yoETH", "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", 18, "WETH"),
53678
+ yoVault("yoBTC", "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf", 8, "cbBTC"),
53679
+ yoVault("yoUSD", "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", 6, "USDC"),
53680
+ yoVault("yoEUR", "0x1abaea1f7c830bd89acc67ec4af516284b1bc33c", 6, "EURC"),
53681
+ yoVault(
53682
+ "yoUSDEdge",
53683
+ "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
53684
+ 6,
53685
+ "USDC"
53686
+ ),
53687
+ yoVault("yoGOLD", "0x68749665ff8d2d112fa859aa293f07a622782f38", 6, "XAUt"),
53656
53688
  {
53657
53689
  address: "0x9d39a5de30e57443bff2a8307a4256c8797a3497",
53658
53690
  underlying: "0x4c9edd5852cd905f086c759e8383e09bff1e68b3",
@@ -55028,6 +55060,13 @@ var SINGLE_CHAIN_ENTRIES = {
55028
55060
  }
55029
55061
  ],
55030
55062
  "42161": [
55063
+ yoVault("yoUSD", "0xaf88d065e77c8cc2239327c5edb3a432268e5831", 6, "USDC"),
55064
+ yoVault(
55065
+ "yoUSDEdge",
55066
+ "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
55067
+ 6,
55068
+ "USDC"
55069
+ ),
55031
55070
  {
55032
55071
  // Same CREATE2 family as mainnet spUSDT but an independent vault
55033
55072
  // with its own `vsr`. Seeded (~$1k) at time of writing.
@@ -55049,19 +55088,16 @@ var SINGLE_CHAIN_ENTRIES = {
55049
55088
  }
55050
55089
  ],
55051
55090
  "8453": [
55052
- {
55053
- address: "0x3a43aec53490cb9fa922847385d82fe25d0e9de7",
55054
- underlying: "0x4200000000000000000000000000000000000006",
55055
- symbol: "yoETH",
55056
- brand: "YO",
55057
- description: "YO's ETH yield optimizer: WETH is allocated across curated on-chain strategies and yield accrues into the share price. Async ERC-7540 redemption \u2014 instant when idle liquidity covers it, up to ~24 hours when unwinding non-liquid strategies.",
55058
- decimals: 18,
55059
- isRebasing: false,
55060
- isMintable: true,
55061
- withdrawalMode: "request-based",
55062
- yieldFetcher: yoFetcher,
55063
- yieldKey: "Yield Optimizer ETH::YOETH"
55064
- },
55091
+ yoVault("yoETH", "0x4200000000000000000000000000000000000006", 18, "WETH"),
55092
+ yoVault("yoBTC", "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf", 8, "cbBTC"),
55093
+ yoVault("yoUSD", "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913", 6, "USDC"),
55094
+ yoVault("yoEUR", "0x60a3e35cc302bfa44cb288bc5a4f316fdb1adb42", 6, "EURC"),
55095
+ yoVault(
55096
+ "yoUSDEdge",
55097
+ "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
55098
+ 6,
55099
+ "USDC"
55100
+ ),
55065
55101
  {
55066
55102
  // Frankencoin savings module, Base — 255,196 ZCHF at 2026-08-12.
55067
55103
  // Note the module address is the SAME on Base and Optimism
@@ -62291,6 +62327,54 @@ function parseSiloV3GraphQLResults(items, context) {
62291
62327
  return out;
62292
62328
  }
62293
62329
 
62330
+ // src/prices/oracle-prices/fetchers/pendle.ts
62331
+ var PENDLE_PT_PRICES_URL = "https://api-v2.pendle.finance/core/v1/prices/assets?type=PT";
62332
+ var PENDLE_PRICE_KEY = "PENDLE";
62333
+ var CACHE_MS = 6e4;
62334
+ var TIMEOUT_MS5 = 1e4;
62335
+ var cached = {
62336
+ at: 0,
62337
+ prices: Promise.resolve(null)
62338
+ };
62339
+ function fetchPendlePtPricesRaw() {
62340
+ const now = Date.now();
62341
+ if (now - cached.at < CACHE_MS) return cached.prices;
62342
+ const prices = (async () => {
62343
+ try {
62344
+ const res = await fetch(PENDLE_PT_PRICES_URL, {
62345
+ signal: AbortSignal.timeout(TIMEOUT_MS5)
62346
+ });
62347
+ if (!res.ok) throw new Error(`HTTP ${res.status}`);
62348
+ const data = await res.json();
62349
+ return data.prices ?? null;
62350
+ } catch (e) {
62351
+ console.warn(`[prices] pendle PT prices unavailable: ${String(e)}`);
62352
+ cached = { at: 0, prices: Promise.resolve(null) };
62353
+ return null;
62354
+ }
62355
+ })();
62356
+ cached = { at: now, prices };
62357
+ return prices;
62358
+ }
62359
+ function pendlePtEntries(chainId, tokenList, raw) {
62360
+ const out = [];
62361
+ for (const [address, entry] of Object.entries(tokenList)) {
62362
+ if (entry?.props?.pendle?.tokenType !== "PT") continue;
62363
+ const asset = address.toLowerCase();
62364
+ const usd = raw[`${chainId}-${asset}`];
62365
+ if (!(typeof usd === "number" && Number.isFinite(usd) && usd > 0)) continue;
62366
+ out.push({
62367
+ asset,
62368
+ price: usd,
62369
+ priceUSD: usd,
62370
+ marketUid: `${PENDLE_PRICE_KEY}:${chainId}:${asset}`,
62371
+ description: "Pendle PT market price (USD)",
62372
+ derivation: "direct"
62373
+ });
62374
+ }
62375
+ return out;
62376
+ }
62377
+
62294
62378
  // src/prices/oracle-prices/fetchers/mysticApiKey.ts
62295
62379
  var mysticApiKey;
62296
62380
  function setMysticApiKey(key4) {
@@ -63036,6 +63120,7 @@ async function fetchOraclePrices(chainIds, rpcOverrides, lists = {}, retries = 3
63036
63120
  ) : Promise.resolve(null);
63037
63121
  const siloV2GqlPromise = isActive("silov2") ? fetchSiloV2GraphQLPrices(chainId, basePrices, tokenList) : Promise.resolve(null);
63038
63122
  const siloV3GqlPromise = isActive("silov3") ? fetchSiloV3GraphQLPrices(chainId, basePrices, tokenList) : Promise.resolve(null);
63123
+ const pendlePtPromise = isActive("pendle") ? fetchPendlePtPricesRaw() : Promise.resolve(null);
63039
63124
  const feedTimestampsPromise = stalenessThresholdSeconds > 0 && probeFeedStaleness ? probeAaveFeedTimestamps(chainId, {
63040
63125
  rpcOverrides,
63041
63126
  batchSize: chainBatchSize,
@@ -63068,7 +63153,8 @@ async function fetchOraclePrices(chainIds, rpcOverrides, lists = {}, retries = 3
63068
63153
  termMaxData,
63069
63154
  morphoGqlEntries,
63070
63155
  siloV2GqlEntries,
63071
- siloV3GqlEntries
63156
+ siloV3GqlEntries,
63157
+ pendlePtRaw
63072
63158
  ] = await Promise.all([
63073
63159
  executeGroup(
63074
63160
  aaveGroup,
@@ -63264,7 +63350,8 @@ async function fetchOraclePrices(chainIds, rpcOverrides, lists = {}, retries = 3
63264
63350
  ),
63265
63351
  morphoGqlPromise,
63266
63352
  siloV2GqlPromise,
63267
- siloV3GqlPromise
63353
+ siloV3GqlPromise,
63354
+ pendlePtPromise
63268
63355
  ]);
63269
63356
  if (siloV2GqlEntries == null && siloV2Group.calls.length > 0 && // Chains the indexer does not cover return null on EVERY run; the
63270
63357
  // on-chain path is their normal source, not a degraded one.
@@ -63440,6 +63527,16 @@ async function fetchOraclePrices(chainIds, rpcOverrides, lists = {}, retries = 3
63440
63527
  } else {
63441
63528
  parseTrackers(siloV3Group, siloV3Data.results);
63442
63529
  }
63530
+ if (pendlePtRaw != null) {
63531
+ const entries = pendlePtEntries(chainId, tokenList, pendlePtRaw);
63532
+ if (entries.length) chainResult[PENDLE_PRICE_KEY] = entries;
63533
+ trackerDiags.push({
63534
+ lender: `${PENDLE_PRICE_KEY} (API)`,
63535
+ callCount: 0,
63536
+ failedCalls: 0,
63537
+ parsedEntries: entries.length
63538
+ });
63539
+ }
63443
63540
  if (useMorphoHybrid) {
63444
63541
  for (const entry of morphoGqlEntries) {
63445
63542
  if (!(entry.priceUSD > 0)) continue;
@@ -63835,7 +63932,15 @@ var DEFAULT_PRIORITY = {
63835
63932
  // Aave V4 has no enum member — every key is the runtime-synthesized
63836
63933
  // `AAVE_V4_<SPOKE_HEX>` — so it is matched by the literal prefix, the same
63837
63934
  // way `isAaveV4Type()` does.
63838
- lenderPriority: [Lender.AAVE_V3, AAVE_V4_PREFIX, "COMPOUND_V3"],
63935
+ // PENDLE first: it emits only PTs, and for a PT it is the MARKET price
63936
+ // where every lender oracle is a haircut collateral valuation
63937
+ // (`fetchers/pendle.ts`). Repeated at the head of every per-chain list.
63938
+ lenderPriority: [
63939
+ PENDLE_PRICE_KEY,
63940
+ Lender.AAVE_V3,
63941
+ AAVE_V4_PREFIX,
63942
+ "COMPOUND_V3"
63943
+ ],
63839
63944
  lowPriorityLenders: [Lender.ZEROLEND, Lender.AVALON, Lender.MORPHO_BLUE],
63840
63945
  excludedLenders: {
63841
63946
  // paused
@@ -63858,12 +63963,13 @@ var DEFAULT_PRIORITY = {
63858
63963
  // NOTE: a per-chain list REPLACES the global one, so it has to repeat
63859
63964
  // every prefix that should still rank on that chain.
63860
63965
  [Chain.BNB_SMART_CHAIN_MAINNET]: [
63966
+ PENDLE_PRICE_KEY,
63861
63967
  Lender.AAVE_V3,
63862
63968
  AAVE_V4_PREFIX,
63863
63969
  Lender.VENUS
63864
63970
  ],
63865
- [Chain.XDC_NETWORK]: [Lender.PRIME_FI, Lender.FATHOM],
63866
- [Chain.HYPEREVM]: [Lender.HYPERLEND, Lender.HYPURRFI]
63971
+ [Chain.XDC_NETWORK]: [PENDLE_PRICE_KEY, Lender.PRIME_FI, Lender.FATHOM],
63972
+ [Chain.HYPEREVM]: [PENDLE_PRICE_KEY, Lender.HYPERLEND, Lender.HYPURRFI]
63867
63973
  },
63868
63974
  lowPriorityLendersPerChain: {},
63869
63975
  excludedLendersPerChain: {},
@@ -77005,7 +77111,8 @@ var STABLECOIN_UNDERLYING_OVERRIDES = /* @__PURE__ */ new Set([
77005
77111
  // and the underlying of the vhU Liquidity Hub. Priced at $0.999 by Venus's
77006
77112
  // own ResilientOracle.
77007
77113
  "56-0xce24439f2d9c6a2289f741120fe202248b666666",
77008
- // Ripe Protocol GREEN — an overcollateralised USD stablecoin, the underlying
77114
+ // Ripe Protocol GREEN — a USD stablecoin (hybrid: CDP debt + PSM + protocol
77115
+ // pool mints, see risk-data ripe_risk.md), the underlying
77009
77116
  // of the sGREEN savings rows. `GREEN` is not an identity (unrelated tokens
77010
77117
  // carry the ticker, e.g. `Green::GREEN` on Ethereum). token-lists now carries
77011
77118
  // it as `Green USD Stablecoin::GREEN` with `props.stablecoin` (2026-10-14);
@@ -87061,6 +87168,10 @@ var LENDING = {
87061
87168
  var WSOL = "So11111111111111111111111111111111111111112";
87062
87169
  var USDC = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
87063
87170
  var SHARES = ["isShares"];
87171
+ function isSyntheticQuoteUnit(mint) {
87172
+ return !!mint && mint !== WSOL && /1{16,}/.test(mint);
87173
+ }
87174
+ var EXPONENT_MATURED_REASON = "This PT has matured \u2014 it is redeemed at par through the Exponent vault (merge / redeem), which is not built in this API yet";
87064
87175
  var SVM_EARN_VAULT_BUILDERS = {
87065
87176
  // jl tokens: a pay-asset conversion on deposit, none on withdraw; the
87066
87177
  // withdraw takes assets (or shares with isShares)
@@ -87076,6 +87187,35 @@ var SVM_EARN_VAULT_BUILDERS = {
87076
87187
  nativeDeposit: true,
87077
87188
  requires: { withdraw: SHARES }
87078
87189
  },
87190
+ // Loopscale's curated lending vaults: VENUE-BUILT (no conversion leg can be
87191
+ // spliced in), principal in — native SOL into a wSOL vault, the venue wraps
87192
+ // it — and an INSTANT withdraw out by principal, LP shares or all, capped by
87193
+ // the vault's idle balance; native SOL out proven on a wallet with no wSOL
87194
+ // account (2026-10-14). The queued exit has no API route.
87195
+ loopscale: {
87196
+ verbs: ["deposit", "withdraw"],
87197
+ nativeDeposit: true,
87198
+ nativeWithdraw: true
87199
+ },
87200
+ // Exponent PTs: TRADED on the vault's CLMM, both ways (calldata-sdk-sol
87201
+ // spot/exponentPt — `buy_pt` / `sell_pt`, quoted by simulation, ExactIn).
87202
+ // Deposit pays the row's quote asset (SOL for an LST PT, minted / swapped
87203
+ // into the SY's base first; a UNIT-quoted row's synthetic asset means the
87204
+ // base itself) or any `payAsset` with a direct Jupiter hop into the base;
87205
+ // withdraw sells PT into the SY's BASE — the yield token, not the quote —
87206
+ // so no receive conversion. `amount` is PT units BY DEFAULT (the position's
87207
+ // own token, as on EVM Pendle): no `isShares` needed (accepted as a no-op)
87208
+ exponent: {
87209
+ verbs: ["deposit", "withdraw"],
87210
+ via: "swap",
87211
+ payAsset: true,
87212
+ nativeDeposit: true,
87213
+ unitQuoteInput: true,
87214
+ requires: {
87215
+ deposit: ["slippage"],
87216
+ withdraw: ["slippage"]
87217
+ }
87218
+ },
87079
87219
  // queued exit: a request by shares, then a claim
87080
87220
  "savings:Solstice": {
87081
87221
  verbs: ["deposit", "request-withdraw", "claim"],
@@ -87142,6 +87282,13 @@ var SVM_EARN_VAULT_BUILDERS = {
87142
87282
  ],
87143
87283
  requires: { withdraw: SHARES }
87144
87284
  },
87285
+ // Upshift curator vaults (august_vault): the program's own deposit_checked /
87286
+ // redeem_checked, same transaction; the deposit mint in, SHARES out — paid
87287
+ // only out of the idle reserve, so an exit above it is refused at build
87288
+ "savings:Upshift": {
87289
+ verbs: ["deposit", "withdraw"],
87290
+ requires: { withdraw: SHARES }
87291
+ },
87145
87292
  // INF: Sanctum Infinity's own add / remove liquidity against wSOL; the
87146
87293
  // remove by SHARES
87147
87294
  "savings:Sanctum": {
@@ -87186,13 +87333,16 @@ var SVM_EARN_MINT_BUILDERS = {
87186
87333
  // Renzo ezSOL (Jito Restaking VRT)
87187
87334
  ezSoL6fY1PVdJcJsUpe5CM3xkfmy3zoVCABybm5WtiC: "lst:Renzo"
87188
87335
  };
87189
- var ROSTER_BRAND_BUILDERS = /* @__PURE__ */ new Set(["savings:Nest"]);
87336
+ var ROSTER_BRAND_BUILDERS = /* @__PURE__ */ new Set([
87337
+ "savings:Nest",
87338
+ // any share mint of the shared august_vault program: its mint authority is
87339
+ // the VaultState, so the route resolves the vault from the chain
87340
+ "savings:Upshift"
87341
+ ]);
87190
87342
  var UNBUILT_REASONS = {
87191
- exponent: "Exponent PTs are not tradable through this API yet",
87192
- lst: "Solana LST staking is not built in this API yet",
87193
- loopscale: "Loopscale vaults are not built in this API yet"
87343
+ lst: "Solana LST staking is not built in this API yet"
87194
87344
  };
87195
- var LOOPSCALE_LENDING_REASON = "Loopscale lends only inside loops \u2014 there is no plain deposit here";
87345
+ var LOOPSCALE_LENDING_REASON = "Loopscale lends through its curated vaults (the vault.loopscale rows), not a pool \u2014 there is no plain deposit of principal here";
87196
87346
  var MINT_KEY_CI = new Map(
87197
87347
  Object.entries(SVM_EARN_MINT_BUILDERS).map(([m, k]) => [m.toLowerCase(), k])
87198
87348
  );
@@ -87255,17 +87405,30 @@ function svmCapabilities(row) {
87255
87405
  return [];
87256
87406
  }
87257
87407
  const { builder } = b;
87408
+ const maturity = row.maturity?.maturity;
87409
+ if (builder.via === "swap" && maturity && maturity <= Date.now() / 1e3) {
87410
+ if (row.availability.canDeposit) {
87411
+ row.availability.canDeposit = false;
87412
+ row.availability.gating = "matured";
87413
+ }
87414
+ row.availability.reason ??= EXPONENT_MATURED_REASON;
87415
+ return [];
87416
+ }
87258
87417
  const wsol = row.asset?.address === WSOL2;
87259
87418
  const caps = [];
87260
87419
  for (const action of builder.verbs) {
87261
87420
  const open = action === "deposit" ? row.availability.canDeposit : row.availability.canWithdraw;
87262
87421
  if (!open) continue;
87263
87422
  const cap = { action };
87423
+ if (builder.via) cap.via = builder.via;
87264
87424
  if (action === "deposit") {
87265
87425
  cap.acceptsPayAsset = !!builder.payAsset;
87266
87426
  cap.acceptsNative = wsol && !!builder.nativeDeposit;
87267
87427
  if (builder.depositInputs?.length)
87268
87428
  cap.inputs = builder.depositInputs.map((i) => ({ ...i }));
87429
+ const yieldAsset = (row.providerMeta ?? {}).yieldAsset;
87430
+ if (builder.unitQuoteInput && isSyntheticQuoteUnit(row.asset?.address) && typeof yieldAsset === "string" && yieldAsset)
87431
+ cap.inputs = [{ asset: yieldAsset, mode: "direct" }];
87269
87432
  } else if (action === "withdraw") {
87270
87433
  cap.acceptsReceiveAsset = !!builder.receiveAsset;
87271
87434
  cap.acceptsNative = wsol && !!builder.nativeWithdraw;
@@ -87750,6 +87913,6 @@ function earnPositionTotals(items) {
87750
87913
  };
87751
87914
  }
87752
87915
 
87753
- export { ApiBookSource, DEFAULT_MIDNIGHT_API, DEFAULT_OUTLIER_GUARD, DEFAULT_PROFILE_ID, DEFAULT_STALE_REJECT_SECONDS, DEFAULT_TERMMAX_API, DEFAULT_TERM_ORDER_STORE, DOLOMITE_ISO_ID_PREFIX, EARN_DESCRIPTIONS, EARN_LABELS, EARN_RATE_SOURCE_BY_PROVIDER, EMPTY_BALANCE, EXACTLY_LENDER_KEY, FLYING_TULIP_LENDER_KEY, FRACTION_RATE_PROVIDERS, GMX_API_HOSTS, GMX_READ_CONTRACTS, GMX_SUPPORTED_CHAINS, HYPERCORE_VAULT_REGISTRY, IDLE_MARKET_ID, INTERFACE_IDS, LAGOON_API_URL, LAGOON_CHAIN_IDS, MORPHO_LENS, MULTICALL_FAILURE, MaxParamThresholds, NON_EVM_VAULT_PROVIDERS, PASSTHROUGH_RATE_EPSILON, PENDLE_ASSETS_URL, PENDLE_CHAIN_IDS, PENDLE_MARKETS_URL, PREFIX_LENDERS, RIPE_LENDER_KEY, SDK_FRACTION_RATE_PROVIDERS, SPECTRA_NETWORKS, SPECTRA_RATE_MAX_PERCENT, SPECTRA_RATE_MIN_PERCENT, STABLECOIN_SYMBOLS, STCELO_MANAGER_ADDRESS, SVM_EARN_MINT_BUILDERS, SVM_EARN_VAULT_BUILDERS, SVM_VAULT_PROVIDERS, 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, TermMaxApiSource, TermSubgraphSource, UPSHIFT_CHAIN_IDS, UPSHIFT_VAULTS_URL, VAULT_PROVIDERS, VAULT_PROVIDER_PROFILE, VAULT_PROVIDER_TRAITS, VAULT_SHARE_PRICE_PROBE, VAULT_VENUE_PREFIX, VOLATILE_VAULT_OVERRIDES, YEARN_CHAIN_IDS, YEARN_YDAEMON_BASE, __resetResupplyUserCaches, accountDepositListKey, accountWithdrawalListKey, appendSnapshot, applyEarnSanity, applyPositionDelta, attachImplications, attachPricesToFlashLiquidity, blockNumberFromTag, borrowDescription, borrowFindings, borrowHeadline, buildExposures2 as 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, computeBorrowDelta2 as computeBorrowDelta, computeCloseTradeDeltas, computeCollateralSwapDeltas, computeDebtSwapDeltas, computeDepositDelta2 as computeDepositDelta, computeEModeAnalysis, computeOpenTradeDeltas, computePostTradeMetrics, computeRepayDelta2 as computeRepayDelta, computeSumerBorrowDelta, computeSumerDepositDelta, computeSumerRepayDelta, computeSumerWaterfall, computeSumerWithdrawDelta, computeVaultApr, computeWithdrawDelta2 as computeWithdrawDelta, computeZapTradeDeltas, consensusReference, convertCoolerMarketsToResponse, convertDssMarketsToResponse, convertExactlyMarketsToResponse, convertFlyingTulipMarketsToResponse, convertFrankencoinMarketsToResponse, convertFraxlendPairsToResponse, convertInverseMarketsToResponse, convertLenderUserDataResult, convertLiquityMarketsToResponse, convertLlamaLendMarketsToResponse, convertResupplyMarketsToResponse, convertRipeMarketsToResponse, convertRiverMarketsToResponse, convertTellerMarketsToResponse, convertTermMarketsToResponse, convertTermMaxMarketsToResponse, convertUsddMarketsToResponse, createMarketUid, createMidnightBookSource, createMultiAccountTypeUserState, createMulticallRpcCall, createRawRpcCalls, createTermBookSource, createTermMaxDataSource, decodeListaMarkets, decodeMarkets, decodePackedListaUserDataset, decodePackedMorphoUserDataset, deriveBorrowTags, deriveSupplyTags, detectInterfaceKinds, dexResolverFor, disambiguateEarnNames, dolomiteVaultAddress, dssIlkBytes32, dssKeyParts, dssLenderKey, duration, earnDescription, earnLabel, earnMarketFromPool, earnMarketFromVault, earnMarketLabel, earnPositionFromLenderEntry, earnPositionFromVaultBalance, earnPositionTotals, earnRateAtMaturity, earnRowSubtitle, earnUidFromMarketUid, earnVaultTerms, earnVenueKind, emitterCoverage, encodeBalanceFetcherCalldata, enrichTermSheet, enrichmentIndexFromRows, enumerateEmitters, exactlyPairLtv, exactlyPenaltyRateToAprPercent, exactlyWadRateToPercent, feePhrase, feedKeyOf, feedStatKey, fetchCoolerMarkets, fetchDolomiteAccountNumbers, fetchDolomiteSubAccounts, fetchDssMarkets, fetchEulerEarnVaults, fetchEulerEarnVaultsFromSubgraph, fetchEulerSubAccountIndexes, fetchExactlyMarkets, fetchFlashLiquidityForChain, fetchFluidDexState, fetchFluidFTokens, fetchFlyingTulipMarkets, fetchFrankencoinMarkets, fetchFraxlendPairs, fetchGeneralYields, fetchGeneralYieldsByMarketUid, fetchGmxExecutionFees, fetchGmxTickerPrices, fetchGmxVaults, fetchHypercoreVaults, fetchInverseMarkets, fetchLagoonApiVaults, fetchLagoonVaults, fetchLiquityMarkets, fetchListaVaultsFromChain, fetchLlamaLendMarkets, fetchMorphoUserBalances, fetchMorphoUserPositionMarkets, fetchMorphoVaults, fetchMorphoVaultsFromApi, fetchMorphoVaultsFromChain, fetchOraclePrices, fetchPendleApiAssets, fetchPendleApiMarkets, fetchPendlePrices, fetchPendlePtMarkets, fetchResupplyMarkets, fetchRipeMarkets, fetchRiverMarkets, fetchSiloVaults, fetchSpectraApiMarkets, fetchSpectraPtMarkets, fetchTellerMarkets, fetchTermMarkets, fetchTermMaxMarkets, fetchTermStoreOrders, fetchTokenBalances, fetchTokenMetadata, fetchUpshiftApiVaults, fetchUpshiftVaults, fetchUsddMarkets, fetchUsualRewardsClaimData, fetchYearnApiVaults, fetchYearnVaults, fillableRemaining, filterActiveLenders, filterLenderMeta, filterLendersByProtocol, finalizeInfo, findingsFor, formatRaw, frankencoinKeyParts, frankencoinLenderKey, fraxlendAssetPerCollateral, fraxlendKeyParts, fraxlendLenderKey, fuseLenderData, generateLendingPools, getAavesForChain, getAssetConfig, getBalanceForMarketUid, getBorrowCapacity, getCachedFluidDexState, getCachedLiquityTroves, getCachedTellerBids, getCachedTermMaxDiscovery, getCachedTermMaxMarket, getCachedTermMaxMarkets, getCoreValidators, getFluidFTokensConverter, getGmxApiHost, getGmxReadContracts, getGmxUserPositions, getHealthFactor, getHypercoreUserPositions, getHypercoreVaultRegistry, getLenderAssets, getLenderPublicData, getLenderPublicDataAll, getLenderPublicDataViaApi, getLenderUserDataMulti, getLenderUserDataResult, getLendersForChain, getLstDelegation, getLstValidators, getLstWithdrawalRegistry, getLstWithdrawalRequests, getMaxAmountClose, getMaxAmountCollateralSwap, getMaxAmountDebtSwap, getMaxAmountOpen, getMergedUserData, getMorphoTypeMarketConverter, getReadFailurePolicy, getResolvedDolomiteAccountNumbers, getResolvedDolomiteSubAccounts, getStCeloValidatorGroups, getSubAccountAddress, getSubAccountIndex, getTermProfile, getVaultPublicDataAll, getVaultWithdrawalRequests, hasCritical, hasEulerEarnVaultSubgraph, hasLagoonVaults, hasMorphoPositionIndex, hasMorphoUserApi, hasMorphoUserSubgraph, hasPendleMarkets, hasSpectraMarkets, hasUpshiftVaults, hasYearnVaults, ilkToKeySegment, implausibleRatePercent, injectLenderInfoIntoEntries, inverseKeyParts, inverseLenderKey, isBoundNeed, isFailedCall, isIlliquid, isLenderVenueKey, isLendingPosition, isLiveMarket as isLivePendleMarket, isLiveSpectraMarket, isMaturedTerm, isSecondaryMarketOnly, isStablecoinSymbol, isUnearnableEarnRate, isUnrealizableEarnRate, isVaultPosition, isVaultVenue, isYearnV3, keySegmentToIlk, keysFromMaps, lenderApiOnly, lenderFamily, liquityCandidateTroveIds, liquityKeyParts, liquityLenderKey, llamaLendKeyParts, llamaLendLenderKey, marketKeysOf, meetsLiquidityFloor, mergeDeep, multicall3Abi2 as 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, positivePart2 as positivePart, predictInverseEscrow, prepareLenderUserDataRpcCalls, prepareMergedMulticallParams, prepareMergedRpcCalls, prepareMulticallInputs, prepareTokenBalanceRpcCalls, priceGlvVaults, priceGmMarkets, probeAaveFeedTimestamps, pruneFeedStats, rankFindings, ratePercent, readUserPositions, readVaultSharePrices, rejectOutliers as rejectPriceOutliers, repairImpossibleTvl, resolveAdapter, resolveDerivation, resolveDolomiteRowIdentity, resolveEarnIdentity, resolveModeConfig, resolveStCeloDepositGroup, resolveVaultProfileId, resupplyKeyParts, resupplyLenderKey, resupplyMarketLabel, riverKeyParts, riverLenderKey, sanePercent as saneSpectraPercent, savingsAddresses, savingsBalanceKind, secondaryMarketVault, selectAssetGroupPrices, selectUsualRewardEntry, setMysticApiKey, shortDate, spectraAddress, spectraNetwork, spectraPoolsUrl, splitChainScopedAddress as splitPendleChainScopedAddress, stampCapabilities, stampEarnSubtitles, stampVaultClassification, stampVaultTermSheets, stripLeadingBrand, subAccountsOf, supplyDescription, supplyFindings, supplyHeadline, svmEarnBuildability, svmEarnBuilderKey, swapRoutedProvidersArePriceConsistent, tellerBpsToPercent, tellerImpliedLtv, tellerLenderKey, tellerPoolFromLenderKey, termApiBaseUrl, termLenderKey, termMaxApiBase, borrowNif as termMaxBorrowNif, curveApr as termMaxCurveApr, curveAprNumber as termMaxCurveAprNumber, daysToMaturity as termMaxDaysToMaturity, lendNif as termMaxLendNif, mintGtFeeRatio as termMaxMintGtFeeRatio, ratioToNumber as termMaxRatioToNumber, ratioToPercent as termMaxRatioToPercent, termOfferRateToAprPct, termOrderStoreBaseUrl, tickToAprNumber, tickToPrice, toDigest, toDolomiteSubAccountId, toTermFillNow, toTermSheetInput, toVaultTermInput, trancheFromCounterparty, tryParseEarnUid, unflattenLenderData, updateFeedStats, usdValue, usddIlkBytes32, usddKeyParts, usddLenderKey, validateTermSheet, validateTermSheets, validateUserData, vaultSharesToAssets, vaultTermInputFromEarnMarket, vaultTermInputFromSourceRow, vaultTraits, vaultVenue, venueBrand, venueBrandKey, withMaturityLabel, withTrancheLabel };
87916
+ export { ApiBookSource, DEFAULT_MIDNIGHT_API, DEFAULT_OUTLIER_GUARD, DEFAULT_PROFILE_ID, DEFAULT_STALE_REJECT_SECONDS, DEFAULT_TERMMAX_API, DEFAULT_TERM_ORDER_STORE, DOLOMITE_ISO_ID_PREFIX, EARN_DESCRIPTIONS, EARN_LABELS, EARN_RATE_SOURCE_BY_PROVIDER, EMPTY_BALANCE, EXACTLY_LENDER_KEY, EXPONENT_MATURED_REASON, FLYING_TULIP_LENDER_KEY, FRACTION_RATE_PROVIDERS, GMX_API_HOSTS, GMX_READ_CONTRACTS, GMX_SUPPORTED_CHAINS, HYPERCORE_VAULT_REGISTRY, IDLE_MARKET_ID, INTERFACE_IDS, LAGOON_API_URL, LAGOON_CHAIN_IDS, MORPHO_LENS, MULTICALL_FAILURE, MaxParamThresholds, NON_EVM_VAULT_PROVIDERS, PASSTHROUGH_RATE_EPSILON, PENDLE_ASSETS_URL, PENDLE_CHAIN_IDS, PENDLE_MARKETS_URL, PREFIX_LENDERS, RIPE_LENDER_KEY, SDK_FRACTION_RATE_PROVIDERS, SPECTRA_NETWORKS, SPECTRA_RATE_MAX_PERCENT, SPECTRA_RATE_MIN_PERCENT, STABLECOIN_SYMBOLS, STCELO_MANAGER_ADDRESS, SVM_EARN_MINT_BUILDERS, SVM_EARN_VAULT_BUILDERS, SVM_VAULT_PROVIDERS, 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, TermMaxApiSource, TermSubgraphSource, UPSHIFT_CHAIN_IDS, UPSHIFT_VAULTS_URL, VAULT_PROVIDERS, VAULT_PROVIDER_PROFILE, VAULT_PROVIDER_TRAITS, VAULT_SHARE_PRICE_PROBE, VAULT_VENUE_PREFIX, VOLATILE_VAULT_OVERRIDES, YEARN_CHAIN_IDS, YEARN_YDAEMON_BASE, __resetResupplyUserCaches, accountDepositListKey, accountWithdrawalListKey, appendSnapshot, applyEarnSanity, applyPositionDelta, attachImplications, attachPricesToFlashLiquidity, blockNumberFromTag, borrowDescription, borrowFindings, borrowHeadline, buildExposures2 as 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, computeBorrowDelta2 as computeBorrowDelta, computeCloseTradeDeltas, computeCollateralSwapDeltas, computeDebtSwapDeltas, computeDepositDelta2 as computeDepositDelta, computeEModeAnalysis, computeOpenTradeDeltas, computePostTradeMetrics, computeRepayDelta2 as computeRepayDelta, computeSumerBorrowDelta, computeSumerDepositDelta, computeSumerRepayDelta, computeSumerWaterfall, computeSumerWithdrawDelta, computeVaultApr, computeWithdrawDelta2 as computeWithdrawDelta, computeZapTradeDeltas, consensusReference, convertCoolerMarketsToResponse, convertDssMarketsToResponse, convertExactlyMarketsToResponse, convertFlyingTulipMarketsToResponse, convertFrankencoinMarketsToResponse, convertFraxlendPairsToResponse, convertInverseMarketsToResponse, convertLenderUserDataResult, convertLiquityMarketsToResponse, convertLlamaLendMarketsToResponse, convertResupplyMarketsToResponse, convertRipeMarketsToResponse, convertRiverMarketsToResponse, convertTellerMarketsToResponse, convertTermMarketsToResponse, convertTermMaxMarketsToResponse, convertUsddMarketsToResponse, createMarketUid, createMidnightBookSource, createMultiAccountTypeUserState, createMulticallRpcCall, createRawRpcCalls, createTermBookSource, createTermMaxDataSource, decodeListaMarkets, decodeMarkets, decodePackedListaUserDataset, decodePackedMorphoUserDataset, deriveBorrowTags, deriveSupplyTags, detectInterfaceKinds, dexResolverFor, disambiguateEarnNames, dolomiteVaultAddress, dssIlkBytes32, dssKeyParts, dssLenderKey, duration, earnDescription, earnLabel, earnMarketFromPool, earnMarketFromVault, earnMarketLabel, earnPositionFromLenderEntry, earnPositionFromVaultBalance, earnPositionTotals, earnRateAtMaturity, earnRowSubtitle, earnUidFromMarketUid, earnVaultTerms, earnVenueKind, emitterCoverage, encodeBalanceFetcherCalldata, enrichTermSheet, enrichmentIndexFromRows, enumerateEmitters, exactlyPairLtv, exactlyPenaltyRateToAprPercent, exactlyWadRateToPercent, feePhrase, feedKeyOf, feedStatKey, fetchCoolerMarkets, fetchDolomiteAccountNumbers, fetchDolomiteSubAccounts, fetchDssMarkets, fetchEulerEarnVaults, fetchEulerEarnVaultsFromSubgraph, fetchEulerSubAccountIndexes, fetchExactlyMarkets, fetchFlashLiquidityForChain, fetchFluidDexState, fetchFluidFTokens, fetchFlyingTulipMarkets, fetchFrankencoinMarkets, fetchFraxlendPairs, fetchGeneralYields, fetchGeneralYieldsByMarketUid, fetchGmxExecutionFees, fetchGmxTickerPrices, fetchGmxVaults, fetchHypercoreVaults, fetchInverseMarkets, fetchLagoonApiVaults, fetchLagoonVaults, fetchLiquityMarkets, fetchListaVaultsFromChain, fetchLlamaLendMarkets, fetchMorphoUserBalances, fetchMorphoUserPositionMarkets, fetchMorphoVaults, fetchMorphoVaultsFromApi, fetchMorphoVaultsFromChain, fetchOraclePrices, fetchPendleApiAssets, fetchPendleApiMarkets, fetchPendlePrices, fetchPendlePtMarkets, fetchResupplyMarkets, fetchRipeMarkets, fetchRiverMarkets, fetchSiloVaults, fetchSpectraApiMarkets, fetchSpectraPtMarkets, fetchTellerMarkets, fetchTermMarkets, fetchTermMaxMarkets, fetchTermStoreOrders, fetchTokenBalances, fetchTokenMetadata, fetchUpshiftApiVaults, fetchUpshiftVaults, fetchUsddMarkets, fetchUsualRewardsClaimData, fetchYearnApiVaults, fetchYearnVaults, fillableRemaining, filterActiveLenders, filterLenderMeta, filterLendersByProtocol, finalizeInfo, findingsFor, formatRaw, frankencoinKeyParts, frankencoinLenderKey, fraxlendAssetPerCollateral, fraxlendKeyParts, fraxlendLenderKey, fuseLenderData, generateLendingPools, getAavesForChain, getAssetConfig, getBalanceForMarketUid, getBorrowCapacity, getCachedFluidDexState, getCachedLiquityTroves, getCachedTellerBids, getCachedTermMaxDiscovery, getCachedTermMaxMarket, getCachedTermMaxMarkets, getCoreValidators, getFluidFTokensConverter, getGmxApiHost, getGmxReadContracts, getGmxUserPositions, getHealthFactor, getHypercoreUserPositions, getHypercoreVaultRegistry, getLenderAssets, getLenderPublicData, getLenderPublicDataAll, getLenderPublicDataViaApi, getLenderUserDataMulti, getLenderUserDataResult, getLendersForChain, getLstDelegation, getLstValidators, getLstWithdrawalRegistry, getLstWithdrawalRequests, getMaxAmountClose, getMaxAmountCollateralSwap, getMaxAmountDebtSwap, getMaxAmountOpen, getMergedUserData, getMorphoTypeMarketConverter, getReadFailurePolicy, getResolvedDolomiteAccountNumbers, getResolvedDolomiteSubAccounts, getStCeloValidatorGroups, getSubAccountAddress, getSubAccountIndex, getTermProfile, getVaultPublicDataAll, getVaultWithdrawalRequests, hasCritical, hasEulerEarnVaultSubgraph, hasLagoonVaults, hasMorphoPositionIndex, hasMorphoUserApi, hasMorphoUserSubgraph, hasPendleMarkets, hasSpectraMarkets, hasUpshiftVaults, hasYearnVaults, ilkToKeySegment, implausibleRatePercent, injectLenderInfoIntoEntries, inverseKeyParts, inverseLenderKey, isBoundNeed, isFailedCall, isIlliquid, isLenderVenueKey, isLendingPosition, isLiveMarket as isLivePendleMarket, isLiveSpectraMarket, isMaturedTerm, isSecondaryMarketOnly, isStablecoinSymbol, isSyntheticQuoteUnit, isUnearnableEarnRate, isUnrealizableEarnRate, isVaultPosition, isVaultVenue, isYearnV3, keySegmentToIlk, keysFromMaps, lenderApiOnly, lenderFamily, liquityCandidateTroveIds, liquityKeyParts, liquityLenderKey, llamaLendKeyParts, llamaLendLenderKey, marketKeysOf, meetsLiquidityFloor, mergeDeep, multicall3Abi2 as 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, positivePart2 as positivePart, predictInverseEscrow, prepareLenderUserDataRpcCalls, prepareMergedMulticallParams, prepareMergedRpcCalls, prepareMulticallInputs, prepareTokenBalanceRpcCalls, priceGlvVaults, priceGmMarkets, probeAaveFeedTimestamps, pruneFeedStats, rankFindings, ratePercent, readUserPositions, readVaultSharePrices, rejectOutliers as rejectPriceOutliers, repairImpossibleTvl, resolveAdapter, resolveDerivation, resolveDolomiteRowIdentity, resolveEarnIdentity, resolveModeConfig, resolveStCeloDepositGroup, resolveVaultProfileId, resupplyKeyParts, resupplyLenderKey, resupplyMarketLabel, riverKeyParts, riverLenderKey, sanePercent as saneSpectraPercent, savingsAddresses, savingsBalanceKind, secondaryMarketVault, selectAssetGroupPrices, selectUsualRewardEntry, setMysticApiKey, shortDate, spectraAddress, spectraNetwork, spectraPoolsUrl, splitChainScopedAddress as splitPendleChainScopedAddress, stampCapabilities, stampEarnSubtitles, stampVaultClassification, stampVaultTermSheets, stripLeadingBrand, subAccountsOf, supplyDescription, supplyFindings, supplyHeadline, svmEarnBuildability, svmEarnBuilderKey, swapRoutedProvidersArePriceConsistent, tellerBpsToPercent, tellerImpliedLtv, tellerLenderKey, tellerPoolFromLenderKey, termApiBaseUrl, termLenderKey, termMaxApiBase, borrowNif as termMaxBorrowNif, curveApr as termMaxCurveApr, curveAprNumber as termMaxCurveAprNumber, daysToMaturity as termMaxDaysToMaturity, lendNif as termMaxLendNif, mintGtFeeRatio as termMaxMintGtFeeRatio, ratioToNumber as termMaxRatioToNumber, ratioToPercent as termMaxRatioToPercent, termOfferRateToAprPct, termOrderStoreBaseUrl, tickToAprNumber, tickToPrice, toDigest, toDolomiteSubAccountId, toTermFillNow, toTermSheetInput, toVaultTermInput, trancheFromCounterparty, tryParseEarnUid, unflattenLenderData, updateFeedStats, usdValue, usddIlkBytes32, usddKeyParts, usddLenderKey, validateTermSheet, validateTermSheets, validateUserData, vaultSharesToAssets, vaultTermInputFromEarnMarket, vaultTermInputFromSourceRow, vaultTraits, vaultVenue, venueBrand, venueBrandKey, withMaturityLabel, withTrancheLabel };
87754
87917
  //# sourceMappingURL=index.js.map
87755
87918
  //# sourceMappingURL=index.js.map