@1delta/margin-fetcher 5.0.142 → 5.0.143

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
@@ -3,7 +3,7 @@ import './chunk-BYTNVMX7.js';
3
3
  import './chunk-PR4QN5HX.js';
4
4
  import { Lender, isExactly, isMidnight, isTerm, isTermMax, isTeller, isListaDao, isLiquityFamily, isRiver, isInverse, isCooler, isDssType, isCompoundV3Type, isFluid, isGearboxV3, isLlamaLend, isFrankencoin, isResupply, isCurvance, isFlyingTulip, isRipe, isAlchemix, isFlex, isTwyne, isFraxlend, isAaveV4Type, isKamino, isJupiterLend, isSave, isLoopscale, isProject0, isZodial, isDefituna, isJupiterOfferbook, LIQUITY_FAMILY_LENDERS, isAaveType, isCompoundV3, isCompoundV2Type, isMultiMarket, isSiloV2Type, isSiloV3Type, isDolomite, isMorphoType, isUsdd, isSky, hasCrossMarginRisk, isEulerType, isInit, isVenusType, normalizeLenderKey, isSumerType, AAVE_V3_LENDERS, AAVE_V2_LENDERS, isMorphoBlue, kaminoMarketFromKey, jupiterLendVaultFromKey, saveMarketFromKey, loopscaleMarketFromKey, project0GroupFromKey, zodialGroupFromKey, defiTunaPoolFromKey, jupiterOfferbookMarketFromKey, isAaveV2Type, isAaveV32Type, isAaveV3Type, isYLDR, isLista, hasSubAccounts, isTectonicType, isKineticType, isBenqiType } from '@1delta/lender-registry';
5
5
  export { hasCrossMarginRisk, isAaveType, isAaveV2Type, isAaveV32Type, isAaveV3Type, isCompoundV3, isCompoundV3Type, isInit, isMorphoType, isMultiMarket, isYLDR } from '@1delta/lender-registry';
6
- import { fetchTokenLists, fetchTokenList, aavePools, compoundV3Pools, initConfig, morphoPools, compoundV2Pools, eulerVaults, siloMarkets, siloV2LenderKey, siloMarketsV3, siloV3LenderKey, aaveV4Spokes, aaveV4SpokeLenderKey, fluidResolvers, gearboxResolvers, dolomiteConfigs, midnightConfig, termConfig, termMarketsByChain, exactlyConfig, flyingTulipLendersByChain, liquityLendersByChain, riverLendersByChain, inverseLendersByChain, coolerLendersByChain, ripeLendersByChain, alchemixLendersByChain, flexLendersByChain, llamaLendLendersByChain, usddLendersByChain, skyLendersByChain, frankencoinLendersByChain, resupplyLendersByChain, curvanceLendersByChain, fraxlendLendersByChain, twyneLendersByChain, tellerConfigByChain, tellerPoolsByChain, termMaxConfigByChain, aaveReserves, compoundV3Reserves, dolomiteIsolationMarket, morphoTypeMarkets, resolveTermApiBase, flyingTulipConfigFor, flyingTulipAssetsFor, liquityConfigFor, liquityBranchesByChain, riverConfigFor, riverChainData, termMaxApiBaseUrl, termMaxLenderKey, inverseConfigFor, inverseChainData, coolerConfigFor, llamaLendConfigFor, llamaLendChainData, llamaLendApiBaseUrl, resupplyConfigFor, fraxlendConfigFor, alchemixMarketsFor, alchemixMarketKey, flexMarketsFor, flexMarketKey, dssConfigFor, dssChainData, dssDebtToken, dssDebtJoin, frankencoinConfigFor, frankencoinChainData, aaveTokens, compoundV3BaseData, compoundV2TokenArray, morphoTypeVaults, eulerConfigs, fluidVaultEntries, gearboxMarketConfigurators, dolomiteIsolation, liquityMarkets, riverMarkets, tellerConfig, tellerPools, termMarkets, termMaxConfig, midnightMarkets, midnightCollateralRef, llamaLendMarkets, fraxlendPairsFor, inverseMarkets, curvanceConfig, frankencoinMarkets, ripeConfigFor, twyneMarkets, twyneConfigFor, exactlyMarkets, aaveOracles, resolveMidnightApiBase, RIPE_HQ_IDS, llamaLendMarketByVault, getSiloV2MarketEntry, getSiloV3MarketEntry, dolomiteEmode, curvanceConfigFor, isMidnightCollateralVault, listaCollateralProvider, gearboxMarketCompressor, gearboxV3LenderKey, midnightMarketsByChain, twyneChainData, parseAaveV4SpokeLenderKey, gearboxAccountCompressor, compoundV2Tokens, exactlyMarketsByChain, aaveOraclesConfig, compoundV2Oracles, compoundV2OraclesConfig, compoundV3OraclesData, compoundV2Reserves, aaveV4Oracles, morphoTypeOracles } from '@1delta/data-sdk';
6
+ import { fetchTokenLists, fetchTokenList, aavePools, compoundV3Pools, initConfig, morphoPools, compoundV2Pools, eulerVaults, siloMarkets, siloV2LenderKey, siloMarketsV3, siloV3LenderKey, aaveV4Spokes, aaveV4SpokeLenderKey, fluidResolvers, gearboxResolvers, dolomiteConfigs, midnightConfig, termConfig, termMarketsByChain, exactlyConfig, flyingTulipLendersByChain, liquityLendersByChain, riverLendersByChain, inverseLendersByChain, coolerLendersByChain, ripeLendersByChain, alchemixLendersByChain, flexLendersByChain, llamaLendLendersByChain, usddLendersByChain, skyLendersByChain, frankencoinLendersByChain, resupplyLendersByChain, curvanceLendersByChain, fraxlendLendersByChain, twyneLendersByChain, tellerConfigByChain, tellerPoolsByChain, termMaxConfigByChain, aaveReserves, compoundV3Reserves, dolomiteIsolationMarket, morphoTypeMarkets, resolveTermApiBase, flyingTulipConfigFor, flyingTulipAssetsFor, liquityConfigFor, liquityBranchesByChain, riverConfigFor, riverChainData, termMaxApiBaseUrl, termMaxLenderKey, inverseConfigFor, inverseChainData, coolerConfigFor, llamaLendConfigFor, llamaLendChainData, llamaLendApiBaseUrl, resupplyConfigFor, fraxlendConfigFor, alchemixMarketsFor, alchemixMarketKey, flexMarketsFor, flexMarketKey, dssConfigFor, dssChainData, dssDebtToken, dssDebtJoin, frankencoinConfigFor, frankencoinChainData, aaveTokens, compoundV3BaseData, compoundV2TokenArray, morphoTypeVaults, eulerConfigs, fluidVaultEntries, gearboxMarketConfigurators, dolomiteIsolation, liquityMarkets, riverMarkets, tellerConfig, tellerPools, termMarkets, termMaxConfig, midnightMarkets, midnightCollateralRef, llamaLendMarkets, fraxlendPairsFor, inverseMarkets, curvanceConfig, frankencoinMarkets, ripeConfigFor, twyneMarkets, twyneConfigFor, exactlyMarkets, aaveOracles, resolveMidnightApiBase, RIPE_HQ_IDS, llamaLendMarketByVault, getSiloV2MarketEntry, getSiloV3MarketEntry, dolomiteEmode, curvanceConfigFor, isMidnightCollateralVault, listaCollateralProvider, gearboxMarketCompressor, gearboxV3LenderKey, midnightMarketsByChain, twyneChainData, parseAaveV4SpokeLenderKey, gearboxAccountCompressor, compoundV2Tokens, exactlyMarketsByChain, aaveOraclesConfig, compoundV2Oracles, compoundV2OraclesConfig, compoundV3OraclesData, compoundV2Reserves, aaveV4Oracles, morphoTypeOracles, fluidVaults } from '@1delta/data-sdk';
7
7
  import lodash from 'lodash';
8
8
  import { Chain, isEvmChainId, isRetiredChain, isSvmChainId } from '@1delta/chain-registry';
9
9
  import { multicallRetryUniversal, getEvmClient, getEvmClientWithCustomRpcsUniversal, LIST_OVERRIDES, getEvmChain, createMulticallRetryUniversal, getEvmClientUniversal } from '@1delta/providers';
@@ -20876,16 +20876,30 @@ var getSiloV3ReservesDataConverter = (lender, chainId, prices, additionalYields,
20876
20876
  SILO_V3_CALLS_PER_PAIR
20877
20877
  ];
20878
20878
  };
20879
- var { chunk: chunk4 } = lodash;
20879
+ var fluidVaultAddresses = (chainId) => Object.keys(fluidVaults()?.[chainId] ?? {});
20880
+ var buildFluidVaultCalls = (chainId) => {
20881
+ const resolvers = fluidResolvers()?.[chainId];
20882
+ if (!resolvers) return [];
20883
+ const vaults = fluidVaultAddresses(chainId);
20884
+ if (vaults.length === 0)
20885
+ return [
20886
+ {
20887
+ address: resolvers.vaultResolver,
20888
+ name: "getVaultsEntireData",
20889
+ params: []
20890
+ }
20891
+ ];
20892
+ return vaults.map((vault) => ({
20893
+ address: resolvers.vaultResolver,
20894
+ name: "getVaultEntireData",
20895
+ params: [vault]
20896
+ }));
20897
+ };
20880
20898
  var buildFluidCall = (chainId, _lender) => {
20881
20899
  const resolvers = fluidResolvers()?.[chainId];
20882
20900
  if (!resolvers) return [];
20883
20901
  return [
20884
- {
20885
- address: resolvers.vaultResolver,
20886
- name: "getVaultsEntireData",
20887
- params: []
20888
- },
20902
+ ...buildFluidVaultCalls(chainId),
20889
20903
  {
20890
20904
  address: resolvers.liquidityResolver,
20891
20905
  name: "getAllOverallTokensData",
@@ -20893,6 +20907,17 @@ var buildFluidCall = (chainId, _lender) => {
20893
20907
  }
20894
20908
  ];
20895
20909
  };
20910
+ var fluidCallCount = (chainId) => buildFluidCall(chainId).length;
20911
+ var isVaultStruct = (v) => !!v && typeof v === "object" && !Array.isArray(v);
20912
+ var collectFluidVaults = (vaultResults) => {
20913
+ if (vaultResults.length === 1 && Array.isArray(vaultResults[0]))
20914
+ return vaultResults[0];
20915
+ return vaultResults.filter(isVaultStruct);
20916
+ };
20917
+ var assembleFluidResults = (data) => {
20918
+ if (data.length === 0) return [[], void 0];
20919
+ return [collectFluidVaults(data.slice(0, -1)), data[data.length - 1]];
20920
+ };
20896
20921
 
20897
20922
  // src/lending/public-data/fluid/apiData.ts
20898
20923
  var FLUID_API_BASE = "https://api.fluid.instadapp.io/v2";
@@ -21094,11 +21119,12 @@ var parseOverallTokensData = (overallTokensData) => {
21094
21119
  return out;
21095
21120
  };
21096
21121
  var getFluidPublicDataConverter = (_lender, chainId, prices, additionalYields, tokenList = {}) => {
21097
- const expectedNumberOfCalls = 2;
21122
+ const expectedNumberOfCalls = fluidCallCount(chainId);
21098
21123
  return [
21099
21124
  (data) => {
21100
- if (data.length !== expectedNumberOfCalls) return void 0;
21101
- const [vaultEntireData, overallTokensData] = data;
21125
+ if (expectedNumberOfCalls === 0 || data.length !== expectedNumberOfCalls)
21126
+ return void 0;
21127
+ const [vaultEntireData, overallTokensData] = assembleFluidResults(data);
21102
21128
  const liquidityByToken = parseOverallTokensData(overallTokensData);
21103
21129
  const dexState = getCachedFluidDexState(chainId);
21104
21130
  const apiData = getCachedFluidApiData(chainId);
@@ -22355,7 +22381,12 @@ var getLenderPublicData = async (chainId, lenders, prices, additionalYields, mul
22355
22381
  if (fluidLender !== void 0) {
22356
22382
  try {
22357
22383
  const start = sliceStart[fluidLender] ?? 0;
22358
- const vaults = rawResults?.[start];
22384
+ const [vaults] = assembleFluidResults(
22385
+ (rawResults ?? []).slice(
22386
+ start,
22387
+ start + (sliceBuilt[fluidLender] ?? 0)
22388
+ )
22389
+ );
22359
22390
  const referenced = /* @__PURE__ */ new Set();
22360
22391
  for (const v of vaults ?? []) {
22361
22392
  if (!v?.isSmartCol && !v?.isSmartDebt) continue;
@@ -27250,13 +27281,13 @@ async function fetchResupplyMarkets(lender, chainId, multicallRetry = multicallR
27250
27281
  const from = i * STATE_READS;
27251
27282
  const to = Math.min(i + PAIRS_PER_BATCH, identities.length) * STATE_READS;
27252
27283
  try {
27253
- const chunk7 = await multicallRetry({
27284
+ const chunk6 = await multicallRetry({
27254
27285
  chain: chainId,
27255
27286
  calls: calls.slice(from, to),
27256
27287
  abi: abis.slice(from, to),
27257
27288
  allowFailure: true
27258
27289
  });
27259
- results.push(...chunk7);
27290
+ results.push(...chunk6);
27260
27291
  } catch {
27261
27292
  results.push(...new Array(to - from).fill("0x"));
27262
27293
  }
@@ -27674,13 +27705,13 @@ async function fetchViaMulticall(lender, chainId, config, multicallRetry) {
27674
27705
  const from = i * FALLBACK_TOKEN_READS;
27675
27706
  const to = Math.min(i + TOKENS_PER_BATCH, pairs.length) * FALLBACK_TOKEN_READS;
27676
27707
  try {
27677
- const chunk7 = await multicallRetry({
27708
+ const chunk6 = await multicallRetry({
27678
27709
  chain: chainId,
27679
27710
  calls: calls.slice(from, to),
27680
27711
  abi: abis.slice(from, to),
27681
27712
  allowFailure: true
27682
27713
  });
27683
- results.push(...chunk7);
27714
+ results.push(...chunk6);
27684
27715
  } catch {
27685
27716
  results.push(...new Array(to - from).fill("0x"));
27686
27717
  }
@@ -35493,14 +35524,16 @@ var ALCHEMIX_CALLS_PER_POSITION = 3;
35493
35524
  var CACHE_TTL_MS4 = 5 * 6e4;
35494
35525
  var MAX_POSITIONS_PER_MARKET = 200;
35495
35526
  var discoveryCache3 = /* @__PURE__ */ new Map();
35496
- var cacheKey3 = (chainId, account, block = "head") => `${chainId}:${account.toLowerCase()}:${block}`;
35497
- var getCachedAlchemixPositions = (chainId, account, opts) => {
35498
- const hit = discoveryCache3.get(cacheKey3(chainId, account, blockKey(opts)));
35527
+ var cacheKey3 = (chainId, account, block = "head", lender = "ALCHEMIX") => `${chainId}:${account.toLowerCase()}:${block}:${lender.toUpperCase()}`;
35528
+ var getCachedAlchemixPositions = (chainId, account, opts, lender = "ALCHEMIX") => {
35529
+ const hit = discoveryCache3.get(
35530
+ cacheKey3(chainId, account, blockKey(opts), lender)
35531
+ );
35499
35532
  if (!hit || Date.now() - hit.at > CACHE_TTL_MS4) return void 0;
35500
35533
  return hit;
35501
35534
  };
35502
- var setCachedAlchemixPositions = (chainId, account, positions, opts) => {
35503
- discoveryCache3.set(cacheKey3(chainId, account, blockKey(opts)), {
35535
+ var setCachedAlchemixPositions = (chainId, account, positions, opts, lender = "ALCHEMIX") => {
35536
+ discoveryCache3.set(cacheKey3(chainId, account, blockKey(opts), lender), {
35504
35537
  positions,
35505
35538
  at: Date.now()
35506
35539
  });
@@ -35527,7 +35560,7 @@ var buildAlchemixUserCall = async (chainId, lender, account, opts) => {
35527
35560
  (m) => m.alchemist.replace(/^0x/i, "").toUpperCase() === suffix
35528
35561
  ) : all;
35529
35562
  if (markets.length === 0) return [];
35530
- const remember = (positions2) => setCachedAlchemixPositions(chainId, account, positions2, opts);
35563
+ const remember = (positions2) => setCachedAlchemixPositions(chainId, account, positions2, opts, lender);
35531
35564
  let balances;
35532
35565
  try {
35533
35566
  balances = await discoveryMulticall(
@@ -40187,8 +40220,8 @@ var big16 = (v) => {
40187
40220
  return void 0;
40188
40221
  };
40189
40222
  var at = (res, idx) => Array.isArray(res) ? res[idx] : res?.[idx];
40190
- var getAlchemixUserDataConverter = (_lender, chainId, account, meta, opts) => {
40191
- const discovery = getCachedAlchemixPositions(chainId, account, opts);
40223
+ var getAlchemixUserDataConverter = (lender, chainId, account, meta, opts) => {
40224
+ const discovery = getCachedAlchemixPositions(chainId, account, opts, lender);
40192
40225
  const kept = discovery?.positions ?? [];
40193
40226
  const expected = kept.length * ALCHEMIX_CALLS_PER_POSITION;
40194
40227
  return [
@@ -41846,12 +41879,12 @@ var getTermMaxUserDataConverter = (_lender, chainId, account, meta) => {
41846
41879
  if (!data || data.length < expected) return void 0;
41847
41880
  const positions = [];
41848
41881
  for (let i = 0; i < expected; i++) {
41849
- const chunk7 = data[i];
41882
+ const chunk6 = data[i];
41850
41883
  const size = Math.min(
41851
41884
  TERMMAX_MARKETS_PER_CALL,
41852
41885
  markets.length - i * TERMMAX_MARKETS_PER_CALL
41853
41886
  );
41854
- if (Array.isArray(chunk7)) positions.push(...chunk7);
41887
+ if (Array.isArray(chunk6)) positions.push(...chunk6);
41855
41888
  else positions.push(...new Array(Math.max(size, 0)).fill(void 0));
41856
41889
  }
41857
41890
  if (positions.length === 0) return void 0;
@@ -50693,6 +50726,12 @@ var LST_REGISTRY = {
50693
50726
  mintContract: "0xf951e335afb289353dc249e82926178eac7ded78",
50694
50727
  mintInputAsset: "native",
50695
50728
  withdrawalMode: "queued",
50729
+ // `nodeOperatorRewardPercentage()` + `swellTreasuryRewardPercentage()`
50730
+ // = 5e16 + 5e16 (1e18 = 100 %) of rewards, minted in `reprice`. No
50731
+ // deposit fee; swEXIT charges none but pays min(rate at request, rate
50732
+ // at processing). Read 2026-10-28.
50733
+ performanceFeePct: 10,
50734
+ feeScheduleCheckedAt: "2026-10-28",
50696
50735
  yieldFetcher: rswethFetcher,
50697
50736
  yieldKey: "Swell Ethereum::SWETH",
50698
50737
  readerExtras: {
@@ -50721,6 +50760,11 @@ var LST_REGISTRY = {
50721
50760
  mintContract: "0x4befa2aa9c305238aa3e0b5d17eb20c045269e9d",
50722
50761
  mintInputAsset: "native",
50723
50762
  withdrawalMode: "instant-or-queued",
50763
+ // `managerFeeShare()` = 100 ‰ of oracle-reported rewards, deducted
50764
+ // before `exchangeRatio()` (no cap in code). Mint, instantSwap and
50765
+ // redeemFromValidators charge nothing. Read 2026-10-28.
50766
+ performanceFeePct: 10,
50767
+ feeScheduleCheckedAt: "2026-10-28",
50724
50768
  yieldFetcher: bedrockUniEthFetcher,
50725
50769
  yieldKey: "Universal ETH::uniETH"
50726
50770
  },
@@ -50915,6 +50959,10 @@ var LST_REGISTRY = {
50915
50959
  // Redemption exists on-chain but only for allowlisted holders — the
50916
50960
  // cbETH shape: through the institution, not a permissionless queue.
50917
50961
  withdrawalMode: "off-chain",
50962
+ // River `getGlobalFee()` = 1000 bps of every balance increase, minted
50963
+ // to the collector. No deposit or redeem fee. Read 2026-10-28.
50964
+ performanceFeePct: 10,
50965
+ feeScheduleCheckedAt: "2026-10-28",
50918
50966
  yieldFetcher: lsethFetcher,
50919
50967
  yieldKey: "LSETH"
50920
50968
  },
@@ -55944,6 +55992,10 @@ var ZEROBASE_ENTRIES = (() => {
55944
55992
  mintContract: vault,
55945
55993
  accrual: "linear",
55946
55994
  withdrawalMode: "fee-or-queued",
55995
+ // `Vault.sol` has no stake or queue fee and no cut of the reward (the
55996
+ // rate is the depositor's own); the only fee is the 0.5 % flash
55997
+ // penalty the reader publishes. Rechecked 2026-10-28.
55998
+ feeScheduleCheckedAt: "2026-10-28",
55947
55999
  withdrawalCooldownSeconds: 604800,
55948
56000
  withdrawQueue: withdrawVault,
55949
56001
  // The instant leg pays from the vault's own balance and the rate
@@ -59418,8 +59470,20 @@ var jusdCreditFetcher = {
59418
59470
 
59419
59471
  // src/vaults/savings/registryLlamaGap.ts
59420
59472
  var LIQUID_BTC_DESCRIPTION = "ether.fi's Liquid BTC vault, a Veda BoringVault on Ethereum and Optimism: WBTC, cbBTC or eBTC deposited here is run by ether.fi across BTC lending and restaking positions, and the share's WBTC value is set by the vault's accountant, one rate on both chains. That value is an operator mark, not a computed balance, and it has fallen: about 0.09 % between March and April 2025, after which it went sideways for five months. Exit is a request to Veda's on-chain queue, paid in eBTC (ether.fi's restaked BTC, not WBTC) by ether.fi's solver \u2014 typically within a day, and ether.fi allows itself up to three.";
59421
- var LIQUID_ETH_OP_DESCRIPTION = "ether.fi's Liquid ETH vault on Optimism \u2014 the same vault and share as on Ethereum, with one accountant rate on both chains: WETH or weETH deposited here joins ether.fi's lending, LRT and basis strategies, most of which run on Ethereum, and the share's ETH value is set by the accountant after a 0.5 % platform fee. That value is an operator mark, not a computed balance. Exit is a request to the vault's queue on Optimism, paid in weETH (not WETH) by ether.fi's solver \u2014 typically within a day, and ether.fi allows itself up to three.";
59422
- var LIQUID_USD_OP_DESCRIPTION = "ether.fi's Liquid USD vault on Optimism \u2014 the same vault and share as on Ethereum, with one accountant rate on both chains: USDC, USD\u20AE0 or USDT deposited here joins ether.fi's lending, Curve and basis positions, most of which run on Ethereum, and the share's dollar value is set by the accountant. That value is an operator mark, not a computed balance. Exit is a request to the vault's queue on Optimism, paid in USDC, USD\u20AE0 or USDT by ether.fi's solver \u2014 typically within a day, and ether.fi allows itself up to three.";
59473
+ var LIQUID_ETH_OP_DESCRIPTION = "ether.fi's Liquid ETH vault on Optimism \u2014 the same vault and share as on Ethereum, with one accountant rate on both chains: WETH or weETH deposited here joins ether.fi's lending, LRT and basis strategies, most of which run on Ethereum, and the share's ETH value is set by the accountant after a 0.05 % a year platform fee. That value is an operator mark, not a computed balance. Exit is a request to the vault's queue on Optimism, paid in weETH (not WETH) by ether.fi's solver \u2014 typically within a day, and ether.fi allows itself up to three.";
59474
+ var LIQUID_USD_OP_DESCRIPTION = "ether.fi's Liquid USD vault on Optimism \u2014 the same vault and share as on Ethereum, with one accountant rate on both chains: USDC, USD\u20AE0 or USDT deposited here joins ether.fi's lending, Curve and basis positions, most of which run on Ethereum, and the share's dollar value is set by the accountant. That value is an operator mark, not a computed balance. Exit is a request to the vault's queue on Optimism, paid in USDC, USD\u20AE0 or USDT by ether.fi's solver, typically within a day (at most three). USDT and USD\u20AE0 deposits mint 0.1 % / 0.05 % fewer shares; USDC none.";
59475
+ var VEDA_FEES = {
59476
+ "1:liquidETH": { managementFeePct: 0.05, feeScheduleCheckedAt: "2026-10-28" },
59477
+ "1:liquidUSD": { managementFeePct: 1.25, feeScheduleCheckedAt: "2026-10-28" },
59478
+ "1:liquidBTC": { managementFeePct: 0, feeScheduleCheckedAt: "2026-10-28" },
59479
+ "10:liquidETH": {
59480
+ managementFeePct: 0.05,
59481
+ feeScheduleCheckedAt: "2026-10-28"
59482
+ },
59483
+ "10:liquidUSD": { managementFeePct: 1, feeScheduleCheckedAt: "2026-10-28" },
59484
+ "10:liquidBTC": { managementFeePct: 1, feeScheduleCheckedAt: "2026-10-28" },
59485
+ "9745:PlasmaUSD": { managementFeePct: 0, feeScheduleCheckedAt: "2026-10-28" }
59486
+ };
59423
59487
  var LLAMA_GAP_ENTRIES = {
59424
59488
  "1": [
59425
59489
  // ---- ether.fi Liquid (Veda BoringVaults) ------------------------------
@@ -59430,7 +59494,7 @@ var LLAMA_GAP_ENTRIES = {
59430
59494
  // WETH — the accountant's base
59431
59495
  symbol: "liquidETH",
59432
59496
  brand: "ether.fi",
59433
- description: "ether.fi's Liquid ETH vault, a Veda BoringVault: ETH, WETH, stETH, eETH or weETH deposited here is run by ether.fi across lending, LRT and basis strategies, and the share's ETH value is set by the vault's accountant after a 0.5 % platform fee. That value is an operator mark, not a computed balance \u2014 it has not fallen over the past year, but nothing on-chain enforces it. Exit is a request to Veda's on-chain queue, paid in weETH (not WETH) by ether.fi's solver \u2014 typically within a day, and ether.fi allows itself up to three.",
59497
+ description: "ether.fi's Liquid ETH vault, a Veda BoringVault: ETH, WETH, stETH, eETH or weETH deposited here is run by ether.fi across lending, LRT and basis strategies, and the share's ETH value is set by the vault's accountant after a 0.05 % a year platform fee. That value is an operator mark, not a computed balance \u2014 it has not fallen over the past year, but nothing on-chain enforces it. Exit is a request to Veda's on-chain queue, paid in weETH (not WETH) by ether.fi's solver \u2014 typically within a day, and ether.fi allows itself up to three.",
59434
59498
  decimals: 18,
59435
59499
  isRebasing: false,
59436
59500
  isMintable: true,
@@ -59443,6 +59507,8 @@ var LLAMA_GAP_ENTRIES = {
59443
59507
  priceOracle: "0x0d05d94a5f1e76c18fbeb7a13d17c8a314088198",
59444
59508
  // Accountant
59445
59509
  solvency: "nav-attested",
59510
+ // Read 2026-10-28 — see VEDA_FEES below.
59511
+ ...VEDA_FEES["1:liquidETH"],
59446
59512
  yieldFetcher: llamaGapShareRateFetcher,
59447
59513
  yieldKey: LLAMA_GAP_KEYS.liquidETH
59448
59514
  },
@@ -59453,7 +59519,7 @@ var LLAMA_GAP_ENTRIES = {
59453
59519
  // USDC
59454
59520
  symbol: "liquidUSD",
59455
59521
  brand: "ether.fi",
59456
- description: "ether.fi's Liquid USD vault, a Veda BoringVault: USDC or USDT deposited here is run by ether.fi across lending, Curve and basis positions on several chains, and the share's dollar value is set by the vault's accountant. That value is an operator mark, not a computed balance. Exit is a request to Veda's on-chain queue, paid in USDC or USDT by ether.fi's solver \u2014 typically within a day, and ether.fi allows itself up to three.",
59522
+ description: "ether.fi's Liquid USD vault, a Veda BoringVault: USDC or USDT deposited here is run by ether.fi across lending, Curve and basis positions on several chains, and the share's dollar value is set by the vault's accountant. That value is an operator mark, not a computed balance. Exit is a request to Veda's on-chain queue, paid in USDC or USDT by ether.fi's solver \u2014 typically within a day, and ether.fi allows itself up to three. A USDT deposit mints 0.1 % fewer shares (a share premium); USDC pays none.",
59457
59523
  decimals: 6,
59458
59524
  underlyingDecimals: 6,
59459
59525
  isRebasing: false,
@@ -59467,6 +59533,7 @@ var LLAMA_GAP_ENTRIES = {
59467
59533
  priceOracle: "0xc315d6e14ddcdc7407784e2caf815d131bc1d3e7",
59468
59534
  // Accountant
59469
59535
  solvency: "nav-attested",
59536
+ ...VEDA_FEES["1:liquidUSD"],
59470
59537
  yieldFetcher: llamaGapShareRateFetcher,
59471
59538
  yieldKey: LLAMA_GAP_KEYS.liquidUSD
59472
59539
  },
@@ -59495,6 +59562,7 @@ var LLAMA_GAP_ENTRIES = {
59495
59562
  priceOracle: "0xea23ac6d7d11f6b181d6b98174d334478adae6b0",
59496
59563
  // Accountant
59497
59564
  solvency: "nav-attested",
59565
+ ...VEDA_FEES["1:liquidBTC"],
59498
59566
  yieldFetcher: llamaGapShareRateFetcher,
59499
59567
  yieldKey: LLAMA_GAP_KEYS.liquidBTC
59500
59568
  },
@@ -59514,6 +59582,12 @@ var LLAMA_GAP_ENTRIES = {
59514
59582
  isMintable: true,
59515
59583
  withdrawalMode: "instant-capped",
59516
59584
  withdrawFeeBps: 5,
59585
+ // `revenueFeePercentage()` = 200000 / 1e6, taken off the exchange price
59586
+ // above a high-water mark (so already in the rate). No deposit fee, no
59587
+ // management fee in the modules; `withdrawFeeAbsoluteMin()` = 0. Fees
59588
+ // move via `updateFees` behind a 1-day InstaTimelock.
59589
+ performanceFeePct: 20,
59590
+ feeScheduleCheckedAt: "2026-10-28",
59517
59591
  yieldFetcher: llamaGapShareRateFetcher,
59518
59592
  yieldKey: LLAMA_GAP_KEYS.iETHv2
59519
59593
  },
@@ -59523,7 +59597,7 @@ var LLAMA_GAP_ENTRIES = {
59523
59597
  // USDC
59524
59598
  symbol: "fLiteUSD",
59525
59599
  brand: "Fluid",
59526
- description: "Fluid Lite's USD vault: USDC deposited here is run by Instadapp in leveraged stablecoin positions, and the share price rises with what they earn after fees. The rate shown is realized over 30 days. Withdrawals are instant and pay USDC less a 0.05 % fee.",
59600
+ description: "Fluid Lite's USD vault: USDC deposited here is run by Instadapp in leveraged stablecoin positions. The share price does not follow what those positions earn: it accrues at a rate Instadapp sets (the higher of a 6 % fixed rate and a funded reward rate), and anything the strategy earns above that stays with Instadapp. The rate shown is realized over 30 days. Withdrawals are instant and pay USDC less a 0.05 % fee, which Instadapp's strategy handler can raise to 0.5 % without a timelock.",
59527
59601
  decimals: 18,
59528
59602
  underlyingDecimals: 6,
59529
59603
  isRebasing: false,
@@ -59532,6 +59606,10 @@ var LLAMA_GAP_ENTRIES = {
59532
59606
  // `previewRedeem` nets 5 bps against `convertToAssets` (1.053693 vs
59533
59607
  // 1.054221 USDC per share, 2026-10-27).
59534
59608
  withdrawFeeBps: 5,
59609
+ // No performance, deposit or management fee in `FluidLiteVault`; the
59610
+ // withdrawal fee (`getWithdrawalFeeBPS()`, cap 50) is set by the
59611
+ // strategy handler with no timelock.
59612
+ feeScheduleCheckedAt: "2026-10-28",
59535
59613
  yieldFetcher: llamaGapShareRateFetcher,
59536
59614
  yieldKey: LLAMA_GAP_KEYS.fLiteUSD
59537
59615
  },
@@ -59546,7 +59624,7 @@ var LLAMA_GAP_ENTRIES = {
59546
59624
  // OETH
59547
59625
  symbol: "wOETH",
59548
59626
  brand: "Origin",
59549
- description: "wOETH is the non-rebasing wrapper of OETH, Origin's ETH token backed by LSTs, staked ETH and AMO liquidity positions. OETH pays its yield as a balance rebase; wOETH captures it as a rising share price. Wrapping and unwrapping are instant and free, and the unwrap pays OETH. To leave in WETH, the queued exit unwraps and asks Origin's vault for WETH 1:1: it can be claimed about ten minutes later once the vault holds enough WETH, by the same account that requested it. The rate shown is realized over 30 days.",
59627
+ description: "wOETH is the non-rebasing wrapper of OETH, Origin's ETH token backed by LSTs, staked ETH and AMO liquidity positions. OETH pays its yield as a balance rebase; wOETH captures it as a rising share price. Wrapping and unwrapping are instant and free, and the unwrap pays OETH. To leave in WETH, the queued exit unwraps and asks Origin's vault for WETH 1:1: it can be claimed about ten minutes later once the vault holds enough WETH, by the same account that requested it. Origin keeps 20 % of the yield. The rate shown is realized over 30 days, net of that.",
59550
59628
  decimals: 18,
59551
59629
  isRebasing: false,
59552
59630
  isMintable: true,
@@ -59559,6 +59637,11 @@ var LLAMA_GAP_ENTRIES = {
59559
59637
  // WETH
59560
59638
  oTokenSymbol: "OETH"
59561
59639
  },
59640
+ // Origin's vault mints `trusteeFeeBps()` = 2000 (20 %) of every rebase
59641
+ // to its trustee, so the wrapper price is net of it. No mint, wrap or
59642
+ // queue fee; the vault has no instant redeem (`redeemFeeBps()` reverts).
59643
+ performanceFeePct: 20,
59644
+ feeScheduleCheckedAt: "2026-10-28",
59562
59645
  yieldFetcher: llamaGapShareRateFetcher,
59563
59646
  yieldKey: LLAMA_GAP_KEYS.wOETH
59564
59647
  },
@@ -59574,6 +59657,12 @@ var LLAMA_GAP_ENTRIES = {
59574
59657
  isRebasing: false,
59575
59658
  isMintable: true,
59576
59659
  withdrawalMode: "instant",
59660
+ // `getFeeSettings()` streamingFeeBps = periodicFeeBps = 0 (2026-10-28;
59661
+ // role-settable up to <100 % of profit / 10 % p.a.). No deposit or
59662
+ // withdraw fee in code. Deposits and redeems price off two NAVs
59663
+ // (`totalAssets(Deposit|Withdraw)`), ~1–1.6 bps each way — a spread,
59664
+ // not a fee.
59665
+ feeScheduleCheckedAt: "2026-10-28",
59577
59666
  yieldFetcher: tokemakAutopoolsFetcher,
59578
59667
  yieldKey: LLAMA_GAP_KEYS.autoETH
59579
59668
  },
@@ -59589,6 +59678,12 @@ var LLAMA_GAP_ENTRIES = {
59589
59678
  isRebasing: false,
59590
59679
  isMintable: true,
59591
59680
  withdrawalMode: "instant",
59681
+ // `getFeeSettings()` streamingFeeBps = periodicFeeBps = 0 (2026-10-28;
59682
+ // role-settable up to <100 % of profit / 10 % p.a.). No deposit or
59683
+ // withdraw fee in code. Deposits and redeems price off two NAVs
59684
+ // (`totalAssets(Deposit|Withdraw)`), ~1–1.6 bps each way — a spread,
59685
+ // not a fee.
59686
+ feeScheduleCheckedAt: "2026-10-28",
59592
59687
  yieldFetcher: tokemakAutopoolsFetcher,
59593
59688
  yieldKey: LLAMA_GAP_KEYS.autoUSD
59594
59689
  },
@@ -59609,6 +59704,12 @@ var LLAMA_GAP_ENTRIES = {
59609
59704
  isRebasing: false,
59610
59705
  isMintable: true,
59611
59706
  withdrawalMode: "request-based",
59707
+ // Accountable fee manager `feeStructure(strategy)` = (0, 0, 30000, 0, 0)
59708
+ // on BASIS_POINTS = 1e6: 3 % of interest, minted on accrual. No
59709
+ // management fee; the 2 % prepayment field is never read by the
59710
+ // open-term strategy; no deposit / redeem fee code.
59711
+ performanceFeePct: 3,
59712
+ feeScheduleCheckedAt: "2026-10-28",
59612
59713
  yieldFetcher: jusdCreditFetcher,
59613
59714
  yieldKey: LLAMA_GAP_KEYS.JUSD
59614
59715
  }
@@ -59635,6 +59736,7 @@ var LLAMA_GAP_ENTRIES = {
59635
59736
  priceOracle: "0x737f2522d09e58a3ea9dccfdb127dd0df5eb3f18",
59636
59737
  // Accountant
59637
59738
  solvency: "nav-attested",
59739
+ ...VEDA_FEES["9745:PlasmaUSD"],
59638
59740
  yieldFetcher: llamaGapShareRateFetcher,
59639
59741
  yieldKey: LLAMA_GAP_KEYS.PlasmaUSD
59640
59742
  }
@@ -59648,7 +59750,7 @@ var LLAMA_GAP_ENTRIES = {
59648
59750
  // superOETHb
59649
59751
  symbol: "wsuperOETHb",
59650
59752
  brand: "Origin",
59651
- description: "wsuperOETHb is the non-rebasing wrapper of Super OETH, Origin's ETH token on Base backed by bridged LSTs and Aerodrome AMO liquidity. Super OETH pays its yield as a balance rebase; the wrapper captures it as a rising share price. Wrapping and unwrapping are instant and free, and the unwrap pays superOETHb. To leave in WETH, the queued exit unwraps and asks Origin's vault for WETH 1:1: it can be claimed about ten minutes later once the vault holds enough WETH, by the same account that requested it. The rate shown is realized over 30 days.",
59753
+ description: "wsuperOETHb is the non-rebasing wrapper of Super OETH, Origin's ETH token on Base backed by bridged LSTs and Aerodrome AMO liquidity. Super OETH pays its yield as a balance rebase; the wrapper captures it as a rising share price. Wrapping and unwrapping are instant and free, and the unwrap pays superOETHb. To leave in WETH, the queued exit unwraps and asks Origin's vault for WETH 1:1: it can be claimed about ten minutes later once the vault holds enough WETH, by the same account that requested it. Origin keeps 20 % of the yield. The rate shown is realized over 30 days, net of that.",
59652
59754
  decimals: 18,
59653
59755
  isRebasing: false,
59654
59756
  isMintable: true,
@@ -59661,6 +59763,11 @@ var LLAMA_GAP_ENTRIES = {
59661
59763
  // WETH
59662
59764
  oTokenSymbol: "superOETHb"
59663
59765
  },
59766
+ // Origin's vault mints `trusteeFeeBps()` = 2000 (20 %) of every rebase
59767
+ // to its trustee, so the wrapper price is net of it. No mint, wrap or
59768
+ // queue fee; the vault has no instant redeem (`redeemFeeBps()` reverts).
59769
+ performanceFeePct: 20,
59770
+ feeScheduleCheckedAt: "2026-10-28",
59664
59771
  yieldFetcher: llamaGapShareRateFetcher,
59665
59772
  yieldKey: LLAMA_GAP_KEYS.wsuperOETHb
59666
59773
  },
@@ -59676,6 +59783,12 @@ var LLAMA_GAP_ENTRIES = {
59676
59783
  isRebasing: false,
59677
59784
  isMintable: true,
59678
59785
  withdrawalMode: "instant",
59786
+ // `getFeeSettings()` streamingFeeBps = periodicFeeBps = 0 (2026-10-28;
59787
+ // role-settable up to <100 % of profit / 10 % p.a.). No deposit or
59788
+ // withdraw fee in code. Deposits and redeems price off two NAVs
59789
+ // (`totalAssets(Deposit|Withdraw)`), ~1–1.6 bps each way — a spread,
59790
+ // not a fee.
59791
+ feeScheduleCheckedAt: "2026-10-28",
59679
59792
  yieldFetcher: tokemakAutopoolsFetcher,
59680
59793
  yieldKey: LLAMA_GAP_KEYS.baseUSD
59681
59794
  }
@@ -59792,6 +59905,7 @@ function liquidOp(p) {
59792
59905
  exitAsset: p.exitAsset,
59793
59906
  solveCadenceSeconds: 3 * 86400
59794
59907
  },
59908
+ ...VEDA_FEES[`10:${p.symbol}`],
59795
59909
  yieldFetcher: llamaGapShareRateFetcher,
59796
59910
  yieldKey: p.yieldKey
59797
59911
  };
@@ -59816,6 +59930,16 @@ function liminalEntry(address, symbol, description, depositPipe, redemptionPipe,
59816
59930
  inventoryContract: liquidityProvider,
59817
59931
  priceOracle: navOracle,
59818
59932
  solvency: "nav-attested",
59933
+ // FeeManager (`depositPipe.feeManager()`) `getFees()` = (100, 1000) on all
59934
+ // three vaults 2026-10-28: 1 % a year on assets + 10 % of profit above
59935
+ // `highWatermarkPPS()`, both minted as fee shares (48 h timelock). The
59936
+ // instant fee is read live off the RedemptionPipe; deposits and the
59937
+ // standard queue are free (`previewDeposit` = `convertToShares`).
59938
+ // UNVERIFIED: whether Liminal's pushed NAV already deducts fees not yet
59939
+ // minted (`accruedPerformanceFeeInAssets()` was 0.25–1.56 % of NAV).
59940
+ managementFeePct: 1,
59941
+ performanceFeePct: 10,
59942
+ feeScheduleCheckedAt: "2026-10-28",
59819
59943
  yieldFetcher: liminalVaultsFetcher,
59820
59944
  yieldKey
59821
59945
  };
@@ -59967,6 +60091,13 @@ var SUSDAI_ENTRY = {
59967
60091
  // 30-day window before it can be serviced (`REDEMPTION_WINDOW`).
59968
60092
  withdrawalCooldownSeconds: 2592e3,
59969
60093
  solvency: "nav-attested",
60094
+ // `StakedUSDai` immutables (no getter; changes only by upgrade behind a 48 h
60095
+ // timelock): `baseYieldAdminFeeRate` = `loanRouterAdminFeeRate` = 1000 bps,
60096
+ // so 10 % of base yield and of loan interest goes to USD.AI before it
60097
+ // reaches the vault. Borrower loan fees pass through uncut; no deposit or
60098
+ // redemption fee code (the deposit/redemption price gap is published apart).
60099
+ performanceFeePct: 10,
60100
+ feeScheduleCheckedAt: "2026-10-28",
59970
60101
  yieldFetcher: usdaiFetcher,
59971
60102
  yieldKey: SUSDAI_KEY
59972
60103
  };
@@ -59985,9 +60116,20 @@ var yuzuEntry = (v) => ({
59985
60116
  // `fillWindow()` = 86,400 s — the order's due time.
59986
60117
  withdrawalCooldownSeconds: 86400,
59987
60118
  solvency: "nav-attested",
60119
+ // `mintFeePpm`, `redeemFeePpm`, `redeemOrderFeePpm`,
60120
+ // `managementFeeRatePpm`, `performanceFeeRatePpm` (and their pending
60121
+ // values) all 0 on 2026-10-28; role-settable up to 100 % / 10 % a year /
60122
+ // 50 %. An order's fee is fixed at creation.
60123
+ feeScheduleCheckedAt: "2026-10-28",
59988
60124
  yieldFetcher: yzSyrupFetcher,
59989
60125
  yieldKey: YZSYRUP_KEY
59990
60126
  });
60127
+ var MAKINA_FEES = {
60128
+ usdSHFmk: { managementFeePct: 0.5, performanceFeePct: 0 },
60129
+ DCM: { managementFeePct: 0, performanceFeePct: 0 },
60130
+ DUSD: { managementFeePct: 0.5, performanceFeePct: 10 },
60131
+ DETH: { managementFeePct: 0.5, performanceFeePct: 10 }
60132
+ };
59991
60133
  var MAKINA_COPY = {
59992
60134
  usdSHFmk: {
59993
60135
  name: "Steakhouse USD Machine",
@@ -60027,6 +60169,8 @@ var makinaEntry = (m) => {
60027
60169
  withdrawQueue: m.redeemer,
60028
60170
  ...copy?.delay !== void 0 ? { withdrawalCooldownSeconds: copy.delay } : {},
60029
60171
  makinaMachine: m.machine,
60172
+ ...MAKINA_FEES[m.symbol],
60173
+ ...MAKINA_FEES[m.symbol] ? { feeScheduleCheckedAt: "2026-10-28" } : {},
60030
60174
  // `solvency` deliberately ABSENT: the AUM is operator-posted caliber
60031
60175
  // accounting over on-chain positions — neither an attestation nor a
60032
60176
  // collateralised loan — and is not assessed here (coverage.pending).
@@ -60043,6 +60187,12 @@ var CONCRETE_COPY = {
60043
60187
  ctZigUSD1: "A single-mandate Concrete vault over USD1 (ZIG), its reported strategy value accruing into the share price. Deposits are restricted to Concrete's allowlist. Concrete can switch the vault's withdrawal queue on, in which case a redemption is booked into an epoch and claimed once processed; it is off today, so a redemption pays at once from available liquidity.",
60044
60188
  ctColbUSD1: "A single-mandate Concrete vault over USD1 (Colb), its reported strategy value accruing into the share price. Deposits are restricted to Concrete's allowlist. Withdrawals are booked into the current epoch, paid at that epoch's share price once processed, then claimed; cancellable while the epoch is open."
60045
60189
  };
60190
+ var CONCRETE_PERF_FEE_PCT = {
60191
+ ctDefiUSDT: 0,
60192
+ ctRWA_USD1: 20,
60193
+ ctZigUSD1: 0,
60194
+ ctColbUSD1: 0
60195
+ };
60046
60196
  var concreteEntry = (v) => ({
60047
60197
  address: v.vault,
60048
60198
  underlying: v.underlying,
@@ -60054,6 +60204,11 @@ var concreteEntry = (v) => ({
60054
60204
  isRebasing: false,
60055
60205
  isMintable: !v.depositGated,
60056
60206
  withdrawalMode: "request-based",
60207
+ ...v.symbol in CONCRETE_PERF_FEE_PCT ? {
60208
+ performanceFeePct: CONCRETE_PERF_FEE_PCT[v.symbol],
60209
+ managementFeePct: 0,
60210
+ feeScheduleCheckedAt: "2026-10-28"
60211
+ } : {},
60057
60212
  // `solvency` ABSENT: strategy-reported value, not assessed.
60058
60213
  yieldFetcher: concreteFetcher,
60059
60214
  yieldKey: CONCRETE_KEYS[v.symbol]
@@ -60099,8 +60254,8 @@ var mellowLidoEarnFetcher = {
60099
60254
 
60100
60255
  // src/vaults/savings/registryMellow.ts
60101
60256
  var DESCRIPTIONS2 = {
60102
- earnETH: "earnETH is Lido Earn's ETH vault on Mellow's core-vault infrastructure, allocated chiefly to Mellow's leveraged stETH vault (strETH) plus restaking and DeFi positions. The share price is not accrued on-chain: a Mellow oracle key reports it about once a day, and the vault mints and redeems at that report. Deposit WETH. Exits are paid in wstETH, not ETH: a small daily allowance redeems at once, anything larger is a request priced at the next report and claimable after about a day and a half. A 15 % performance fee is netted out of the share price.",
60103
- earnUSD: "earnUSD is Lido Earn's dollar vault, run on Mellow's core-vault infrastructure: USDC is allocated across stablecoin lending and yield strategies. The share price is not accrued on-chain \u2014 a Mellow oracle key reports it about once a day, and the vault mints and redeems at that report. Deposit USDC and the shares mint at the last report. A small daily allowance redeems instantly; anything larger is a request priced at the next report and claimable after about two and a half days. A performance fee is already netted out of the share price."
60257
+ earnETH: "earnETH is Lido Earn's ETH vault on Mellow's core-vault infrastructure, allocated chiefly to Mellow's leveraged stETH vault (strETH) plus restaking and DeFi positions. The share price is not accrued on-chain: a Mellow oracle key reports it about once a day, and the vault mints and redeems at that report. Deposit WETH. Exits are paid in wstETH, not ETH: a small daily allowance redeems at once, anything larger is a request priced at the next report and claimable after about a day and a half. Mellow takes 15 % of the gain and 0.2 % a year of the vault, both netted out of the share price.",
60258
+ earnUSD: "earnUSD is Lido Earn's dollar vault, run on Mellow's core-vault infrastructure: USDC is allocated across stablecoin lending and yield strategies. The share price is not accrued on-chain \u2014 a Mellow oracle key reports it about once a day, and the vault mints and redeems at that report. Deposit USDC and the shares mint at the last report. A small daily allowance redeems instantly; anything larger is a request priced at the next report and claimable after about two and a half days. Mellow takes 15 % of the gain and 0.2 % a year of the vault, both netted out of the share price."
60104
60259
  };
60105
60260
  var QUEUE_SECONDS = {
60106
60261
  earnETH: 129600,
@@ -60130,6 +60285,9 @@ var MELLOW_ENTRIES = MELLOW_VAULTS.reduce(
60130
60285
  withdrawalCooldownSeconds: QUEUE_SECONDS[v.symbol],
60131
60286
  withdrawQueue: v.redeemQueue,
60132
60287
  solvency: "nav-attested",
60288
+ // Every FeeManager dial is read live (performance, protocol, deposit,
60289
+ // redeem); checked complete 2026-10-28.
60290
+ feeScheduleCheckedAt: "2026-10-28",
60133
60291
  mellow: {
60134
60292
  vault: v.vault,
60135
60293
  oracle: v.oracle,
@@ -60264,6 +60422,11 @@ var AERA_ENTRIES = AERA_VAULTS.reduce(
60264
60422
  withdrawalCooldownSeconds: QUEUE_SECONDS2,
60265
60423
  withdrawQueue: v.provisioner,
60266
60424
  solvency: "nav-attested",
60425
+ // Rechecked 2026-10-28: `getVaultState(vault)` fees (tvl, performance)
60426
+ // and `protocolFees()` are 0 on all three calculators, every
60427
+ // provisioner deposit / redeem multiplier is 10000 (no premium), and
60428
+ // our builder sends a 0 solver tip with `isFixedPrice` false.
60429
+ feeScheduleCheckedAt: "2026-10-28",
60267
60430
  aera: {
60268
60431
  provisioner: v.provisioner,
60269
60432
  priceFeeCalculator: v.priceFeeCalculator,
@@ -71967,16 +72130,11 @@ function priceColInDebt(raw, colDec, debtDec) {
71967
72130
  return formatMorphoPrice(raw, debtDec, colDec + 9);
71968
72131
  }
71969
72132
  function getFluidCalls(chainId) {
71970
- const resolvers = fluidResolvers()?.[chainId];
71971
- if (!resolvers) return [];
71972
- const call = {
71973
- address: resolvers.vaultResolver,
71974
- name: "getVaultsEntireData",
71975
- params: []
71976
- };
72133
+ const calls = buildFluidVaultCalls(chainId);
72134
+ if (calls.length === 0) return [];
71977
72135
  return [
71978
72136
  {
71979
- calls: [call],
72137
+ calls,
71980
72138
  // Empty placeholder — populated per-vault inside `parse` from the
71981
72139
  // resolver response. Kept as an empty object to match the shape
71982
72140
  // other fetchers expose.
@@ -71988,8 +72146,8 @@ function getFluidCalls(chainId) {
71988
72146
  function parseFluidResults(data, _meta, context) {
71989
72147
  const { chainId, usdPrices, tokenList } = context;
71990
72148
  const entries = [];
71991
- const vaults = data[0];
71992
- if (!Array.isArray(vaults) || vaults.length === 0) return entries;
72149
+ const vaults = collectFluidVaults(data);
72150
+ if (vaults.length === 0) return entries;
71993
72151
  for (const vault of vaults) {
71994
72152
  try {
71995
72153
  if (vault.isSmartCol || vault.isSmartDebt) continue;
@@ -76231,7 +76389,7 @@ var STUB_SET = new Map(
76231
76389
  var isMorphoStubVault = (chainId, vault) => STUB_SET.get(chainId)?.has(vault.toLowerCase()) ?? false;
76232
76390
 
76233
76391
  // src/vaults/morpho/fetchFromChain.ts
76234
- var { chunk: chunk5 } = lodash;
76392
+ var { chunk: chunk4 } = lodash;
76235
76393
  var VAULT_CALLS = [
76236
76394
  "name",
76237
76395
  "symbol",
@@ -76573,7 +76731,7 @@ async function fetchMorphoMarketRates(chainId, core, marketIds, multicallRetry)
76573
76731
  const map = /* @__PURE__ */ new Map();
76574
76732
  const lens = MORPHO_LENS[chainId];
76575
76733
  if (!core || !lens || marketIds.length === 0) return map;
76576
- const groups = chunk5(marketIds, MARKET_CHUNK);
76734
+ const groups = chunk4(marketIds, MARKET_CHUNK);
76577
76735
  const calls = groups.map((group) => ({
76578
76736
  address: lens,
76579
76737
  name: "getMarketDataCompact",
@@ -76746,7 +76904,7 @@ var fetchMorphoVaults = async (chainId, multicallRetry, prices = {}, tokenList =
76746
76904
  ) : await fetchMorphoVaultsFromApi(chainId, prices, tokenList);
76747
76905
  return dropUnrealizableRates(vaults);
76748
76906
  };
76749
- var { chunk: chunk6 } = lodash;
76907
+ var { chunk: chunk5 } = lodash;
76750
76908
  var LISTA_PROTOCOL = "LISTA_DAO";
76751
76909
  var LISTA_LENS_ABI = parseAbi([
76752
76910
  "function getListaMarketDataCompact(address morpho, bytes32[] calldata marketsIds) external view returns (bytes memory data)"
@@ -76929,7 +77087,7 @@ async function fetchListaMarketRates(chainId, moolah, marketIds, multicallRetry)
76929
77087
  const map = /* @__PURE__ */ new Map();
76930
77088
  const lens = MORPHO_LENS[chainId];
76931
77089
  if (!moolah || !lens || marketIds.length === 0) return map;
76932
- const groups = chunk6(marketIds, LISTA_MARKET_CHUNK);
77090
+ const groups = chunk5(marketIds, LISTA_MARKET_CHUNK);
76933
77091
  const calls = groups.map((group) => ({
76934
77092
  address: lens,
76935
77093
  name: "getListaMarketDataCompact",
@@ -80954,6 +81112,8 @@ var fetchLstShareTokens = async (chainId, multicallRetry, prices = {}, tokenList
80954
81112
  // `LstOnChainState.withdrawalCooldownSeconds`.
80955
81113
  withdrawalCooldownSeconds: cooldownSecs,
80956
81114
  withdrawFeeBps: state.withdrawFeeBps,
81115
+ fee: entry2.performanceFeePct,
81116
+ ...entry2.feeScheduleCheckedAt ? { feeScheduleComplete: true } : {},
80957
81117
  isDepositPaused: state.depositsPaused,
80958
81118
  isWithdrawalPaused: state.withdrawalsPaused,
80959
81119
  // A paused exit publishes no route — a route here is a promise the
@@ -85894,6 +86054,30 @@ var MellowFeeManagerReadAbi = [
85894
86054
  stateMutability: "view",
85895
86055
  inputs: [],
85896
86056
  outputs: [{ type: "uint24" }]
86057
+ },
86058
+ {
86059
+ // Fee on assets, 1e6 = 100 % a year, time-prorated and taken in shares.
86060
+ name: "protocolFeeD6",
86061
+ type: "function",
86062
+ stateMutability: "view",
86063
+ inputs: [],
86064
+ outputs: [{ type: "uint24" }]
86065
+ },
86066
+ {
86067
+ // Cut of the shares a deposit mints, 1e6 = 100 %.
86068
+ name: "depositFeeD6",
86069
+ type: "function",
86070
+ stateMutability: "view",
86071
+ inputs: [],
86072
+ outputs: [{ type: "uint24" }]
86073
+ },
86074
+ {
86075
+ // Cut of the shares a redemption burns, on BOTH exit legs, 1e6 = 100 %.
86076
+ name: "redeemFeeD6",
86077
+ type: "function",
86078
+ stateMutability: "view",
86079
+ inputs: [],
86080
+ outputs: [{ type: "uint24" }]
85897
86081
  }
85898
86082
  ];
85899
86083
 
@@ -87447,7 +87631,10 @@ var readerMellowCore = (entry2) => {
87447
87631
  { address: m.vault, name: "isPausedQueue", params: [m.redeemQueue] },
87448
87632
  { address: m.vault, name: "isPausedQueue", params: [m.syncRedeemQueue] },
87449
87633
  { address: entry2.address, name: "flags", params: [] },
87450
- { address: m.feeManager, name: "performanceFeeD6", params: [] }
87634
+ { address: m.feeManager, name: "performanceFeeD6", params: [] },
87635
+ { address: m.feeManager, name: "protocolFeeD6", params: [] },
87636
+ { address: m.feeManager, name: "depositFeeD6", params: [] },
87637
+ { address: m.feeManager, name: "redeemFeeD6", params: [] }
87451
87638
  ],
87452
87639
  abis: [
87453
87640
  MellowShareManagerReadAbi,
@@ -87458,6 +87645,9 @@ var readerMellowCore = (entry2) => {
87458
87645
  MellowVaultReadAbi,
87459
87646
  MellowVaultReadAbi,
87460
87647
  MellowShareManagerReadAbi,
87648
+ MellowFeeManagerReadAbi,
87649
+ MellowFeeManagerReadAbi,
87650
+ MellowFeeManagerReadAbi,
87461
87651
  MellowFeeManagerReadAbi
87462
87652
  ],
87463
87653
  parse: ([
@@ -87469,7 +87659,10 @@ var readerMellowCore = (entry2) => {
87469
87659
  redPaused,
87470
87660
  syncRedPaused,
87471
87661
  flags,
87472
- perfFee
87662
+ perfFee,
87663
+ protoFee,
87664
+ depFee,
87665
+ redFee
87473
87666
  ]) => {
87474
87667
  const totalShares = toBigInt16(shares);
87475
87668
  const r = tupleAt3(report);
@@ -87492,12 +87685,20 @@ var readerMellowCore = (entry2) => {
87492
87685
  const f = flagsOf(flags);
87493
87686
  const instantRedeemCapacity = remaining === void 0 ? void 0 : syncRedeemPaused || stale ? 0n : remaining * ONE_E1823 / priceD18;
87494
87687
  const perf = toBigInt16(perfFee);
87688
+ const proto = toBigInt16(protoFee);
87689
+ const depositFee = toBigInt16(depFee);
87690
+ const redeemFee = toBigInt16(redFee);
87495
87691
  const depositsClosed = depositPaused === true || f?.hasMintPause === true || f?.hasWhitelist === true;
87496
87692
  return {
87497
87693
  totalAssets,
87498
87694
  totalSupply: totalShares,
87499
87695
  exchangeRate,
87500
- withdrawFeeBps: penaltyD6 !== void 0 ? Number(penaltyD6 / 100n) : void 0,
87696
+ // D6 / 100 = bps. The redeem fee sits on top of the instant penalty
87697
+ // and is the queued leg's whole fee.
87698
+ withdrawFeeBps: penaltyD6 !== void 0 ? Number((penaltyD6 + (redeemFee ?? 0n)) / 100n) : void 0,
87699
+ ...redeemFee !== void 0 ? { queuedFeeBps: Number(redeemFee / 100n) } : {},
87700
+ ...depositFee !== void 0 ? { depositFeeBps: Number(depositFee / 100n) } : {},
87701
+ ...proto !== void 0 ? { managementFeeBps: Number(proto / 100n) } : {},
87501
87702
  instantRedeemEnabled: syncRedeemPaused !== void 0 ? !syncRedeemPaused : void 0,
87502
87703
  instantRedeemCapacity,
87503
87704
  withdrawQueue: m.redeemQueue,
@@ -89025,8 +89226,10 @@ var fetchSavingsVaults = async (chainId, multicallRetry, prices = {}, tokenList
89025
89226
  // queue window is per-asset and governance-mutable.
89026
89227
  withdrawalCooldownSeconds: state.withdrawalCooldownSeconds ?? entry2.withdrawalCooldownSeconds,
89027
89228
  withdrawFeeBps: entry2.withdrawFeeBps ?? state.withdrawFeeBps,
89028
- depositFeeBps: state.depositFeeBps,
89029
- fee: state.performanceFeeBps !== void 0 ? state.performanceFeeBps / 100 : void 0,
89229
+ depositFeeBps: state.depositFeeBps ?? entry2.depositFeeBps,
89230
+ fee: state.performanceFeeBps !== void 0 ? state.performanceFeeBps / 100 : entry2.performanceFeePct,
89231
+ managementFee: state.managementFeeBps !== void 0 ? state.managementFeeBps / 100 : entry2.managementFeePct,
89232
+ ...entry2.feeScheduleCheckedAt ? { feeScheduleComplete: true } : {},
89030
89233
  // Bond terms — absent on every perpetual vault. See the type.
89031
89234
  expiry: state.expiry ?? entry2.expiry,
89032
89235
  isPaused: state.paused,
@@ -95434,16 +95637,44 @@ function buildFees2(input, t) {
95434
95637
  description: "Accrues on your whole balance for as long as you hold, whether or not the vault earns anything. The published rate is already net of it."
95435
95638
  });
95436
95639
  }
95640
+ if (isNum2(input.depositFeeBps) && input.depositFeeBps !== 0) {
95641
+ out.push({
95642
+ id: "deposit",
95643
+ label: "Deposit fee",
95644
+ when: "entry",
95645
+ unit: "bps",
95646
+ basis: "principal",
95647
+ value: input.depositFeeBps,
95648
+ payee: "protocol",
95649
+ description: "Taken from the amount you deposit, so you receive fewer shares than the deposit is worth at the share price."
95650
+ });
95651
+ }
95652
+ const queued = input.exitRoutes?.find(
95653
+ (r) => r.id !== "instant" && r.id !== "market"
95654
+ );
95437
95655
  if (isNum2(input.withdrawFeeBps) && input.withdrawFeeBps !== 0) {
95656
+ const freeQueue = queued !== void 0 && queued.feeBps === 0;
95438
95657
  out.push({
95439
95658
  id: "instant-exit",
95440
- label: "Instant-exit fee",
95659
+ label: queued ? "Instant-exit fee" : "Exit fee",
95441
95660
  when: "exit",
95442
95661
  unit: "bps",
95443
95662
  basis: "shares",
95444
95663
  value: input.withdrawFeeBps,
95445
95664
  payee: "protocol",
95446
- description: "Deducted from the payout when you take the immediate exit. The queued exit pays at par and does not charge it."
95665
+ description: queued ? freeQueue ? "Deducted from the payout when you take the immediate exit. The queued exit pays at par and does not charge it." : "Deducted from the payout when you take the immediate exit." : "Deducted from the payout on every withdrawal."
95666
+ });
95667
+ }
95668
+ if (queued && isNum2(queued.feeBps) && queued.feeBps !== 0) {
95669
+ out.push({
95670
+ id: "queued-exit",
95671
+ label: "Queued-exit fee",
95672
+ when: "exit",
95673
+ unit: "bps",
95674
+ basis: "shares",
95675
+ value: queued.feeBps,
95676
+ payee: "protocol",
95677
+ description: "Deducted from the payout of a queued withdrawal."
95447
95678
  });
95448
95679
  }
95449
95680
  if (isNum2(input.swapFeeRate) && input.swapFeeRate !== 0) {
@@ -95736,7 +95967,8 @@ function buildCoverage2(sheet, input, t) {
95736
95967
  else if (!t.hasDecomposableBacking)
95737
95968
  notApplicable.backedBy = "position-has-no-decomposable-backing";
95738
95969
  else pending.backedBy = "provider-does-not-publish-exposures";
95739
- if (sheet.supply?.fees.length) present.push("fees");
95970
+ if (sheet.supply?.fees.length || input.feeScheduleComplete)
95971
+ present.push("fees");
95740
95972
  else if (!t.reportsPerformanceFee)
95741
95973
  pending.fees = "provider-publishes-no-fee-schedule";
95742
95974
  if (input.solvency) present.push("counterparty");
@@ -96780,6 +97012,8 @@ function toVaultTermInput(vault, provider, chainId) {
96780
97012
  withdrawalMode: str7(row.withdrawalMode),
96781
97013
  withdrawalCooldownSeconds: num16(row.withdrawalCooldownSeconds),
96782
97014
  withdrawFeeBps: num16(row.withdrawFeeBps),
97015
+ depositFeeBps: num16(row.depositFeeBps),
97016
+ feeScheduleComplete: bool4(row.feeScheduleComplete),
96783
97017
  exitRoutes: routes(row.exitRoutes),
96784
97018
  fee: num16(row.fee),
96785
97019
  managementFee: num16(row.managementFee),