@1delta/margin-fetcher 5.0.144 → 5.0.147
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +40 -2
- package/dist/index.js +745 -99
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { Chain, isEvmChainId, isRetiredChain, isSvmChainId } from '@1delta/chain
|
|
|
9
9
|
import { multicallRetryUniversal, getEvmClient, getEvmClientWithCustomRpcsUniversal, LIST_OVERRIDES, getEvmChain, createMulticallRetryUniversal, getEvmClientUniversal } from '@1delta/providers';
|
|
10
10
|
import { LiquityTroveManagerAbi, LiquityActivePoolAbi, LiquityStabilityPoolAbi, LiquityPriceFeedAbi, LiquitySortedTrovesAbi, RiverTroveManagerAbi, RiverStabilityPoolAbi, TellerMarketRegistryAbi, TellerV2Abi, InverseMarketAbi, InverseOracleAbi, InverseDbrAbi, CurveTricryptoOracleAbi, Erc20Abi, CoolerMonoAbi, CoolerLtvOracleAbi, LlamaLendControllerAbi, LlamaLendControllerV1Abi, LlamaLendControllerV2Abi, LlamaLendVaultAbi, LlamaLendAmmAbi, TwyneCollateralVaultAbi, MetaMorphoAbi, FluidDexResolverAbi, ExactlyPreviewerAbi, ExactlyAuditorAbi, FlyingTulipLendingLensAbi, LiquityMultiTroveGetterAbi, LenderCommitmentGroupAbi, ResupplyRegistryAbi, ResupplyPairAbi, ResupplyUtilitiesAbi, ResupplyRewardHandlerAbi, ResupplyPairEmissionsAbi, ConvexPoolUtilAbi, FraxlendPairAbi, FraxlendLeverAbi, RipeMissionControlAbi, RipeLedgerAbi, RipeVaultBookAbi, RipePriceDeskAbi, RipeVaultAbi, RipeCreditEngineAbi, FrankencoinPositionAbi, FluidLendingResolverAbi, FluidVaultResolverAbi, FluidLiquidityResolverAbi, MoolahVaultAbi, UsddVatAbi, UsddJugAbi, UsddSpotAbi, MorphoLensAbi, AaveV4SpokeAbi, AaveV4OracleAbi, AaveV4HubAbi, DolomiteMarginAbi, GearboxMarketCompressorV310Abi, MorphoBlueAbi, MidnightAbi, TermRepoTokenAbi, TermRepoServicerAbi, TermRepoCollateralManagerAbi, LiquityTroveNFTAbi, LiquityCollSurplusPoolAbi, TellerCollateralManagerAbi, TermMaxViewerAbi, InverseEscrowAbi, AlchemixAlchemistAbi, FlexTroveManagerAbi, CurvanceMarketManagerAbi, CurvanceCTokenAbi, GearboxCreditAccountCompressorV310Abi, RipeHqAbi, TwyneVaultManagerAbi, TwyneCollateralVaultFactoryAbi, AaveV2V3Abi, TwyneATokenWrapperAbi, AlchemixPositionNftAbi, UsddCdpManagerAbi, UsddProxyRegistryAbi, CurvanceProtocolReaderAbi, CurvanceCentralRegistryAbi, TermPriceConsumerAbi, CurvanceOracleManagerAbi, FlexPriceOracleAbi, TermMaxOracleAggregatorV2Abi, AlchemixTransmuterAbi, FlexSortedTrovesAbi, FlexTokenizedStrategyAbi } from '@1delta/abis';
|
|
11
11
|
export { MorphoLensAbi } from '@1delta/abis';
|
|
12
|
-
import { NEST_SAVINGS_VAULTS, NEST_PREDICATE_PROXY, NEST_USDC, SUPERFORM_SUPERVAULTS, ROYCO_TRANCHES, STRATA_META_TRANCHES, MIDAS_VAULTS, MORINI_FXARB, EMBER_VAULTS, USDAI_STAKED, MAKINA_MACHINES, YUZU_VAULTS, CONCRETE_VAULTS, MELLOW_VAULTS, AERA_VAULTS, EVA_VAULTS, prepareDebitDataMulticall, prepareLenderDebitMulticall, parseDebitDataResult, parseLenderDebitResult, getPermit2ContractAddress, getLstAcceptedInputs, savingsVerbRequires, savingsSupportsVerb, getCompoundV2Comptroller as getCompoundV2Comptroller$1, getCompoundV3CometAddress as getCompoundV3CometAddress$1, getMorphoAddress, FLUID_VAULT_FACTORY, getAaveStyleLenderTokenAddress, LendingMode, getAaveCollateralTokenAddress, getSiloHalfForUnderlying, findSavingsWithdrawEntry, bandLtvCurve, InitMarginAddresses, ignoresReceiver, buildLstWithdrawRequest, savingsReceiverCapability } from '@1delta/calldata-sdk';
|
|
12
|
+
import { NEST_SAVINGS_VAULTS, NEST_PREDICATE_PROXY, NEST_USDC, SUPERFORM_SUPERVAULTS, IPOR_FUSION_VAULTS, ROYCO_TRANCHES, STRATA_META_TRANCHES, MIDAS_VAULTS, MORINI_FXARB, EMBER_VAULTS, USDAI_STAKED, MAKINA_MACHINES, YUZU_VAULTS, CONCRETE_VAULTS, MELLOW_VAULTS, AERA_VAULTS, EVA_VAULTS, prepareDebitDataMulticall, prepareLenderDebitMulticall, parseDebitDataResult, parseLenderDebitResult, getPermit2ContractAddress, getLstAcceptedInputs, savingsVerbRequires, savingsSupportsVerb, getCompoundV2Comptroller as getCompoundV2Comptroller$1, getCompoundV3CometAddress as getCompoundV3CometAddress$1, getMorphoAddress, FLUID_VAULT_FACTORY, getAaveStyleLenderTokenAddress, LendingMode, getAaveCollateralTokenAddress, getSiloHalfForUnderlying, findSavingsWithdrawEntry, bandLtvCurve, InitMarginAddresses, ignoresReceiver, buildLstWithdrawRequest, savingsReceiverCapability } from '@1delta/calldata-sdk';
|
|
13
13
|
import { proxyNativeFetch } from '@1delta/proxy-fetch';
|
|
14
14
|
import { BALANCER_V2_FORKS, BALANCER_V3_FORKS, UNISWAP_V4_FORKS, isFlashLoanSourceExcluded, FLASH_LOAN_IDS } from '@1delta/dex-registry';
|
|
15
15
|
import { getNativeDecimals, getWrappedNativeAddressSafe, isNativeWrapOneToOne } from '@1delta/wnative';
|
|
@@ -21209,7 +21209,7 @@ var getFluidPublicDataConverter = (_lender, chainId, prices, additionalYields, t
|
|
|
21209
21209
|
];
|
|
21210
21210
|
};
|
|
21211
21211
|
var SMART_DEBT_TRADING_SIGN = -1;
|
|
21212
|
-
var splitSide = (tokens, rawTotal, rawAvailable, simpleDecimals, shares,
|
|
21212
|
+
var splitSide = (tokens, rawTotal, rawAvailable, simpleDecimals, shares, rateFor2) => {
|
|
21213
21213
|
if (!shares) {
|
|
21214
21214
|
const token = tokens[0];
|
|
21215
21215
|
if (!token) return [];
|
|
@@ -21221,7 +21221,7 @@ var splitSide = (tokens, rawTotal, rawAvailable, simpleDecimals, shares, rateFor
|
|
|
21221
21221
|
available: Number(
|
|
21222
21222
|
parseRawAmount(rawAvailable.toString(), simpleDecimals)
|
|
21223
21223
|
),
|
|
21224
|
-
rate:
|
|
21224
|
+
rate: rateFor2(token, 0)
|
|
21225
21225
|
}
|
|
21226
21226
|
];
|
|
21227
21227
|
}
|
|
@@ -21238,7 +21238,7 @@ var splitSide = (tokens, rawTotal, rawAvailable, simpleDecimals, shares, rateFor
|
|
|
21238
21238
|
decimals: decimals[i],
|
|
21239
21239
|
amount: Number(parseRawAmount(amountRaw.toString(), decimals[i])),
|
|
21240
21240
|
available: Number(parseRawAmount(availableRaw.toString(), decimals[i])),
|
|
21241
|
-
rate:
|
|
21241
|
+
rate: rateFor2(token, i)
|
|
21242
21242
|
});
|
|
21243
21243
|
}
|
|
21244
21244
|
return legs;
|
|
@@ -26633,7 +26633,7 @@ var fetchInverseChainWide = async (chainId, config, multicallRetry) => {
|
|
|
26633
26633
|
return { dbrPriceDola: null, replenishmentPriceBps: null };
|
|
26634
26634
|
}
|
|
26635
26635
|
};
|
|
26636
|
-
var resolveDbrPriceDola = async (onChain,
|
|
26636
|
+
var resolveDbrPriceDola = async (onChain, snapshot2) => {
|
|
26637
26637
|
if (onChain !== null) return onChain;
|
|
26638
26638
|
try {
|
|
26639
26639
|
const d = await fetchJson(DBR_URL);
|
|
@@ -26641,7 +26641,7 @@ var resolveDbrPriceDola = async (onChain, snapshot) => {
|
|
|
26641
26641
|
if (Number.isFinite(p) && p > 0) return p;
|
|
26642
26642
|
} catch {
|
|
26643
26643
|
}
|
|
26644
|
-
const snap = Number(
|
|
26644
|
+
const snap = Number(snapshot2);
|
|
26645
26645
|
return Number.isFinite(snap) && snap > 0 ? snap : null;
|
|
26646
26646
|
};
|
|
26647
26647
|
async function fetchInverseMarkets(lender, chainId, multicallRetry = multicallRetryUniversal) {
|
|
@@ -57411,6 +57411,123 @@ var SUPERFORM_ENTRIES = (() => {
|
|
|
57411
57411
|
}
|
|
57412
57412
|
return out;
|
|
57413
57413
|
})();
|
|
57414
|
+
var HISTORY_URL2 = "https://api.ipor.io/v2/fusion/vault-history";
|
|
57415
|
+
var TIMEOUT_MS5 = 1e4;
|
|
57416
|
+
var MIN_WINDOW_SECONDS2 = 7 * 86400;
|
|
57417
|
+
var SECONDS_PER_YEAR16 = 365 * 86400;
|
|
57418
|
+
var iporFusionYieldKey = (chainId, vault) => `IPOR Fusion::${chainId}::${vault.toLowerCase()}`;
|
|
57419
|
+
var realizedAprFromHistory = (points) => {
|
|
57420
|
+
const usable = points.map((p) => ({
|
|
57421
|
+
t: p.blockTimestamp ? Date.parse(p.blockTimestamp) / 1e3 : NaN,
|
|
57422
|
+
r: Number(p.assetsToSharesRatio)
|
|
57423
|
+
})).filter((p) => Number.isFinite(p.t) && Number.isFinite(p.r) && p.r > 0).sort((a, b) => a.t - b.t);
|
|
57424
|
+
if (usable.length < 2) return void 0;
|
|
57425
|
+
const first = usable[0];
|
|
57426
|
+
const last = usable[usable.length - 1];
|
|
57427
|
+
const dt = last.t - first.t;
|
|
57428
|
+
if (dt < MIN_WINDOW_SECONDS2) return void 0;
|
|
57429
|
+
return (last.r / first.r - 1) * (SECONDS_PER_YEAR16 / dt) * 100;
|
|
57430
|
+
};
|
|
57431
|
+
var fetchHistory = async (chainId, vault) => {
|
|
57432
|
+
const res = await fetch(`${HISTORY_URL2}/${chainId}/${vault}-30d`, {
|
|
57433
|
+
headers: { Accept: "application/json" },
|
|
57434
|
+
signal: AbortSignal.timeout(TIMEOUT_MS5)
|
|
57435
|
+
});
|
|
57436
|
+
if (!res.ok) throw new Error(`ipor-fusion ${vault} \u2192 HTTP ${res.status}`);
|
|
57437
|
+
const body = await res.json();
|
|
57438
|
+
if (!Array.isArray(body?.history))
|
|
57439
|
+
throw new Error(`ipor-fusion ${vault}: no history[]`);
|
|
57440
|
+
return body.history;
|
|
57441
|
+
};
|
|
57442
|
+
var iporFusionFetcher = {
|
|
57443
|
+
label: "IPOR Fusion",
|
|
57444
|
+
fetch: async () => {
|
|
57445
|
+
const out = {};
|
|
57446
|
+
const results = await Promise.allSettled(
|
|
57447
|
+
IPOR_FUSION_VAULTS.map(async (v) => {
|
|
57448
|
+
const apr = realizedAprFromHistory(
|
|
57449
|
+
await fetchHistory(v.chainId, v.vault)
|
|
57450
|
+
);
|
|
57451
|
+
if (apr !== void 0) out[iporFusionYieldKey(v.chainId, v.vault)] = apr;
|
|
57452
|
+
})
|
|
57453
|
+
);
|
|
57454
|
+
const failed = results.filter((r) => r.status === "rejected");
|
|
57455
|
+
if (failed.length > 0)
|
|
57456
|
+
console.warn(
|
|
57457
|
+
`[ipor-fusion] ${failed.length}/${results.length} vault histories failed:`,
|
|
57458
|
+
failed[0].reason
|
|
57459
|
+
);
|
|
57460
|
+
return out;
|
|
57461
|
+
}
|
|
57462
|
+
};
|
|
57463
|
+
|
|
57464
|
+
// src/vaults/savings/registryIporFusion.ts
|
|
57465
|
+
var exitProse = (v, asset) => {
|
|
57466
|
+
const instant = v.instantFuses ? "Instant withdrawals first pull the money out of the lending markets, so they are bounded by those markets' liquidity." : `Instant withdrawals are paid only from idle ${asset}, a few percent of the vault at most, less a fee.`;
|
|
57467
|
+
if (v.withdrawWindowSeconds === 0)
|
|
57468
|
+
return `${instant} There is no queued exit on this vault.`;
|
|
57469
|
+
const window = v.withdrawWindowSeconds % 86400 === 0 ? `${v.withdrawWindowSeconds / 86400 === 1 ? "24 hours" : `${v.withdrawWindowSeconds / 86400} days`}` : `${Math.round(v.withdrawWindowSeconds / 3600)} hours`;
|
|
57470
|
+
return `${instant} Or request a withdrawal: the fee is taken at request, and IPOR's operator must release it and you must claim within ${window} of asking, or it lapses.`;
|
|
57471
|
+
};
|
|
57472
|
+
var IPOR_FUSION_PROSE = {
|
|
57473
|
+
"1:0xb9e806e8f2d94c015ffefa90cd24ecce18f1663c": `Measured in WETH: posts wstETH in a Liquity V2 trove, borrows BOLD and earns on it in Curve and Uniswap V4 pools. The debt is in dollars, so the share price moves with ETH as well as the carry, and the trove can be liquidated or redeemed.`,
|
|
57474
|
+
"1:0xb8a451107a9f87fde481d4d686247d6e43ed715e": `An stETH loop: stETH is collateral on Spark, Aave and Morpho with WETH borrowed against it, about nine times over. A borrow rate above the staking yield or an stETH depeg cuts the share price, and the loans can be liquidated.`,
|
|
57475
|
+
"1:0xb0f56bb0bf13ee05fef8cd2d8df5ffdfcac7a74f": `TAU's infiniFi vault: USDC becomes staked siUSD held as Morpho collateral, set up to borrow and loop for infiniFi points. It earns siUSD's rate, with the borrow cost and liquidation risk whenever it is levered.`,
|
|
57476
|
+
"1:0xf8f226da66244f89e70c5b5d1a5c5b0d505eb1d8": `A USDC vault holding wsBTCD, a Bitcoin-backed dollar, as Morpho collateral and BORROWING WBTC against it \u2014 short Bitcoin: the share price falls when BTC rises, and the loan can be liquidated.`,
|
|
57477
|
+
"1:0x7659fc26bf3a63e8133bbecb7e16acd48ee8e292": `Measured in WBTC: posts WBTC on Morpho, borrows USDC and deposits it into another Fusion vault (Bitcoin Dollar USDC). The debt is in dollars, so the share price moves with BTC as well as the carry, and the loan can be liquidated.`,
|
|
57478
|
+
"1:0xe9385eff3f937fcb0f0085da9a3f53d6c2b4fb5f": `A Reservoir srUSD loop: wsrUSD is Morpho collateral with USDC borrowed against it, about five times over. A USDC rate above srUSD's or an srUSD/rUSD depeg cuts the share price, and the loan can be liquidated.`,
|
|
57479
|
+
"8453:0x17d0f109ee895bad0b68aa104aa72bd0b003ad8e": `A WETH lending optimizer on Base: supplies lending markets (Euler today) and moves between them for the best rate, with no borrowing.`,
|
|
57480
|
+
"8453:0xe883426b4fc84a7f5cc86415cabbef43e73a4cc8": `TAU's cbETH loop on Base: cbETH is collateral on Aave, Morpho and Euler with WETH borrowed against it, about nine times over. A borrow rate above the staking yield or a cbETH depeg cuts the share price, and the loans can be liquidated.`,
|
|
57481
|
+
"8453:0x7872893e528fe2c0829e405960db5b742112aa97": `Harvest's Autopilot WETH vault on Base: WETH is spread across Harvest's lending vaults for the best supply rate, with no borrowing.`,
|
|
57482
|
+
"8453:0x5900c3b72458f12967dc1bef35b92d271f5cdbc1": `A cbETH loop on Base measured in WETH: cbETH is collateral on Aave, Morpho and Euler with WETH borrowed, about six times over. A borrow rate above the staking yield or a cbETH depeg cuts the share price; loans can be liquidated.`,
|
|
57483
|
+
"8453:0xd46a3c2d958d0a2cb098d48c48dc19fe3a710f37": `A USDC lending optimizer on Base: supplies Morpho markets and moves between them for the best rate, with no borrowing.`,
|
|
57484
|
+
"8453:0x0d877dc7c8fa3ad980dfdb18b48ec9f8768359c4": `Harvest's Autopilot USDC vault on Base: USDC is spread across Harvest's lending vaults for the best supply rate, with no borrowing.`
|
|
57485
|
+
};
|
|
57486
|
+
var IPOR_FUSION_ASSET = {
|
|
57487
|
+
"1:0xb9e806e8f2d94c015ffefa90cd24ecce18f1663c": "WETH",
|
|
57488
|
+
"1:0xb8a451107a9f87fde481d4d686247d6e43ed715e": "stETH",
|
|
57489
|
+
"1:0xb0f56bb0bf13ee05fef8cd2d8df5ffdfcac7a74f": "USDC",
|
|
57490
|
+
"1:0x7659fc26bf3a63e8133bbecb7e16acd48ee8e292": "WBTC",
|
|
57491
|
+
"1:0xe9385eff3f937fcb0f0085da9a3f53d6c2b4fb5f": "rUSD",
|
|
57492
|
+
"8453:0xe883426b4fc84a7f5cc86415cabbef43e73a4cc8": "cbETH",
|
|
57493
|
+
"8453:0x5900c3b72458f12967dc1bef35b92d271f5cdbc1": "WETH"
|
|
57494
|
+
};
|
|
57495
|
+
IPOR_FUSION_VAULTS.filter(
|
|
57496
|
+
(v) => v.strategy !== "lending"
|
|
57497
|
+
).map((v) => `${v.chainId}-${v.vault}`);
|
|
57498
|
+
var toEntry2 = (v) => ({
|
|
57499
|
+
reader: "ipor-fusion",
|
|
57500
|
+
address: v.vault,
|
|
57501
|
+
underlying: v.underlying,
|
|
57502
|
+
symbol: v.symbol,
|
|
57503
|
+
label: v.name,
|
|
57504
|
+
brand: v.brand,
|
|
57505
|
+
description: IPOR_FUSION_PROSE[`${v.chainId}:${v.vault}`] ? `${IPOR_FUSION_PROSE[`${v.chainId}:${v.vault}`]} ${exitProse(v, IPOR_FUSION_ASSET[`${v.chainId}:${v.vault}`] ?? "cash")}` : "",
|
|
57506
|
+
decimals: v.decimals,
|
|
57507
|
+
underlyingDecimals: v.underlyingDecimals,
|
|
57508
|
+
isRebasing: false,
|
|
57509
|
+
isMintable: true,
|
|
57510
|
+
// A zero withdraw window (both Autopilot vaults) makes every request
|
|
57511
|
+
// unclaimable: those rows have the instant leg only.
|
|
57512
|
+
withdrawalMode: v.withdrawWindowSeconds === 0 ? "instant-capped" : "fee-or-queued",
|
|
57513
|
+
feeScheduleCheckedAt: "2026-10-30",
|
|
57514
|
+
iporFusion: {
|
|
57515
|
+
accessManager: v.accessManager,
|
|
57516
|
+
withdrawManager: v.withdrawManager,
|
|
57517
|
+
instantFuses: v.instantFuses
|
|
57518
|
+
},
|
|
57519
|
+
withdrawQueue: v.withdrawManager,
|
|
57520
|
+
yieldFetcher: iporFusionFetcher,
|
|
57521
|
+
yieldKey: iporFusionYieldKey(v.chainId, v.vault)
|
|
57522
|
+
});
|
|
57523
|
+
var IPOR_FUSION_ENTRIES = (() => {
|
|
57524
|
+
const out = {};
|
|
57525
|
+
for (const v of IPOR_FUSION_VAULTS) {
|
|
57526
|
+
if (!out[v.chainId]) out[v.chainId] = [];
|
|
57527
|
+
out[v.chainId].push(toEntry2(v));
|
|
57528
|
+
}
|
|
57529
|
+
return out;
|
|
57530
|
+
})();
|
|
57414
57531
|
var L2SD_YIELD_KEYS = {
|
|
57415
57532
|
limUSD: "limUSD::LIMUSD",
|
|
57416
57533
|
haHYPE: "haHYPE::haHYPE",
|
|
@@ -57850,7 +57967,7 @@ var L2SD_ENTRIES = {
|
|
|
57850
57967
|
|
|
57851
57968
|
// src/yields/intrinsic/fetchers/royco.ts
|
|
57852
57969
|
var ROYCO_POOLS_URL = "https://vault.api.royco.org/api/v1/defillama/pools";
|
|
57853
|
-
var
|
|
57970
|
+
var TIMEOUT_MS6 = 8e3;
|
|
57854
57971
|
var ROY_ST_APYUSD_KEY = "Royco Senior Tranche apyUSD::ROY-ST-apyUSD";
|
|
57855
57972
|
var ROY_JT_APYUSD_KEY = "Royco Junior Tranche apyUSD::ROY-JT-apyUSD";
|
|
57856
57973
|
var ROYCO_POOLS = {
|
|
@@ -57874,7 +57991,7 @@ var roycoFetcher = {
|
|
|
57874
57991
|
fetch: async () => {
|
|
57875
57992
|
const res = await fetch(ROYCO_POOLS_URL, {
|
|
57876
57993
|
headers: { accept: "application/json" },
|
|
57877
|
-
signal: AbortSignal.timeout(
|
|
57994
|
+
signal: AbortSignal.timeout(TIMEOUT_MS6)
|
|
57878
57995
|
});
|
|
57879
57996
|
if (!res.ok) throw new Error(`Royco pools HTTP ${res.status}`);
|
|
57880
57997
|
const data = await res.json();
|
|
@@ -59408,7 +59525,7 @@ var ROWS = [
|
|
|
59408
59525
|
)
|
|
59409
59526
|
}
|
|
59410
59527
|
];
|
|
59411
|
-
var
|
|
59528
|
+
var toEntry3 = (r) => ({
|
|
59412
59529
|
reader: "alchemix-transmuter",
|
|
59413
59530
|
address: r.transmuter,
|
|
59414
59531
|
underlying: r.alAsset,
|
|
@@ -59438,7 +59555,7 @@ var toEntry2 = (r) => ({
|
|
|
59438
59555
|
alchemixTransmuter: r.cfg
|
|
59439
59556
|
});
|
|
59440
59557
|
var ALCHEMIX_TRANSMUTER_ENTRIES = ROWS.reduce((out, r) => {
|
|
59441
|
-
(out[r.chainId] ??= []).push(
|
|
59558
|
+
(out[r.chainId] ??= []).push(toEntry3(r));
|
|
59442
59559
|
return out;
|
|
59443
59560
|
}, {});
|
|
59444
59561
|
var CHAIN_ID19 = "1";
|
|
@@ -63567,6 +63684,10 @@ var SAVINGS_REGISTRY = (() => {
|
|
|
63567
63684
|
if (!out[chainId]) out[chainId] = [];
|
|
63568
63685
|
out[chainId].push(...entries);
|
|
63569
63686
|
}
|
|
63687
|
+
for (const [chainId, entries] of Object.entries(IPOR_FUSION_ENTRIES)) {
|
|
63688
|
+
if (!out[chainId]) out[chainId] = [];
|
|
63689
|
+
out[chainId].push(...entries);
|
|
63690
|
+
}
|
|
63570
63691
|
for (const [chainId, entries] of Object.entries(LLAMA_GAP_ENTRIES)) {
|
|
63571
63692
|
if (!out[chainId]) out[chainId] = [];
|
|
63572
63693
|
out[chainId].push(...entries);
|
|
@@ -65556,28 +65677,101 @@ var onycFetcher = {
|
|
|
65556
65677
|
}
|
|
65557
65678
|
};
|
|
65558
65679
|
|
|
65680
|
+
// src/yields/intrinsic/fetchers/perena.ts
|
|
65681
|
+
var PERENA_API = "https://api.perena.org/api";
|
|
65682
|
+
var PERENA_USD_STAR_KEY = "USD Star::USD*";
|
|
65683
|
+
var PERENA_USD_STAR_JUNIOR_KEY = "Junior USD*::USD*-J";
|
|
65684
|
+
var SERIES = [
|
|
65685
|
+
[PERENA_USD_STAR_KEY, "usdstar"],
|
|
65686
|
+
[PERENA_USD_STAR_JUNIOR_KEY, "usdstarJunior"]
|
|
65687
|
+
];
|
|
65688
|
+
var WINDOW_DAYS = 30;
|
|
65689
|
+
var MIN_WINDOW_DAYS2 = 7;
|
|
65690
|
+
var DAY_MS3 = 864e5;
|
|
65691
|
+
var getJson4 = (path) => fetch(`${PERENA_API}/${path}`, {
|
|
65692
|
+
headers: { Accept: "application/json" }
|
|
65693
|
+
}).then((r) => {
|
|
65694
|
+
if (!r.ok) throw new Error(`Perena ${path}: HTTP ${r.status}`);
|
|
65695
|
+
return r.json();
|
|
65696
|
+
});
|
|
65697
|
+
var snapshot = (r) => {
|
|
65698
|
+
const price2 = Number(r?.price);
|
|
65699
|
+
const t = Date.parse(String(r?.timestamp));
|
|
65700
|
+
return Number.isFinite(price2) && price2 > 0 && Number.isFinite(t) ? { price: price2, t } : void 0;
|
|
65701
|
+
};
|
|
65702
|
+
function perenaWindowApr(then, now) {
|
|
65703
|
+
const days = (now.t - then.t) / DAY_MS3;
|
|
65704
|
+
if (days < MIN_WINDOW_DAYS2)
|
|
65705
|
+
throw new Error(`Perena: window too short (${days.toFixed(1)}d)`);
|
|
65706
|
+
const apr = (now.price / then.price - 1) * 365 * 100 / days;
|
|
65707
|
+
if (!Number.isFinite(apr) || Math.abs(apr) > 100)
|
|
65708
|
+
throw new Error(`Perena: implausible rate ${apr}`);
|
|
65709
|
+
return apr;
|
|
65710
|
+
}
|
|
65711
|
+
async function rateFor(series, nowMs) {
|
|
65712
|
+
try {
|
|
65713
|
+
const back = new Date(nowMs - WINDOW_DAYS * DAY_MS3).toISOString();
|
|
65714
|
+
const [then, now] = await Promise.all([
|
|
65715
|
+
getJson4(`${series}/price?time=${encodeURIComponent(back)}`).then(
|
|
65716
|
+
snapshot
|
|
65717
|
+
),
|
|
65718
|
+
getJson4(`${series}/price`).then(snapshot)
|
|
65719
|
+
]);
|
|
65720
|
+
if (!then || !now) throw new Error(`Perena ${series}: no snapshot`);
|
|
65721
|
+
return perenaWindowApr(then, now);
|
|
65722
|
+
} catch (e) {
|
|
65723
|
+
const r = await getJson4(`${series}/apy`);
|
|
65724
|
+
const apr = Number(r?.apy);
|
|
65725
|
+
if (r?.period !== "7d" || !Number.isFinite(apr) || Math.abs(apr) > 100)
|
|
65726
|
+
throw e;
|
|
65727
|
+
return apr;
|
|
65728
|
+
}
|
|
65729
|
+
}
|
|
65730
|
+
var perenaFetcher = {
|
|
65731
|
+
label: "PERENA_USD_STAR",
|
|
65732
|
+
fetch: async () => {
|
|
65733
|
+
const now = Date.now();
|
|
65734
|
+
const out = {};
|
|
65735
|
+
const results = await Promise.allSettled(
|
|
65736
|
+
SERIES.map(([, series]) => rateFor(series, now))
|
|
65737
|
+
);
|
|
65738
|
+
results.forEach((r, i) => {
|
|
65739
|
+
if (r.status === "fulfilled") out[SERIES[i][0]] = r.value;
|
|
65740
|
+
});
|
|
65741
|
+
if (!Object.keys(out).length) {
|
|
65742
|
+
const why = results.find((r) => r.status === "rejected");
|
|
65743
|
+
throw why?.reason ?? new Error("Perena: no rate");
|
|
65744
|
+
}
|
|
65745
|
+
return out;
|
|
65746
|
+
}
|
|
65747
|
+
};
|
|
65748
|
+
|
|
65559
65749
|
// src/yields/intrinsic/fetchers/exponentTranching.ts
|
|
65560
65750
|
var EXPONENT_APP_API = "https://app.exponent.finance/api/tranching-markets";
|
|
65561
|
-
var
|
|
65562
|
-
FvQP1fjox2GPSwkEhENuZisz8UeRURLWf7GYF9n2mURD: "Exponent Senior eHYUSD::srEHYUSD::solana",
|
|
65563
|
-
F17tzaQaFf1x3tC5gQFVvXAF2hcgq1qX6Mc9595zo3FD: "Exponent Senior AUTO::srAUTO::solana",
|
|
65564
|
-
"9J8VvigcjFTkN3jhZH2ieTi2hdGVBVpEXbcA1JDo7QpA": "Exponent Senior ONyc::srONyc::solana",
|
|
65565
|
-
"4tnzVYkaXKwMt7p86wpDzeTyzHSZhj2BvdGwBem7peH5": "Exponent Senior nOPAL::srnOPAL::solana"
|
|
65566
|
-
};
|
|
65751
|
+
var EXPONENT_TOKEN_API = "https://api.exponent.finance/tranching-token";
|
|
65567
65752
|
var EXPONENT_BASE_GROUPS = {
|
|
65568
65753
|
HnnGv3HrSqjRpgdFmx7vQGjntNEoex1SU4e9Lxcxuihz: "Earn Hylo USD::eHYUSD::solana"
|
|
65569
65754
|
};
|
|
65570
|
-
var MAX_PLAUSIBLE_APY2 =
|
|
65571
|
-
function
|
|
65755
|
+
var MAX_PLAUSIBLE_APY2 = 1;
|
|
65756
|
+
function trancheApy(stats, side2) {
|
|
65572
65757
|
const s = stats;
|
|
65573
|
-
|
|
65574
|
-
|
|
65575
|
-
|
|
65758
|
+
const p = side2 === "senior" ? "seniorApy" : "juniorApy";
|
|
65759
|
+
for (const w of ["30d", "7d", "1d"]) {
|
|
65760
|
+
const raw = s?.[`${p}${w}`];
|
|
65761
|
+
if (raw == null) continue;
|
|
65762
|
+
const v = Number(raw);
|
|
65763
|
+
if (Number.isFinite(v) && v > -MAX_PLAUSIBLE_APY2 && v < MAX_PLAUSIBLE_APY2)
|
|
65576
65764
|
return v;
|
|
65577
65765
|
}
|
|
65578
65766
|
return void 0;
|
|
65579
65767
|
}
|
|
65580
|
-
|
|
65768
|
+
function trancheGroup(meta) {
|
|
65769
|
+
const m = meta;
|
|
65770
|
+
const name = typeof m?.name === "string" ? m.name.trim() : "";
|
|
65771
|
+
const symbol = typeof m?.symbol === "string" ? m.symbol.trim() : "";
|
|
65772
|
+
return name && symbol ? `${name}::${symbol}::solana` : void 0;
|
|
65773
|
+
}
|
|
65774
|
+
var getJson5 = async (url) => {
|
|
65581
65775
|
const res = await fetch(url, {
|
|
65582
65776
|
headers: { accept: "application/json" },
|
|
65583
65777
|
signal: AbortSignal.timeout(8e3)
|
|
@@ -65585,30 +65779,46 @@ var getJson4 = async (url) => {
|
|
|
65585
65779
|
if (!res.ok) throw new Error(`Exponent HTTP ${res.status} for ${url}`);
|
|
65586
65780
|
return res.json();
|
|
65587
65781
|
};
|
|
65588
|
-
var
|
|
65589
|
-
label: "
|
|
65782
|
+
var exponentTrancheFetcher = {
|
|
65783
|
+
label: "EXPONENT_TRANCHING",
|
|
65590
65784
|
fetch: async () => {
|
|
65591
|
-
const markets = await
|
|
65592
|
-
const
|
|
65593
|
-
(m) => m.address && m.mintLpSenior && EXPONENT_SENIOR_GROUPS[m.mintLpSenior]
|
|
65594
|
-
);
|
|
65785
|
+
const markets = await getJson5(EXPONENT_APP_API);
|
|
65786
|
+
const list = Array.isArray(markets) ? markets : [];
|
|
65595
65787
|
const out = {};
|
|
65596
|
-
for (const m of
|
|
65788
|
+
for (const m of list) {
|
|
65597
65789
|
const group = m.mintBase ? EXPONENT_BASE_GROUPS[m.mintBase] : void 0;
|
|
65598
65790
|
const apy = Number(m.underlyingApy7d);
|
|
65599
65791
|
if (group && m.underlyingApy7d != null && apy > 0 && apy < MAX_PLAUSIBLE_APY2)
|
|
65600
65792
|
out[group] = apyToAprPercent(apy * 100);
|
|
65601
65793
|
}
|
|
65602
65794
|
await Promise.all(
|
|
65603
|
-
|
|
65604
|
-
const
|
|
65795
|
+
list.filter((m) => m.address).map(async (m) => {
|
|
65796
|
+
const stats = await getJson5(
|
|
65797
|
+
`${EXPONENT_APP_API}/${m.address}/stats`
|
|
65798
|
+
).catch((e) => {
|
|
65605
65799
|
console.warn(`[exponent] ${m.address} stats: ${e.message}`);
|
|
65606
65800
|
return void 0;
|
|
65607
65801
|
});
|
|
65608
|
-
if (
|
|
65609
|
-
|
|
65610
|
-
|
|
65611
|
-
|
|
65802
|
+
if (!stats) return;
|
|
65803
|
+
await Promise.all(
|
|
65804
|
+
[
|
|
65805
|
+
["senior", m.mintLpSenior],
|
|
65806
|
+
["junior", m.mintLpJunior]
|
|
65807
|
+
].map(async ([side2, mint]) => {
|
|
65808
|
+
if (!mint) return;
|
|
65809
|
+
const apy = trancheApy(stats, side2);
|
|
65810
|
+
if (apy === void 0) return;
|
|
65811
|
+
const group = trancheGroup(
|
|
65812
|
+
await getJson5(`${EXPONENT_TOKEN_API}/${mint}`).catch(
|
|
65813
|
+
(e) => {
|
|
65814
|
+
console.warn(`[exponent] ${mint} metadata: ${e.message}`);
|
|
65815
|
+
return void 0;
|
|
65816
|
+
}
|
|
65817
|
+
)
|
|
65818
|
+
);
|
|
65819
|
+
if (group) out[group] = apyToAprPercent(apy * 100);
|
|
65820
|
+
})
|
|
65821
|
+
);
|
|
65612
65822
|
})
|
|
65613
65823
|
);
|
|
65614
65824
|
return out;
|
|
@@ -65617,7 +65827,7 @@ var exponentSeniorFetcher = {
|
|
|
65617
65827
|
|
|
65618
65828
|
// src/yields/intrinsic/fetchers/loopscaleVaultShares.ts
|
|
65619
65829
|
var LOOPSCALE_VAULTS_INFO = "https://tars.loopscale.com/v1/markets/lending_vaults/info";
|
|
65620
|
-
var
|
|
65830
|
+
var SECONDS_PER_YEAR17 = 31536e3;
|
|
65621
65831
|
var CBPS = 1e6;
|
|
65622
65832
|
var MAX_PLAUSIBLE_APR_PERCENT = 50;
|
|
65623
65833
|
var LOOPSCALE_SHARE_ROSTER = [
|
|
@@ -65634,7 +65844,7 @@ function loopscaleShareApr(v, nowSec9 = Math.floor(Date.now() / 1e3)) {
|
|
|
65634
65844
|
const tvlRaw = n(s.tokenBalance) + n(s.externalYieldAmount) + n(s.currentDeployedAmount) + n(s.outstandingInterestAmount);
|
|
65635
65845
|
if (!(tvlRaw > 0)) return void 0;
|
|
65636
65846
|
const extApr = n(v.vaultStrategy?.externalYieldInfo?.apy) / CBPS;
|
|
65637
|
-
const gross = (n(s.interestPerSecond) *
|
|
65847
|
+
const gross = (n(s.interestPerSecond) * SECONDS_PER_YEAR17 + extApr * n(s.externalYieldAmount)) / tvlRaw * 100;
|
|
65638
65848
|
const net = gross * (1 - n(s.interestFee) / CBPS);
|
|
65639
65849
|
const principal = s.principalMint ?? v.vault?.principalMint;
|
|
65640
65850
|
let stream = 0;
|
|
@@ -65643,7 +65853,7 @@ function loopscaleShareApr(v, nowSec9 = Math.floor(Date.now() / 1e3)) {
|
|
|
65643
65853
|
const start = n(r.rewardStartTime);
|
|
65644
65854
|
const end = n(r.rewardEndTime);
|
|
65645
65855
|
if (!(nowSec9 >= start && nowSec9 <= end)) continue;
|
|
65646
|
-
stream += n(r.emissionsPerSecond) *
|
|
65856
|
+
stream += n(r.emissionsPerSecond) * SECONDS_PER_YEAR17 / tvlRaw * 100;
|
|
65647
65857
|
}
|
|
65648
65858
|
const apr = net + stream;
|
|
65649
65859
|
if (!Number.isFinite(apr) || apr < 0 || apr > MAX_PLAUSIBLE_APR_PERCENT)
|
|
@@ -65908,7 +66118,7 @@ var getGmxApiHost = (chainId) => GMX_API_HOSTS[chainId];
|
|
|
65908
66118
|
|
|
65909
66119
|
// src/vaults/gmx/api.ts
|
|
65910
66120
|
var GMX_DEFAULT_APY_PERIOD = "1d";
|
|
65911
|
-
var
|
|
66121
|
+
var getJson6 = async (url) => {
|
|
65912
66122
|
const res = await fetch(url, {
|
|
65913
66123
|
method: "GET",
|
|
65914
66124
|
headers: { Accept: "application/json" }
|
|
@@ -65920,12 +66130,12 @@ var fetchGmxRawData = async (chainId, period, apiUrlOverride) => {
|
|
|
65920
66130
|
const host = apiUrlOverride ?? getGmxApiHost(chainId);
|
|
65921
66131
|
if (!host) throw new Error(`GMX not supported on chain ${chainId}`);
|
|
65922
66132
|
const [apy, marketsRes, glvsRes, tokensRes] = await Promise.all([
|
|
65923
|
-
|
|
65924
|
-
|
|
66133
|
+
getJson6(`${host}/apy?period=${encodeURIComponent(period)}`),
|
|
66134
|
+
getJson6(`${host}/markets`).catch(() => ({
|
|
65925
66135
|
markets: []
|
|
65926
66136
|
})),
|
|
65927
|
-
|
|
65928
|
-
|
|
66137
|
+
getJson6(`${host}/glvs`).catch(() => ({ glvs: [] })),
|
|
66138
|
+
getJson6(`${host}/tokens`).catch(() => ({
|
|
65929
66139
|
tokens: []
|
|
65930
66140
|
}))
|
|
65931
66141
|
]);
|
|
@@ -66206,7 +66416,7 @@ function distressedEntries(chainId, tokenList, raw, usdPrices) {
|
|
|
66206
66416
|
var PENDLE_PT_PRICES_URL = "https://api-v2.pendle.finance/core/v1/prices/assets?type=PT";
|
|
66207
66417
|
var PENDLE_PRICE_KEY = "PENDLE";
|
|
66208
66418
|
var CACHE_MS = 6e4;
|
|
66209
|
-
var
|
|
66419
|
+
var TIMEOUT_MS7 = 1e4;
|
|
66210
66420
|
var cached = {
|
|
66211
66421
|
at: 0,
|
|
66212
66422
|
prices: Promise.resolve(null)
|
|
@@ -66217,7 +66427,7 @@ function fetchPendlePtPricesRaw() {
|
|
|
66217
66427
|
const prices = (async () => {
|
|
66218
66428
|
try {
|
|
66219
66429
|
const res = await fetch(PENDLE_PT_PRICES_URL, {
|
|
66220
|
-
signal: AbortSignal.timeout(
|
|
66430
|
+
signal: AbortSignal.timeout(TIMEOUT_MS7)
|
|
66221
66431
|
});
|
|
66222
66432
|
if (!res.ok) throw new Error(`HTTP ${res.status}`);
|
|
66223
66433
|
const data = await res.json();
|
|
@@ -66259,9 +66469,9 @@ function fetchPendleUnderlyingPricesRaw() {
|
|
|
66259
66469
|
const prices = (async () => {
|
|
66260
66470
|
try {
|
|
66261
66471
|
const [mRes, pRes] = await Promise.all([
|
|
66262
|
-
fetch(PENDLE_MARKETS_URL, { signal: AbortSignal.timeout(
|
|
66472
|
+
fetch(PENDLE_MARKETS_URL, { signal: AbortSignal.timeout(TIMEOUT_MS7) }),
|
|
66263
66473
|
fetch(PENDLE_ALL_PRICES_URL, {
|
|
66264
|
-
signal: AbortSignal.timeout(
|
|
66474
|
+
signal: AbortSignal.timeout(TIMEOUT_MS7)
|
|
66265
66475
|
})
|
|
66266
66476
|
]);
|
|
66267
66477
|
if (!mRes.ok) throw new Error(`markets HTTP ${mRes.status}`);
|
|
@@ -66428,7 +66638,7 @@ function fetchPendleAssetPricesRaw() {
|
|
|
66428
66638
|
const prices = (async () => {
|
|
66429
66639
|
try {
|
|
66430
66640
|
const res = await fetch(PENDLE_ALL_PRICES_URL, {
|
|
66431
|
-
signal: AbortSignal.timeout(
|
|
66641
|
+
signal: AbortSignal.timeout(TIMEOUT_MS7)
|
|
66432
66642
|
});
|
|
66433
66643
|
if (!res.ok) throw new Error(`HTTP ${res.status}`);
|
|
66434
66644
|
const data = await res.json();
|
|
@@ -67209,6 +67419,9 @@ var LENDING_ONLY_FETCHERS = [
|
|
|
67209
67419
|
// ONyc (OnRe reinsurance, Solana): NAV-accruing collateral on Loopscale /
|
|
67210
67420
|
// Kamino / Jupiter Lend, no vault row.
|
|
67211
67421
|
onycFetcher,
|
|
67422
|
+
// USD* / USD*-J (Perena, Solana): the vault's share price, collateral on
|
|
67423
|
+
// Project 0; the earn rows live in margin-fetcher-sol (`vaults/perena`).
|
|
67424
|
+
perenaFetcher,
|
|
67212
67425
|
// INF (Sanctum Infinity, Solana): the SOL-value accrual of the multi-LST
|
|
67213
67426
|
// pool, collateral on Kamino / Jupiter Lend / Project 0 / Save. Its earn
|
|
67214
67427
|
// row lives in margin-fetcher-sol, so it is lending-only here.
|
|
@@ -67216,9 +67429,11 @@ var LENDING_ONLY_FETCHERS = [
|
|
|
67216
67429
|
// ezSOL (Renzo, Solana): a Jito Restaking VRT over JitoSOL, Kamino
|
|
67217
67430
|
// collateral. Its earn row lives in margin-fetcher-sol (`jito-vault`).
|
|
67218
67431
|
ezsolFetcher,
|
|
67219
|
-
// Exponent
|
|
67220
|
-
//
|
|
67221
|
-
|
|
67432
|
+
// Exponent tranching (Solana): EVERY senior AND junior LP of the roster
|
|
67433
|
+
// (srEHYUSD / jrEHYUSD …), keyed from Exponent's own LP metadata. The
|
|
67434
|
+
// seniors are Loopscale loop collateral; the earn rows live in
|
|
67435
|
+
// margin-fetcher-sol (`exponent-tranching`).
|
|
67436
|
+
exponentTrancheFetcher,
|
|
67222
67437
|
// DAWN sUSD.infra (Solana): a Loopscale vault LP that circulates as a token
|
|
67223
67438
|
// (Exponent PT underlying) — net interest + the USD.infra-paid stream.
|
|
67224
67439
|
loopscaleVaultSharesFetcher,
|
|
@@ -67888,7 +68103,7 @@ var DLEND_POOLS = [
|
|
|
67888
68103
|
}
|
|
67889
68104
|
];
|
|
67890
68105
|
var ZERO_ADDRESS8 = "0x0000000000000000000000000000000000000000";
|
|
67891
|
-
var
|
|
68106
|
+
var SECONDS_PER_YEAR18 = 31536e3;
|
|
67892
68107
|
var ABI2 = [
|
|
67893
68108
|
{
|
|
67894
68109
|
name: "getReservesList",
|
|
@@ -68029,7 +68244,7 @@ function rebateApr(params) {
|
|
|
68029
68244
|
if (nowSeconds2 >= Number(distributionEnd)) return 0;
|
|
68030
68245
|
if (emissionPerSecond <= 0n || balanceTotalSupply <= 0n) return 0;
|
|
68031
68246
|
if (!(rewardPrice > 0) || !(assetPrice > 0)) return 0;
|
|
68032
|
-
const rewardsPerYearUsd = scale(emissionPerSecond, rewardDecimals) *
|
|
68247
|
+
const rewardsPerYearUsd = scale(emissionPerSecond, rewardDecimals) * SECONDS_PER_YEAR18 * rewardPrice;
|
|
68033
68248
|
const baseUsd = scale(balanceTotalSupply, balanceDecimals) * assetPrice;
|
|
68034
68249
|
if (!(baseUsd > 0)) return 0;
|
|
68035
68250
|
return rewardsPerYearUsd / baseUsd * 100;
|
|
@@ -68217,7 +68432,7 @@ var dtrinityRebateRewardFetcher = {
|
|
|
68217
68432
|
return { byLender: merged };
|
|
68218
68433
|
}
|
|
68219
68434
|
};
|
|
68220
|
-
var
|
|
68435
|
+
var SECONDS_PER_YEAR19 = 31536e3;
|
|
68221
68436
|
var MAX_EPOCH_AGE_SECONDS = 7 * 86400;
|
|
68222
68437
|
var EPOCH_LOOKBACK = 8;
|
|
68223
68438
|
var FT_DECIMALS = 18;
|
|
@@ -68302,7 +68517,7 @@ function ftEmissionApr(params) {
|
|
|
68302
68517
|
const ftUsd = Number(ft) / 10 ** FT_DECIMALS * ftPriceUsd;
|
|
68303
68518
|
const usdSeconds = Number(supplyTime) / 10 ** assetDecimals * assetPriceUsd;
|
|
68304
68519
|
if (!(usdSeconds > 0)) return 0;
|
|
68305
|
-
return ftUsd / usdSeconds *
|
|
68520
|
+
return ftUsd / usdSeconds * SECONDS_PER_YEAR19 * 100;
|
|
68306
68521
|
}
|
|
68307
68522
|
async function rosterFor(chainId) {
|
|
68308
68523
|
const fromMeta = flyingTulipAssetsFor(LENDER2, chainId)?.assets ?? [];
|
|
@@ -68527,7 +68742,7 @@ var num5 = (v) => {
|
|
|
68527
68742
|
const n = Number(v);
|
|
68528
68743
|
return Number.isFinite(n) ? n : 0;
|
|
68529
68744
|
};
|
|
68530
|
-
async function
|
|
68745
|
+
async function getJson7(path, fetchImpl) {
|
|
68531
68746
|
const res = await fetchImpl(`${LISTA_API}${path}`, {
|
|
68532
68747
|
headers: { accept: "application/json" },
|
|
68533
68748
|
signal: AbortSignal.timeout(8e3)
|
|
@@ -68542,7 +68757,7 @@ async function getPaged(path, fetchImpl) {
|
|
|
68542
68757
|
const out = [];
|
|
68543
68758
|
for (let page = 1; page <= MAX_PAGES2; page++) {
|
|
68544
68759
|
const sep = path.includes("?") ? "&" : "?";
|
|
68545
|
-
const data = await
|
|
68760
|
+
const data = await getJson7(
|
|
68546
68761
|
`${path}${sep}page=${page}&pageSize=${PAGE_SIZE2}`,
|
|
68547
68762
|
fetchImpl
|
|
68548
68763
|
);
|
|
@@ -68553,7 +68768,7 @@ async function getPaged(path, fetchImpl) {
|
|
|
68553
68768
|
return out;
|
|
68554
68769
|
}
|
|
68555
68770
|
async function fetchListaRewardTokens(fetchImpl = fetch) {
|
|
68556
|
-
const data = await
|
|
68771
|
+
const data = await getJson7("/api/moolah/emission/rewardTokens", fetchImpl);
|
|
68557
68772
|
const out = {};
|
|
68558
68773
|
for (const t of Array.isArray(data) ? data : [])
|
|
68559
68774
|
if (t?.symbol && t?.token)
|
|
@@ -68739,7 +68954,7 @@ var listaEmissionRewardFetcher = {
|
|
|
68739
68954
|
return { byLender: merged };
|
|
68740
68955
|
}
|
|
68741
68956
|
};
|
|
68742
|
-
var
|
|
68957
|
+
var SECONDS_PER_YEAR20 = 31536e3;
|
|
68743
68958
|
var WAD17 = 10n ** 18n;
|
|
68744
68959
|
var ZERO6 = "0x0000000000000000000000000000000000000000";
|
|
68745
68960
|
var UNBOOSTED_FACTOR = 0.4;
|
|
@@ -68847,7 +69062,7 @@ function crvGaugeApr(params) {
|
|
|
68847
69062
|
return 0;
|
|
68848
69063
|
}
|
|
68849
69064
|
if (!(crvPriceUsd > 0) || !(assetPriceUsd > 0)) return 0;
|
|
68850
|
-
const crvPerYear = scale2(inflationRate, 18) * scale2(relativeWeight, 18) *
|
|
69065
|
+
const crvPerYear = scale2(inflationRate, 18) * scale2(relativeWeight, 18) * SECONDS_PER_YEAR20;
|
|
68851
69066
|
const stakedUsd = scale2(workingSupply, 18) * scale2(pricePerShare, 18) * assetPriceUsd;
|
|
68852
69067
|
if (!(stakedUsd > 0)) return 0;
|
|
68853
69068
|
return crvPerYear * crvPriceUsd / stakedUsd * 100 * UNBOOSTED_FACTOR;
|
|
@@ -68866,7 +69081,7 @@ function extraRewardApr(params) {
|
|
|
68866
69081
|
if (nowSeconds2 >= Number(periodFinish)) return 0;
|
|
68867
69082
|
if (rate <= 0n || totalSupply <= 0n) return 0;
|
|
68868
69083
|
if (!(rewardPriceUsd > 0) || !(assetPriceUsd > 0)) return 0;
|
|
68869
|
-
const rewardPerYearUsd = scale2(rate, rewardDecimals) *
|
|
69084
|
+
const rewardPerYearUsd = scale2(rate, rewardDecimals) * SECONDS_PER_YEAR20 * rewardPriceUsd;
|
|
68870
69085
|
const stakedUsd = scale2(totalSupply, 18) * scale2(pricePerShare, 18) * assetPriceUsd;
|
|
68871
69086
|
if (!(stakedUsd > 0)) return 0;
|
|
68872
69087
|
return rewardPerYearUsd / stakedUsd * 100;
|
|
@@ -69929,7 +70144,7 @@ async function markClaimSupport2(account, rewards, opts) {
|
|
|
69929
70144
|
}
|
|
69930
70145
|
var MERKL_API = "https://api.merkl.xyz/v4";
|
|
69931
70146
|
var MERKL_DISTRIBUTOR = "0x3ef3d8ba38ebe18db133cec108f4d14ce00dd9ae";
|
|
69932
|
-
var
|
|
70147
|
+
var TIMEOUT_MS8 = 8e3;
|
|
69933
70148
|
var OPP_CONCURRENCY = 8;
|
|
69934
70149
|
var ROOT_ABI = [
|
|
69935
70150
|
{
|
|
@@ -69952,7 +70167,7 @@ function fetchOpportunity(id, f) {
|
|
|
69952
70167
|
let p = oppCache2.get(id);
|
|
69953
70168
|
if (!p) {
|
|
69954
70169
|
p = f(`${MERKL_API}/opportunities/${id}`, {
|
|
69955
|
-
signal: AbortSignal.timeout(
|
|
70170
|
+
signal: AbortSignal.timeout(TIMEOUT_MS8)
|
|
69956
70171
|
}).then((r) => r.ok ? r.json() : void 0).catch(() => void 0);
|
|
69957
70172
|
p.then((o) => {
|
|
69958
70173
|
if (!o) oppCache2.delete(id);
|
|
@@ -69983,7 +70198,7 @@ async function fetchMerklUserRewards(account, chainIds, resolve, opts = {}) {
|
|
|
69983
70198
|
try {
|
|
69984
70199
|
const q = chainIds.map((c) => `chainId=${encodeURIComponent(c)}`).join("&");
|
|
69985
70200
|
const res = await f(`${MERKL_API}/users/${account}/rewards?${q}`, {
|
|
69986
|
-
signal: AbortSignal.timeout(
|
|
70201
|
+
signal: AbortSignal.timeout(TIMEOUT_MS8)
|
|
69987
70202
|
});
|
|
69988
70203
|
if (!res.ok) throw new Error(`Merkl API ${res.status}`);
|
|
69989
70204
|
const json = await res.json();
|
|
@@ -78241,7 +78456,7 @@ function computeSiloUtilization(vaultId, totalAssetsFormatted, positionsByVault,
|
|
|
78241
78456
|
}
|
|
78242
78457
|
var clamp012 = (n) => !Number.isFinite(n) ? 0 : n < 0 ? 0 : n > 1 ? 1 : n;
|
|
78243
78458
|
var PERFORMANCE_FEE_SCALE = 1e16;
|
|
78244
|
-
var
|
|
78459
|
+
var SECONDS_PER_YEAR21 = 31536e3;
|
|
78245
78460
|
function buildVaultRewards(vaultId, totalAssetsUsd, programsByShareToken, priceOf2, nowSeconds2) {
|
|
78246
78461
|
const programs = programsByShareToken.get(vaultId) ?? [];
|
|
78247
78462
|
const rewards = [];
|
|
@@ -78257,7 +78472,7 @@ function buildVaultRewards(vaultId, totalAssetsUsd, programsByShareToken, priceO
|
|
|
78257
78472
|
const tokenPrice = tokenAddress ? priceOf2(tokenAddress) : 0;
|
|
78258
78473
|
let apr;
|
|
78259
78474
|
if (tokenPrice > 0 && totalAssetsUsd > 0) {
|
|
78260
|
-
const annualTokens = emission / 10 ** tokenDecimals *
|
|
78475
|
+
const annualTokens = emission / 10 ** tokenDecimals * SECONDS_PER_YEAR21;
|
|
78261
78476
|
apr = annualTokens * tokenPrice / totalAssetsUsd * 100;
|
|
78262
78477
|
rewardsRate += apr;
|
|
78263
78478
|
} else {
|
|
@@ -78874,7 +79089,7 @@ function rescaleExchangeRate(exchangeRate, shareDecimals) {
|
|
|
78874
79089
|
}
|
|
78875
79090
|
var EULER_API_CACHE_TTL_MS = 6e4;
|
|
78876
79091
|
var jsonCache = /* @__PURE__ */ new Map();
|
|
78877
|
-
function
|
|
79092
|
+
function getJson8(url) {
|
|
78878
79093
|
const hit = jsonCache.get(url);
|
|
78879
79094
|
if (hit && Date.now() - hit.at < EULER_API_CACHE_TTL_MS) return hit.promise;
|
|
78880
79095
|
const entry2 = { at: Date.now(), promise: fetchJsonOnce(url) };
|
|
@@ -78981,7 +79196,7 @@ async function mapWithConcurrency(items, limit, fn2) {
|
|
|
78981
79196
|
return out;
|
|
78982
79197
|
}
|
|
78983
79198
|
async function fetchEulerEarnVaultsFromApi(chainId, prices = {}, tokenList = {}, multicallRetry) {
|
|
78984
|
-
const list = await
|
|
79199
|
+
const list = await getJson8(
|
|
78985
79200
|
`${EULER_DATA_API_BASE2}/earn/vaults?chainId=${chainId}&limit=200&visibility=${VISIBILITY_ALL}`
|
|
78986
79201
|
);
|
|
78987
79202
|
if (!list) return void 0;
|
|
@@ -78998,7 +79213,7 @@ async function fetchEulerEarnVaultsFromApi(chainId, prices = {}, tokenList = {},
|
|
|
78998
79213
|
mapWithConcurrency(
|
|
78999
79214
|
rows,
|
|
79000
79215
|
DETAIL_CONCURRENCY,
|
|
79001
|
-
(row) =>
|
|
79216
|
+
(row) => getJson8(
|
|
79002
79217
|
`${EULER_DATA_API_BASE2}/earn/vaults/${chainId}/${row.address}?include=strategies`
|
|
79003
79218
|
).then((d) => d?.data)
|
|
79004
79219
|
),
|
|
@@ -86774,6 +86989,110 @@ var SuperformStrategyConfigAbi = [
|
|
|
86774
86989
|
}
|
|
86775
86990
|
];
|
|
86776
86991
|
|
|
86992
|
+
// src/vaults/savings/abis/iporFusion.ts
|
|
86993
|
+
var PlasmaVaultReadAbi = [
|
|
86994
|
+
{
|
|
86995
|
+
name: "totalSupply",
|
|
86996
|
+
type: "function",
|
|
86997
|
+
stateMutability: "view",
|
|
86998
|
+
inputs: [],
|
|
86999
|
+
outputs: [{ type: "uint256" }]
|
|
87000
|
+
},
|
|
87001
|
+
{
|
|
87002
|
+
name: "maxDeposit",
|
|
87003
|
+
type: "function",
|
|
87004
|
+
stateMutability: "view",
|
|
87005
|
+
inputs: [{ type: "address", name: "receiver" }],
|
|
87006
|
+
outputs: [{ type: "uint256" }]
|
|
87007
|
+
},
|
|
87008
|
+
{
|
|
87009
|
+
name: "previewDeposit",
|
|
87010
|
+
type: "function",
|
|
87011
|
+
stateMutability: "view",
|
|
87012
|
+
inputs: [{ type: "uint256", name: "assets" }],
|
|
87013
|
+
outputs: [{ type: "uint256" }]
|
|
87014
|
+
},
|
|
87015
|
+
{
|
|
87016
|
+
name: "convertToShares",
|
|
87017
|
+
type: "function",
|
|
87018
|
+
stateMutability: "view",
|
|
87019
|
+
inputs: [{ type: "uint256", name: "assets" }],
|
|
87020
|
+
outputs: [{ type: "uint256" }]
|
|
87021
|
+
},
|
|
87022
|
+
{
|
|
87023
|
+
name: "getPerformanceFeeData",
|
|
87024
|
+
type: "function",
|
|
87025
|
+
stateMutability: "view",
|
|
87026
|
+
inputs: [],
|
|
87027
|
+
outputs: [
|
|
87028
|
+
{ type: "address", name: "feeAccount" },
|
|
87029
|
+
{ type: "uint16", name: "feeInPercentage" }
|
|
87030
|
+
]
|
|
87031
|
+
},
|
|
87032
|
+
{
|
|
87033
|
+
name: "getManagementFeeData",
|
|
87034
|
+
type: "function",
|
|
87035
|
+
stateMutability: "view",
|
|
87036
|
+
inputs: [],
|
|
87037
|
+
outputs: [
|
|
87038
|
+
{ type: "address", name: "feeAccount" },
|
|
87039
|
+
{ type: "uint16", name: "feeInPercentage" },
|
|
87040
|
+
{ type: "uint32", name: "lastUpdateTimestamp" }
|
|
87041
|
+
]
|
|
87042
|
+
}
|
|
87043
|
+
];
|
|
87044
|
+
var FusionAccessManagerReadAbi = [
|
|
87045
|
+
{
|
|
87046
|
+
name: "getTargetFunctionRole",
|
|
87047
|
+
type: "function",
|
|
87048
|
+
stateMutability: "view",
|
|
87049
|
+
inputs: [
|
|
87050
|
+
{ type: "address", name: "target" },
|
|
87051
|
+
{ type: "bytes4", name: "selector" }
|
|
87052
|
+
],
|
|
87053
|
+
outputs: [{ type: "uint64" }]
|
|
87054
|
+
},
|
|
87055
|
+
{
|
|
87056
|
+
name: "isTargetClosed",
|
|
87057
|
+
type: "function",
|
|
87058
|
+
stateMutability: "view",
|
|
87059
|
+
inputs: [{ type: "address", name: "target" }],
|
|
87060
|
+
outputs: [{ type: "bool" }]
|
|
87061
|
+
}
|
|
87062
|
+
];
|
|
87063
|
+
var FusionWithdrawManagerReadAbi = [
|
|
87064
|
+
{
|
|
87065
|
+
name: "getWithdrawFee",
|
|
87066
|
+
type: "function",
|
|
87067
|
+
stateMutability: "view",
|
|
87068
|
+
inputs: [],
|
|
87069
|
+
outputs: [{ type: "uint256" }]
|
|
87070
|
+
},
|
|
87071
|
+
{
|
|
87072
|
+
name: "getRequestFee",
|
|
87073
|
+
type: "function",
|
|
87074
|
+
stateMutability: "view",
|
|
87075
|
+
inputs: [],
|
|
87076
|
+
outputs: [{ type: "uint256" }]
|
|
87077
|
+
},
|
|
87078
|
+
{
|
|
87079
|
+
name: "getSharesToRelease",
|
|
87080
|
+
type: "function",
|
|
87081
|
+
stateMutability: "view",
|
|
87082
|
+
inputs: [],
|
|
87083
|
+
outputs: [{ type: "uint256" }]
|
|
87084
|
+
}
|
|
87085
|
+
];
|
|
87086
|
+
var FusionBalanceOfAbi = [
|
|
87087
|
+
{
|
|
87088
|
+
name: "balanceOf",
|
|
87089
|
+
type: "function",
|
|
87090
|
+
stateMutability: "view",
|
|
87091
|
+
inputs: [{ type: "address", name: "account" }],
|
|
87092
|
+
outputs: [{ type: "uint256" }]
|
|
87093
|
+
}
|
|
87094
|
+
];
|
|
87095
|
+
|
|
86777
87096
|
// src/vaults/savings/abis/ember.ts
|
|
86778
87097
|
var EmberMaxDepositAbi = [
|
|
86779
87098
|
{
|
|
@@ -87755,7 +88074,7 @@ var readerHyperbeatVault = (entry2) => {
|
|
|
87755
88074
|
|
|
87756
88075
|
// src/vaults/savings/readers/listaRwaPool.ts
|
|
87757
88076
|
var PERIOD_SECONDS = 7n * 86400n;
|
|
87758
|
-
var
|
|
88077
|
+
var SECONDS_PER_YEAR22 = 365n * 86400n;
|
|
87759
88078
|
var readerListaRwaPool = (entry2) => {
|
|
87760
88079
|
const shareUnit = 10n ** BigInt(entry2.decimals);
|
|
87761
88080
|
const underlyingUnit = 10n ** BigInt(entry2.underlyingDecimals ?? entry2.decimals);
|
|
@@ -87788,7 +88107,7 @@ var readerListaRwaPool = (entry2) => {
|
|
|
87788
88107
|
const rewards = toBigInt16(periodRewards);
|
|
87789
88108
|
const supplyRate = rewards !== void 0 && rewards > 0n && totalAssets > 0n ? (
|
|
87790
88109
|
// percent, nominal: rewards per period → per year ÷ TVL.
|
|
87791
|
-
Number(rewards *
|
|
88110
|
+
Number(rewards * SECONDS_PER_YEAR22 * 1000000n / PERIOD_SECONDS) / Number(totalAssets) / 1e4
|
|
87792
88111
|
) : void 0;
|
|
87793
88112
|
return {
|
|
87794
88113
|
totalAssets,
|
|
@@ -88533,8 +88852,117 @@ var readerSuperformVault = (entry2) => {
|
|
|
88533
88852
|
};
|
|
88534
88853
|
};
|
|
88535
88854
|
|
|
88536
|
-
// src/vaults/savings/readers/
|
|
88855
|
+
// src/vaults/savings/readers/iporFusion.ts
|
|
88537
88856
|
var NEUTRAL_PROBE4 = "0x000000000000000000000000000000000000dead";
|
|
88857
|
+
var DEPOSIT_SELECTOR = "0x6e553f65";
|
|
88858
|
+
var PUBLIC_ROLE = 2n ** 64n - 1n;
|
|
88859
|
+
var WAD18 = 10n ** 18n;
|
|
88860
|
+
var readerIporFusion = (entry2) => {
|
|
88861
|
+
const cfg = entry2.iporFusion;
|
|
88862
|
+
const shareUnit = 10n ** BigInt(entry2.decimals);
|
|
88863
|
+
const underlyingUnit = 10n ** BigInt(entry2.underlyingDecimals ?? entry2.decimals);
|
|
88864
|
+
const v = entry2.address;
|
|
88865
|
+
const am = cfg?.accessManager;
|
|
88866
|
+
const wm = cfg?.withdrawManager;
|
|
88867
|
+
return {
|
|
88868
|
+
calls: [
|
|
88869
|
+
{ address: v, name: "totalAssets", params: [] },
|
|
88870
|
+
{ address: v, name: "totalSupply", params: [] },
|
|
88871
|
+
{ address: v, name: "convertToAssets", params: [shareUnit] },
|
|
88872
|
+
{ address: v, name: "maxDeposit", params: [NEUTRAL_PROBE4] },
|
|
88873
|
+
{ address: v, name: "previewDeposit", params: [underlyingUnit] },
|
|
88874
|
+
{ address: v, name: "convertToShares", params: [underlyingUnit] },
|
|
88875
|
+
{ address: v, name: "getPerformanceFeeData", params: [] },
|
|
88876
|
+
{ address: v, name: "getManagementFeeData", params: [] },
|
|
88877
|
+
{ address: entry2.underlying, name: "balanceOf", params: [v] },
|
|
88878
|
+
...am ? [
|
|
88879
|
+
{
|
|
88880
|
+
address: am,
|
|
88881
|
+
name: "getTargetFunctionRole",
|
|
88882
|
+
params: [v, DEPOSIT_SELECTOR]
|
|
88883
|
+
},
|
|
88884
|
+
{ address: am, name: "isTargetClosed", params: [v] }
|
|
88885
|
+
] : [],
|
|
88886
|
+
...wm ? [
|
|
88887
|
+
{ address: wm, name: "getWithdrawFee", params: [] },
|
|
88888
|
+
{ address: wm, name: "getRequestFee", params: [] },
|
|
88889
|
+
{ address: wm, name: "getSharesToRelease", params: [] }
|
|
88890
|
+
] : []
|
|
88891
|
+
],
|
|
88892
|
+
abis: [
|
|
88893
|
+
Erc4626ReadAbi2,
|
|
88894
|
+
PlasmaVaultReadAbi,
|
|
88895
|
+
Erc4626ReadAbi2,
|
|
88896
|
+
PlasmaVaultReadAbi,
|
|
88897
|
+
PlasmaVaultReadAbi,
|
|
88898
|
+
PlasmaVaultReadAbi,
|
|
88899
|
+
PlasmaVaultReadAbi,
|
|
88900
|
+
PlasmaVaultReadAbi,
|
|
88901
|
+
FusionBalanceOfAbi,
|
|
88902
|
+
...am ? [FusionAccessManagerReadAbi, FusionAccessManagerReadAbi] : [],
|
|
88903
|
+
...wm ? [
|
|
88904
|
+
FusionWithdrawManagerReadAbi,
|
|
88905
|
+
FusionWithdrawManagerReadAbi,
|
|
88906
|
+
FusionWithdrawManagerReadAbi
|
|
88907
|
+
] : []
|
|
88908
|
+
],
|
|
88909
|
+
parse: (slice2) => {
|
|
88910
|
+
const [assets, supply, rate, maxDep, preview, conv, perf, mgmt, idle] = slice2;
|
|
88911
|
+
let i = 9;
|
|
88912
|
+
const role = am ? slice2[i++] : void 0;
|
|
88913
|
+
const closed = am ? slice2[i++] : void 0;
|
|
88914
|
+
const wFee = wm ? toBigInt16(slice2[i++]) : void 0;
|
|
88915
|
+
const rFee = wm ? toBigInt16(slice2[i++]) : void 0;
|
|
88916
|
+
const toRelease = wm ? toBigInt16(slice2[i++]) : void 0;
|
|
88917
|
+
const totalAssets = toBigInt16(assets);
|
|
88918
|
+
const totalSupply = toBigInt16(supply);
|
|
88919
|
+
const convertToAssetsRaw = toBigInt16(rate);
|
|
88920
|
+
if (totalAssets === void 0 || totalSupply === void 0 || convertToAssetsRaw === void 0)
|
|
88921
|
+
return void 0;
|
|
88922
|
+
const previewShares = toBigInt16(preview);
|
|
88923
|
+
const convShares = toBigInt16(conv);
|
|
88924
|
+
const depositFeeBps = previewShares !== void 0 && convShares !== void 0 && convShares > 0n ? (
|
|
88925
|
+
// Nearest bp: the fee is minted from the shares, so the ratio lands
|
|
88926
|
+
// a hair under its nominal value (0.2 % reads 19.99 bps).
|
|
88927
|
+
Number(
|
|
88928
|
+
((convShares - previewShares) * 10000n + convShares / 2n) / convShares
|
|
88929
|
+
)
|
|
88930
|
+
) : void 0;
|
|
88931
|
+
const feeBps = (cell) => {
|
|
88932
|
+
const raw = Array.isArray(cell) ? cell[1] : cell?.feeInPercentage;
|
|
88933
|
+
const b = toBigInt16(raw);
|
|
88934
|
+
return b !== void 0 ? Number(b) : void 0;
|
|
88935
|
+
};
|
|
88936
|
+
const performanceFeeBps = feeBps(perf);
|
|
88937
|
+
const managementFeeBps = feeBps(mgmt);
|
|
88938
|
+
const roleId = toBigInt16(role);
|
|
88939
|
+
const gated = roleId !== void 0 && roleId !== PUBLIC_ROLE || closed === true;
|
|
88940
|
+
const maxDeposit = toBigInt16(maxDep);
|
|
88941
|
+
const depositCapacity = gated ? 0n : maxDeposit !== void 0 && maxDeposit < totalAssets * 1000000n ? maxDeposit : void 0;
|
|
88942
|
+
const idleRaw = toBigInt16(idle);
|
|
88943
|
+
const reserved = toRelease !== void 0 && toRelease > 0n && totalSupply > 0n ? toRelease * totalAssets / totalSupply : 0n;
|
|
88944
|
+
const instantRedeemCapacity = cfg?.instantFuses ? totalAssets : idleRaw !== void 0 ? idleRaw > reserved ? idleRaw - reserved : 0n : void 0;
|
|
88945
|
+
return {
|
|
88946
|
+
totalAssets,
|
|
88947
|
+
totalSupply,
|
|
88948
|
+
exchangeRate: convertToAssetsRaw * ONE_E1823 / underlyingUnit,
|
|
88949
|
+
// Raw shares one WHOLE underlying mints, NET of the deposit fee.
|
|
88950
|
+
...previewShares !== void 0 ? { convertToShares: previewShares } : {},
|
|
88951
|
+
...depositFeeBps !== void 0 ? { depositFeeBps } : {},
|
|
88952
|
+
...performanceFeeBps !== void 0 ? { performanceFeeBps } : {},
|
|
88953
|
+
...managementFeeBps !== void 0 ? { managementFeeBps } : {},
|
|
88954
|
+
...wFee !== void 0 ? { withdrawFeeBps: Number(wFee * 10000n / WAD18) } : {},
|
|
88955
|
+
...rFee !== void 0 ? { queuedFeeBps: Number(rFee * 10000n / WAD18) } : {},
|
|
88956
|
+
...instantRedeemCapacity !== void 0 ? { instantRedeemCapacity } : {},
|
|
88957
|
+
...depositCapacity !== void 0 ? { depositCapacity } : {},
|
|
88958
|
+
...closed === true ? { paused: true } : {}
|
|
88959
|
+
};
|
|
88960
|
+
}
|
|
88961
|
+
};
|
|
88962
|
+
};
|
|
88963
|
+
|
|
88964
|
+
// src/vaults/savings/readers/emberVault.ts
|
|
88965
|
+
var NEUTRAL_PROBE5 = "0x000000000000000000000000000000000000dead";
|
|
88538
88966
|
var readerEmberVault = (entry2) => {
|
|
88539
88967
|
const shareUnit = 10n ** BigInt(entry2.decimals);
|
|
88540
88968
|
const underlyingUnit = 10n ** BigInt(entry2.underlyingDecimals ?? entry2.decimals);
|
|
@@ -88543,7 +88971,7 @@ var readerEmberVault = (entry2) => {
|
|
|
88543
88971
|
{ address: entry2.address, name: "totalAssets", params: [] },
|
|
88544
88972
|
{ address: entry2.address, name: "totalSupply", params: [] },
|
|
88545
88973
|
{ address: entry2.address, name: "convertToAssets", params: [shareUnit] },
|
|
88546
|
-
{ address: entry2.address, name: "maxDeposit", params: [
|
|
88974
|
+
{ address: entry2.address, name: "maxDeposit", params: [NEUTRAL_PROBE5] },
|
|
88547
88975
|
{ address: entry2.address, name: "pauseStatus", params: [] }
|
|
88548
88976
|
],
|
|
88549
88977
|
abis: [
|
|
@@ -89170,7 +89598,7 @@ var readerUnitasXgld = (entry2) => {
|
|
|
89170
89598
|
};
|
|
89171
89599
|
|
|
89172
89600
|
// src/vaults/savings/readers/roycoTranche.ts
|
|
89173
|
-
var
|
|
89601
|
+
var NEUTRAL_PROBE6 = "0x000000000000000000000000000000000000dead";
|
|
89174
89602
|
var ASSET_CLAIMS = {
|
|
89175
89603
|
name: "claims",
|
|
89176
89604
|
type: "tuple",
|
|
@@ -89273,7 +89701,7 @@ var readerRoycoTranche = (entry2) => {
|
|
|
89273
89701
|
{ address: entry2.address, name: "totalAssets", params: [] },
|
|
89274
89702
|
{ address: entry2.address, name: "totalSupply", params: [] },
|
|
89275
89703
|
{ address: entry2.address, name: "convertToAssets", params: [shareUnit] },
|
|
89276
|
-
{ address: entry2.address, name: "maxDeposit", params: [
|
|
89704
|
+
{ address: entry2.address, name: "maxDeposit", params: [NEUTRAL_PROBE6] },
|
|
89277
89705
|
{ address: entry2.address, name: "paused", params: [] },
|
|
89278
89706
|
...entryPoint ? [
|
|
89279
89707
|
{
|
|
@@ -89712,7 +90140,7 @@ var readerAccountableVault = (entry2) => {
|
|
|
89712
90140
|
};
|
|
89713
90141
|
|
|
89714
90142
|
// src/vaults/savings/readers/alchemixTransmuter.ts
|
|
89715
|
-
var
|
|
90143
|
+
var SECONDS_PER_YEAR23 = 31536e3;
|
|
89716
90144
|
var UNCAPPED_FLOOR = 2n ** 200n;
|
|
89717
90145
|
var pow10 = (n) => 10n ** BigInt(n);
|
|
89718
90146
|
var readerAlchemixTransmuter = (entry2) => {
|
|
@@ -89788,7 +90216,7 @@ var readerAlchemixTransmuter = (entry2) => {
|
|
|
89788
90216
|
const price1e18 = out !== void 0 && out > 0n ? out * ONE_E1823 * pow10(18 - cfg.underlyingDecimals) / q.unit : void 0;
|
|
89789
90217
|
const marketDiscountBps = price1e18 !== void 0 ? Number((price1e18 - ONE_E1823) * 100000n / ONE_E1823) / 10 : void 0;
|
|
89790
90218
|
const tf = transmutationFee !== void 0 ? Number(transmutationFee) / 1e4 : 0;
|
|
89791
|
-
const supplyRate = price1e18 !== void 0 && termSeconds > 0 ? ((1 - tf) / (Number(price1e18) / 1e18) - 1) * (
|
|
90219
|
+
const supplyRate = price1e18 !== void 0 && termSeconds > 0 ? ((1 - tf) / (Number(price1e18) / 1e18) - 1) * (SECONDS_PER_YEAR23 / termSeconds) * 100 : void 0;
|
|
89792
90220
|
const exitFeeBps = exitFee !== void 0 ? Number(exitFee) : void 0;
|
|
89793
90221
|
const exitRoutes = [
|
|
89794
90222
|
{
|
|
@@ -89833,7 +90261,7 @@ var readerAlchemixTransmuter = (entry2) => {
|
|
|
89833
90261
|
};
|
|
89834
90262
|
|
|
89835
90263
|
// src/vaults/savings/readers/gapSweep.ts
|
|
89836
|
-
var
|
|
90264
|
+
var NEUTRAL_PROBE7 = "0x000000000000000000000000000000000000dead";
|
|
89837
90265
|
var MAX_UINT256 = 2n ** 256n - 1n;
|
|
89838
90266
|
var readerUsdaiStaked = (entry2) => {
|
|
89839
90267
|
const a = entry2.address;
|
|
@@ -89883,7 +90311,7 @@ var readerYuzuIlp = (entry2) => {
|
|
|
89883
90311
|
{ address: entry2.address, name: "totalAssets", params: [] },
|
|
89884
90312
|
{ address: entry2.address, name: "totalSupply", params: [] },
|
|
89885
90313
|
{ address: entry2.address, name: "convertToAssets", params: [shareUnit] },
|
|
89886
|
-
{ address: entry2.address, name: "maxDeposit", params: [
|
|
90314
|
+
{ address: entry2.address, name: "maxDeposit", params: [NEUTRAL_PROBE7] },
|
|
89887
90315
|
{ address: entry2.address, name: "paused", params: [] }
|
|
89888
90316
|
],
|
|
89889
90317
|
abis: [
|
|
@@ -89996,6 +90424,8 @@ var buildReader2 = (entry2) => {
|
|
|
89996
90424
|
return readerErc4626CooldownInstantFee(entry2);
|
|
89997
90425
|
case "superform-supervault":
|
|
89998
90426
|
return readerSuperformVault(entry2);
|
|
90427
|
+
case "ipor-fusion":
|
|
90428
|
+
return readerIporFusion(entry2);
|
|
89999
90429
|
case "ember-vault":
|
|
90000
90430
|
return readerEmberVault(entry2);
|
|
90001
90431
|
case "mellow-core":
|
|
@@ -90290,7 +90720,10 @@ var fetchSavingsVaults = async (chainId, multicallRetry, prices = {}, tokenList
|
|
|
90290
90720
|
// opposite and correctly falls through to `false`.
|
|
90291
90721
|
entry2.reader === "bitfi-vault" || // SuperVaults ARE 4626 on the deposit side and 7540 on the exit, the
|
|
90292
90722
|
// Lagoon / yoETH shape. NB `previewRedeem` reverts — see the reader.
|
|
90293
|
-
entry2.reader === "superform-supervault" || //
|
|
90723
|
+
entry2.reader === "superform-supervault" || // IPOR Fusion PlasmaVaults are conforming 4626 on every leg; the
|
|
90724
|
+
// bespoke reader exists for the WithdrawManager's fees and the
|
|
90725
|
+
// idle-cash cap, not because the standard surface is missing.
|
|
90726
|
+
entry2.reader === "ipor-fusion" || // Ember vaults are conforming 4626 VIEWS (`asset`, `totalAssets`,
|
|
90294
90727
|
// `convertToAssets`) and deposit; `redeem`/`withdraw` revert
|
|
90295
90728
|
// `UseRedeemShares()`, which the savings kind routes around.
|
|
90296
90729
|
entry2.reader === "ember-vault" || // sBOLD and the Alchemix MYTs (Morpho Vault V2) are conforming 4626 on
|
|
@@ -92241,8 +92674,31 @@ var VOLATILE_VAULT_OVERRIDES = /* @__PURE__ */ new Set([
|
|
|
92241
92674
|
// CarryTradeUSDTRYLeverage
|
|
92242
92675
|
"1-0x827ce7e8e35861d9ac7fe002755767b695a5594a",
|
|
92243
92676
|
// StockMarketTRBasisTrade
|
|
92244
|
-
"1-0x99351baed3d8ab544ccb08af96a105910fda71e7"
|
|
92677
|
+
"1-0x99351baed3d8ab544ccb08af96a105910fda71e7",
|
|
92245
92678
|
// aFXArbUSDTRY
|
|
92679
|
+
// IPOR Fusion loops and carries — the share price is collateral at an
|
|
92680
|
+
// oracle mark minus debt, levered 5–9× on the loops, and on the carries the
|
|
92681
|
+
// debt sits in a different currency than the vault (dollars against ETH or
|
|
92682
|
+
// BTC, WBTC against a dollar). Max 30-day drawdown measured 2026-10-30 was
|
|
92683
|
+
// 0.35 %; the risk is the mark, the liquidation and the depeg, not the
|
|
92684
|
+
// window. The four lending optimizers stay yield-bearing. Pinned by
|
|
92685
|
+
// `iporFusion.test.ts` against `IPOR_FUSION_VOLATILE_KEYS`.
|
|
92686
|
+
"1-0xb9e806e8f2d94c015ffefa90cd24ecce18f1663c",
|
|
92687
|
+
// rETHLPC
|
|
92688
|
+
"1-0xb8a451107a9f87fde481d4d686247d6e43ed715e",
|
|
92689
|
+
// fusnstETH
|
|
92690
|
+
"1-0xb0f56bb0bf13ee05fef8cd2d8df5ffdfcac7a74f",
|
|
92691
|
+
// $TAUSIUSD
|
|
92692
|
+
"1-0xf8f226da66244f89e70c5b5d1a5c5b0d505eb1d8",
|
|
92693
|
+
// bdUSD
|
|
92694
|
+
"1-0x7659fc26bf3a63e8133bbecb7e16acd48ee8e292",
|
|
92695
|
+
// BTCdc
|
|
92696
|
+
"1-0xe9385eff3f937fcb0f0085da9a3f53d6c2b4fb5f",
|
|
92697
|
+
// ipsrUSDfusion
|
|
92698
|
+
"8453-0xe883426b4fc84a7f5cc86415cabbef43e73a4cc8",
|
|
92699
|
+
// TAUCBETH
|
|
92700
|
+
"8453-0x5900c3b72458f12967dc1bef35b92d271f5cdbc1"
|
|
92701
|
+
// CSCBETHLL
|
|
92246
92702
|
]);
|
|
92247
92703
|
var STABLECOIN_SYMBOLS = /* @__PURE__ */ new Set([
|
|
92248
92704
|
// USD majors
|
|
@@ -93657,7 +94113,7 @@ function clearPendleMarketsCache() {
|
|
|
93657
94113
|
marketsCache = void 0;
|
|
93658
94114
|
assetsCache = void 0;
|
|
93659
94115
|
}
|
|
93660
|
-
async function
|
|
94116
|
+
async function getJson9(url, label) {
|
|
93661
94117
|
const response = await fetch(url, { headers: { Accept: "application/json" } });
|
|
93662
94118
|
if (!response.ok) {
|
|
93663
94119
|
throw new Error(
|
|
@@ -93678,7 +94134,7 @@ function cache5(slot, build9, store) {
|
|
|
93678
94134
|
function fetchPendleApiMarkets() {
|
|
93679
94135
|
return cache5(
|
|
93680
94136
|
marketsCache,
|
|
93681
|
-
async () => (await
|
|
94137
|
+
async () => (await getJson9(PENDLE_MARKETS_URL2, "markets"))?.markets ?? [],
|
|
93682
94138
|
(c) => {
|
|
93683
94139
|
marketsCache = c;
|
|
93684
94140
|
}
|
|
@@ -93689,7 +94145,7 @@ function fetchPendleApiAssets() {
|
|
|
93689
94145
|
return cache5(
|
|
93690
94146
|
assetsCache,
|
|
93691
94147
|
async () => {
|
|
93692
|
-
const json = await
|
|
94148
|
+
const json = await getJson9(PENDLE_ASSETS_URL, "assets");
|
|
93693
94149
|
const map = /* @__PURE__ */ new Map();
|
|
93694
94150
|
for (const a of json?.assets ?? []) {
|
|
93695
94151
|
if (a?.chainId == null || !a?.address) continue;
|
|
@@ -97278,17 +97734,94 @@ var FALLBACK_TRAITS = {
|
|
|
97278
97734
|
};
|
|
97279
97735
|
|
|
97280
97736
|
// src/terms/vault/svmCuration.ts
|
|
97737
|
+
var KESTREL_DESCRIPTION = "A Perena carry token: the collateral deposited is lent on Kamino, USDC is borrowed against it at a target loan-to-value, and the USDC is held in USD*, so the token keeps the collateral\u2019s price exposure and earns USD*\u2019s yield less the borrow rate, accrued into a price denominated in the collateral. The carry can turn negative when borrowing costs more than USD* earns, and the Kamino positions carry liquidation risk if the collateral falls fast. A deposit mints at the stored price in the same transaction; a burn pays collateral in the transaction only out of the token\u2019s unlent reserve, a larger one queues into a redemption epoch Perena unwinds.";
|
|
97281
97738
|
var SVM_SAVINGS_CURATION = {
|
|
97282
97739
|
// OnRe ONyc — a reinsurance fund's NAV share (margin-fetcher-sol `ONYC_DESCRIPTION`)
|
|
97283
97740
|
"5Y8NV33Vv7WbnLfq3zBcKSdYPrk7g2KoiQoe7M2tcxp5": {
|
|
97284
97741
|
solvency: "nav-attested",
|
|
97285
97742
|
description: "ONyc is a share of OnRe\u2019s Bermuda reinsurance fund: the fund writes reinsurance contracts and holds stablecoin collateral against them, and the premiums plus the collateral\u2019s yield accrue as a rising dollar NAV per ONyc. This is REINSURANCE risk, not a dollar deposit: a catastrophe the contracts cover (a hurricane, an earthquake) is paid out of the fund and writes the NAV down, and the NAV is OnRe\u2019s own published figure over an off-chain book. OnRe keeps a freeze authority over the token. ONyc is minted at OnRe\u2019s offer price on chain; it exits by selling into OnRe\u2019s USDG pool (instant, a fee plus a haircut that grows with the order\u2019s size and the day\u2019s selling, capped by what the pool holds) or by a redemption request OnRe\u2019s operator fulfils at its later NAV less a fee, paid straight to the wallet \u2014 OnRe publishes no time for that."
|
|
97743
|
+
},
|
|
97744
|
+
// Perena USD* — the vault NAV over off-chain + on-chain venues (margin-fetcher-sol `PERENA_USD_STAR_MECHANICS`)
|
|
97745
|
+
star9agSpjiFe3M49B3RniVU4CMBBEK3Qnaqn3RGiFM: {
|
|
97746
|
+
solvency: "nav-attested",
|
|
97747
|
+
description: "A deposit of USDC mints USD* at the vault price in the same transaction. A withdrawal also settles in the transaction, but only out of the USDC the vault holds idle: Perena deploys the rest to off-chain and on-chain venues (delta-neutral funds, private credit, RWA vaults, Kamino and Project 0), so a larger exit waits until the operator returns capital. The price is the vault\u2019s net asset value, pushed by a two-of-N signer consensus for the off-chain positions and cranked permissionlessly."
|
|
97748
|
+
},
|
|
97749
|
+
// Perena USD*-J — the first-loss tranche (`PERENA_JUNIOR_MECHANICS`)
|
|
97750
|
+
"3AJYCjrhKitmBd8tRUurPA5dGHCAQh6A8L9DkuSC37Rm": {
|
|
97751
|
+
solvency: "nav-attested",
|
|
97752
|
+
description: "USD*-J is the first-loss tranche of the USD* vault: a deposit of USDC buys junior shares, the junior takes a levered share of the vault\u2019s yield, and any loss is charged to it before the protected tranche or plain USD* is touched \u2014 it had already absorbed one on 2026-10-29. An instant exit pays out of the vault\u2019s idle USDC at the early-unstake fee; a queued exit escrows the shares for the lockup at the lower standard fee, and is paid when Perena fulfils it or, after the lockup, when the holder claims it. A request can be cancelled for the shares back."
|
|
97753
|
+
},
|
|
97754
|
+
// Perena USD*-P — the fixed-rate senior tranche (`PERENA_SENIOR_MECHANICS`)
|
|
97755
|
+
CPFZ7wUFpg5obsGB2GKXQ8rPY5ALuxs87dEjQjsrVxWw: {
|
|
97756
|
+
solvency: "nav-attested",
|
|
97757
|
+
description: "USD*-P is the senior tranche of the USD* vault: a deposit of USDC buys shares that accrue a FIXED rate set on chain, paid out of the vault\u2019s yield, with the junior tranche taking losses first; Perena describes an insurance fund for anything beyond it, which is a promise, not a program state. A withdrawal settles in the transaction out of the vault\u2019s idle USDC at the vault\u2019s burn fee."
|
|
97758
|
+
},
|
|
97759
|
+
// Perena BTC* — a Kestrel carry token over cbBTC
|
|
97760
|
+
YXyMDi4y5aUDmxUFgUvxbm2hXR945yhYaoY9nFnM1KN: {
|
|
97761
|
+
solvency: "nav-attested",
|
|
97762
|
+
description: KESTREL_DESCRIPTION
|
|
97763
|
+
},
|
|
97764
|
+
// Perena SOL* — a Kestrel carry token over SOL
|
|
97765
|
+
FDhu9642aPYNnbTnSoHdAsR9tgSxftPDPjEVdbD58nP2: {
|
|
97766
|
+
solvency: "nav-attested",
|
|
97767
|
+
description: KESTREL_DESCRIPTION
|
|
97768
|
+
},
|
|
97769
|
+
// Perena GOLD* — a Kestrel carry token over PAXG
|
|
97770
|
+
"4uNpwqFP97Hd5xKVS2a1wC7frqBY9yZi7x4Dgtwwi2FU": {
|
|
97771
|
+
solvency: "nav-attested",
|
|
97772
|
+
description: KESTREL_DESCRIPTION
|
|
97773
|
+
},
|
|
97774
|
+
// Forest Road sUSD-FR — a Perena curator vault (`PERENA_CURATOR_MECHANICS`)
|
|
97775
|
+
"3TPJDfcAx438Ait2cg9fs98jenJ9nDCWJF1hneh7fPdw": {
|
|
97776
|
+
solvency: "nav-attested",
|
|
97777
|
+
description: "A deposit mints shares at the vault price in the same transaction; a withdrawal settles in the transaction out of the vault\u2019s idle balance only, the rest being deployed by the curator off the vault. The price accrues at a fixed rate set on chain, bounded by the curator\u2019s reported net asset value."
|
|
97286
97778
|
}
|
|
97287
97779
|
};
|
|
97780
|
+
function exponentTrancheDescription(side2, base) {
|
|
97781
|
+
const common = `The rate is the measured growth of the LP price in the market's quote unit, so it already includes ${base}'s own yield; it is a trailing figure, not a promise. Deposits take ${base} and withdrawals pay ${base} in the same transaction, at the LP price less the side's fee, capped by the ${side2} side's own holdings, and only while the market is Active.`;
|
|
97782
|
+
return side2 === "senior" ? `The SENIOR side of an Exponent tranching market over ${base}. Senior and junior deposits are pooled; the senior is paid a smaller, protected share of ${base}'s yield, and any fall in ${base}'s value is written off the junior side first. The protection is only as deep as the junior's NAV: a loss larger than it reaches the senior. A senior deposit is refused when it would push the junior's coverage of the market below its minimum, or while either side is recovering a loss. ` + common : `The JUNIOR, FIRST-LOSS side of an Exponent tranching market over ${base}. The junior is paid a larger share of ${base}'s yield \u2014 the senior's premium, less Exponent's fee on the junior's return \u2014 for absorbing any fall in ${base}'s value before the senior does. A drawdown in ${base} lands on the junior's NAV first and is LEVERED by the senior book it protects, so the junior can lose more than ${base} itself, and its rate can be negative. Junior exits carry no coverage gate \u2014 only senior deposits do. ` + common;
|
|
97783
|
+
}
|
|
97784
|
+
function reflectTrancheDescription(side2, base) {
|
|
97785
|
+
return side2 === "senior" ? `The SENIOR side of a Reflect tranche over ${base}: a wrapper that holds ${base} and keeps ${base}'s yield less a fee on that yield, which Reflect routes to the junior pool as its premium. The protection is the junior pool: when the senior vault is worth less than its principal, Reflect's operator may move junior reserves into it, capped by the program at the shortfall. Moving them is the operator's call, not automatic, and the protection is only as deep as the junior pool. Deposits and withdrawals settle in the transaction at an oracle price, a withdrawal capped by the ${base} the vault holds; deposits close at the deposit cap. Reflect's tranche authority, a single key, sets the fee and the cap, can freeze the wrapper and can freeze any holder's senior token account.` : `The JUNIOR, FIRST-LOSS side of a Reflect tranche over ${base}: a pool of ${base} that earns ${base}'s own yield plus the senior's fee as a premium, levered by how much larger the senior book is. In exchange its reserves are what restores the senior's principal: when the senior vault is worth less than its principal, Reflect's operator may move junior reserves into it, up to the shortfall, so a drawdown in ${base} lands on the junior first and LEVERED, and its return can be negative. Deposits settle in the transaction; the exit is a request that locks the LP for the pool's cooldown, then a withdrawal paying at most the value snapshotted at the request (a later slash can still reduce it) inside a claim window as long as the cooldown \u2014 an expired request returns the LP instead.`;
|
|
97786
|
+
}
|
|
97787
|
+
var REFLECT_TRANCHE_SIDES = {
|
|
97788
|
+
sro4agJ6nJ89MJgj2DfDdx8zXVqSyZfCZjbhBfQaJU5: ["senior", "syrupUSDC"],
|
|
97789
|
+
jrByePxMbHAevzMG4kjUrfMWoZ7bQYwwKJTPcq2WysG: ["junior", "syrupUSDC"],
|
|
97790
|
+
sRr4h6qhdZAqQjstXbqKNvtdj1pNDPczLr49HQ5QaRS: ["senior", "PRIME"],
|
|
97791
|
+
JrGsMfJodyVEqLGnyAKa9qHzRqZ9dzFfeSjouV3qEeG: ["junior", "PRIME"],
|
|
97792
|
+
SRcbNRqXP585fbxMNo2NkCbrgjZNZv9y8JMcwXonUap: ["senior", "eHYUSD"],
|
|
97793
|
+
jrZjCWLJMu5rabYcu1fbkZPK6daMdjLbyQM5NVeVGNG: ["junior", "eHYUSD"],
|
|
97794
|
+
SrBhwwen83jYAkgpMqT9k1yjjeM3ciYdoCNyMzVY1eH: ["senior", "reUSD"],
|
|
97795
|
+
jrFLwUZLRwk6JyQhqnVR2vkBgziNapAu6aJiS8MeWac: ["junior", "reUSD"],
|
|
97796
|
+
sRTteWAWvtdmNPMRvhbJWBsa687CYeRt2jJFnUfTQfr: ["senior", "SUSDG"],
|
|
97797
|
+
jrsLHAvEaeyyWSqey33Vm8oaddxTNRx4vbD7ZvyTn8E: ["junior", "SUSDG"]
|
|
97798
|
+
};
|
|
97799
|
+
var EXPONENT_TRANCHE_NAME = /^Exponent (Senior|Junior) (\S+)/;
|
|
97288
97800
|
var CI = new Map(
|
|
97289
97801
|
Object.entries(SVM_SAVINGS_CURATION).map(([m, c]) => [m.toLowerCase(), c])
|
|
97290
97802
|
);
|
|
97291
|
-
var
|
|
97803
|
+
var REFLECT_CI = new Map(
|
|
97804
|
+
Object.entries(REFLECT_TRANCHE_SIDES).map(([m, x]) => [m.toLowerCase(), x])
|
|
97805
|
+
);
|
|
97806
|
+
var svmSavingsCuration = (mint, row) => {
|
|
97807
|
+
const pinned = SVM_SAVINGS_CURATION[mint] ?? CI.get(mint.toLowerCase());
|
|
97808
|
+
if (pinned) return pinned;
|
|
97809
|
+
const reflect = REFLECT_TRANCHE_SIDES[mint] ?? REFLECT_CI.get(mint.toLowerCase());
|
|
97810
|
+
if (reflect)
|
|
97811
|
+
return {
|
|
97812
|
+
description: reflectTrancheDescription(reflect[0], reflect[1]),
|
|
97813
|
+
solvency: reflect[0] === "senior" ? "tranched-senior" : "tranched-junior"
|
|
97814
|
+
};
|
|
97815
|
+
if (row?.brand !== "Exponent") return void 0;
|
|
97816
|
+
const t = EXPONENT_TRANCHE_NAME.exec(row.name ?? "");
|
|
97817
|
+
if (!t) return void 0;
|
|
97818
|
+
return {
|
|
97819
|
+
description: exponentTrancheDescription(
|
|
97820
|
+
t[1] === "Senior" ? "senior" : "junior",
|
|
97821
|
+
t[2]
|
|
97822
|
+
)
|
|
97823
|
+
};
|
|
97824
|
+
};
|
|
97292
97825
|
var VAULT_VENUE_PREFIX = "vault.";
|
|
97293
97826
|
function isVaultVenue(uidOrVenue) {
|
|
97294
97827
|
return uidOrVenue.startsWith(VAULT_VENUE_PREFIX);
|
|
@@ -98168,6 +98701,40 @@ function sum(a, b) {
|
|
|
98168
98701
|
return (a ?? 0) + (b ?? 0);
|
|
98169
98702
|
}
|
|
98170
98703
|
|
|
98704
|
+
// src/terms/vault/managedVaultCuration.ts
|
|
98705
|
+
function syntropiaTrancheDescription(t) {
|
|
98706
|
+
const common = `All three Syntropia vaults (synUSD+ senior, synUSD mezzanine, synUSDx junior) fund ONE portfolio of delta-neutral strategies on on-chain venues, run by Syntropia's trading software out of a treasury of multisigs, cold wallets and the software's own ephemeral keys. The share price is the NAV Syntropia reports into the Lagoon vault, not a value any contract computes; deposits and redemptions settle in batches. The tranche order is Syntropia's own accounting between three separate vaults \u2014 no contract enforces it.`;
|
|
98707
|
+
switch (t) {
|
|
98708
|
+
case "senior":
|
|
98709
|
+
return `The SENIOR tranche (synUSD+). Its USDC is lent to the junior tranche, whose holders use it as leverage, at a rate Syntropia sets; USDC the junior does not take is deployed into the strategies directly, with 1:1 loss exposure. The protection is the junior tranche's capital and ends when that is gone. ` + common;
|
|
98710
|
+
case "mezzanine":
|
|
98711
|
+
return `The MEZZANINE tranche (synUSD): every USDC is deployed into the strategies, so a holder carries the portfolio's gains and losses 1:1 \u2014 no senior protection and no leverage. ` + common;
|
|
98712
|
+
case "junior":
|
|
98713
|
+
return `The JUNIOR, FIRST-LOSS tranche (synUSDx). Its USDC is the margin for a position Syntropia targets at about 5x the junior's size in the portfolio, funded by the senior tranche, plus a 1\u20132 % share of the portfolio's yield. A loss in the portfolio lands on the junior LEVERED \u2014 at 5x, a 1 % loss is about 5 % \u2014 so its return can be negative. ` + common;
|
|
98714
|
+
}
|
|
98715
|
+
}
|
|
98716
|
+
var SYNTROPIA = [
|
|
98717
|
+
["0xd17049ed25d8f99fe3bfd10cef2263da9995cfd8", "senior"],
|
|
98718
|
+
["0x1b2cb79a4564206f53ba80b4d780f251b4ae6765", "mezzanine"],
|
|
98719
|
+
["0x8df3deba711ae4a9af16cbca5e4fbb1402f036d5", "junior"]
|
|
98720
|
+
];
|
|
98721
|
+
var SOLVENCY = {
|
|
98722
|
+
senior: "tranched-senior",
|
|
98723
|
+
// 1:1 over a curator-reported NAV — the trust class with no tranche.
|
|
98724
|
+
mezzanine: "nav-attested",
|
|
98725
|
+
junior: "tranched-junior"
|
|
98726
|
+
};
|
|
98727
|
+
var MANAGED_VAULT_CURATION = Object.fromEntries(
|
|
98728
|
+
SYNTROPIA.map(([address, t]) => [
|
|
98729
|
+
`1:${address}`,
|
|
98730
|
+
{ description: syntropiaTrancheDescription(t), solvency: SOLVENCY[t] }
|
|
98731
|
+
])
|
|
98732
|
+
);
|
|
98733
|
+
function managedVaultCuration(provider, chainId, address) {
|
|
98734
|
+
if (provider !== "lagoon") return void 0;
|
|
98735
|
+
return MANAGED_VAULT_CURATION[`${chainId}:${address.toLowerCase()}`];
|
|
98736
|
+
}
|
|
98737
|
+
|
|
98171
98738
|
// src/terms/vault/input.ts
|
|
98172
98739
|
var num16 = (v) => {
|
|
98173
98740
|
if (typeof v === "number") return Number.isFinite(v) ? v : void 0;
|
|
@@ -98290,9 +98857,12 @@ function toVaultTermInput(vault, provider, chainId) {
|
|
|
98290
98857
|
exposures: Array.isArray(row.exposures) ? row.exposures : void 0
|
|
98291
98858
|
};
|
|
98292
98859
|
}
|
|
98293
|
-
function savingsCuration(provider, chainId, address) {
|
|
98294
|
-
if (provider !== "savings")
|
|
98295
|
-
|
|
98860
|
+
function savingsCuration(provider, chainId, address, row) {
|
|
98861
|
+
if (provider !== "savings") {
|
|
98862
|
+
const managed = managedVaultCuration(provider, chainId, address);
|
|
98863
|
+
return managed ? { description: managed.description, solvency: managed.solvency } : {};
|
|
98864
|
+
}
|
|
98865
|
+
const svm = svmSavingsCuration(address, row);
|
|
98296
98866
|
if (svm)
|
|
98297
98867
|
return {
|
|
98298
98868
|
description: svm.description || void 0,
|
|
@@ -98322,7 +98892,10 @@ function vaultTermInputFromEarnMarket(m) {
|
|
|
98322
98892
|
const provider = m.venue.startsWith(VAULT_VENUE_PREFIX) ? m.venue.slice(VAULT_VENUE_PREFIX.length) : void 0;
|
|
98323
98893
|
if (!provider) return void 0;
|
|
98324
98894
|
const meta = m.providerMeta ?? {};
|
|
98325
|
-
const curated = savingsCuration(provider, m.chainId, m.ref
|
|
98895
|
+
const curated = savingsCuration(provider, m.chainId, m.ref, {
|
|
98896
|
+
brand: m.brand,
|
|
98897
|
+
name: m.name
|
|
98898
|
+
});
|
|
98326
98899
|
return {
|
|
98327
98900
|
provider,
|
|
98328
98901
|
chainId: m.chainId,
|
|
@@ -98410,7 +98983,10 @@ function vaultTermInputFromSourceRow(row, chainId) {
|
|
|
98410
98983
|
const info = row.vaultInfo ?? {};
|
|
98411
98984
|
const assetInfo = row.underlyingInfo?.asset;
|
|
98412
98985
|
const assetDecimals = num16(row.assetDecimals) ?? num16(assetInfo?.decimals) ?? num16(row.decimals);
|
|
98413
|
-
const curated = savingsCuration(provider, chainId, address
|
|
98986
|
+
const curated = savingsCuration(provider, chainId, address, {
|
|
98987
|
+
brand: str7(row.curatorName) ?? str7(meta.brand),
|
|
98988
|
+
name: str7(info.name) ?? str7(row.displayName) ?? str7(row.name)
|
|
98989
|
+
});
|
|
98414
98990
|
return {
|
|
98415
98991
|
provider,
|
|
98416
98992
|
chainId,
|
|
@@ -103871,6 +104447,22 @@ var SVM_EARN_VAULT_BUILDERS = {
|
|
|
103871
104447
|
requestVerbs: ["deposit", "request-withdraw", "claim", "cancel"],
|
|
103872
104448
|
requires: { withdraw: SHARES, "request-withdraw": SHARES }
|
|
103873
104449
|
},
|
|
104450
|
+
// Perena (bankineco): USD*, USD*-P and any curator vault of the program —
|
|
104451
|
+
// execute_deposit / execute_(tranche_)withdraw in the transaction, the base
|
|
104452
|
+
// asset (USDC) in, SHARES out, paid only out of the vault's idle balance.
|
|
104453
|
+
// The share resolves from the chain (its mint authority is the Vault PDA)
|
|
104454
|
+
"savings:Perena": {
|
|
104455
|
+
verbs: ["deposit", "withdraw"],
|
|
104456
|
+
requires: { withdraw: SHARES }
|
|
104457
|
+
},
|
|
104458
|
+
// USD*-J — the junior tranche: the same instant exit (at the early-unstake
|
|
104459
|
+
// fee) plus a queued one: request (shares) → Perena's fulfiller pays it, or
|
|
104460
|
+
// the holder claims it after the lockup (`requestId` = the queue account,
|
|
104461
|
+
// none = every due one) — or cancel
|
|
104462
|
+
"savings:Perena-junior": {
|
|
104463
|
+
verbs: ["deposit", "withdraw", "request-withdraw", "claim", "cancel"],
|
|
104464
|
+
requires: { withdraw: SHARES, "request-withdraw": SHARES }
|
|
104465
|
+
},
|
|
103874
104466
|
// GLAM single-asset vaults (Solstice stSLX): subscribe in the transaction;
|
|
103875
104467
|
// a queued redeem by SHARES (7-day hard notice), a permissionless fulfil +
|
|
103876
104468
|
// claim in one transaction, and a cancel inside the window
|
|
@@ -103878,6 +104470,31 @@ var SVM_EARN_VAULT_BUILDERS = {
|
|
|
103878
104470
|
verbs: ["deposit", "request-withdraw", "claim", "cancel"],
|
|
103879
104471
|
requires: { "request-withdraw": SHARES }
|
|
103880
104472
|
},
|
|
104473
|
+
// Exponent tranching (srEHYUSD / jrEHYUSD … — every side of every market
|
|
104474
|
+
// in Exponent's roster): the market's own `wrapper_deposit` /
|
|
104475
|
+
// `wrapper_withdraw`, same transaction (calldata-sdk-sol
|
|
104476
|
+
// `ComposerExponentTrancheActions`). The base in (or any mint with a direct
|
|
104477
|
+
// Jupiter hop into it), LP SHARES out into the base — capped by the side's
|
|
104478
|
+
// own SY, refused outside `Active`
|
|
104479
|
+
"savings:Exponent": {
|
|
104480
|
+
verbs: ["deposit", "withdraw"],
|
|
104481
|
+
payAsset: true,
|
|
104482
|
+
requires: { withdraw: SHARES }
|
|
104483
|
+
},
|
|
104484
|
+
// Reflect tranches (calldata-sdk-sol `ComposerReflectActions`): the SENIOR
|
|
104485
|
+
// wraps / unwraps in the transaction at the proxy's oracle price — the
|
|
104486
|
+
// underlying in, SHARES out, capped by the vault; the JUNIOR deposits in
|
|
104487
|
+
// the transaction and exits by a cooldown request (by SHARES), then a claim
|
|
104488
|
+
// inside the claim window (`requestId` = the cooldown account, or none =
|
|
104489
|
+
// every claimable one). No cancel exists.
|
|
104490
|
+
"savings:ReflectSenior": {
|
|
104491
|
+
verbs: ["deposit", "withdraw"],
|
|
104492
|
+
requires: { withdraw: SHARES }
|
|
104493
|
+
},
|
|
104494
|
+
"savings:ReflectJunior": {
|
|
104495
|
+
verbs: ["deposit", "request-withdraw", "claim"],
|
|
104496
|
+
requires: { "request-withdraw": SHARES }
|
|
104497
|
+
},
|
|
103881
104498
|
// INF: Sanctum Infinity's own add / remove liquidity against wSOL; the
|
|
103882
104499
|
// remove by SHARES
|
|
103883
104500
|
"savings:Sanctum": {
|
|
@@ -103942,9 +104559,33 @@ var SVM_EARN_MINT_BUILDERS = {
|
|
|
103942
104559
|
"5Y8NV33Vv7WbnLfq3zBcKSdYPrk7g2KoiQoe7M2tcxp5": "savings:OnRe",
|
|
103943
104560
|
// JLP
|
|
103944
104561
|
"27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4": "savings:Jupiter",
|
|
104562
|
+
// Perena USD*-J (the junior tranche has a queued exit the other classes lack)
|
|
104563
|
+
"3AJYCjrhKitmBd8tRUurPA5dGHCAQh6A8L9DkuSC37Rm": "savings:Perena-junior",
|
|
103945
104564
|
// Hastra PRIME, AUTO
|
|
103946
104565
|
"3b8X44fLF9ooXaUm3hhSgjpmVs6rZZ3pPoGnGahc3Uu7": "savings:Hastra",
|
|
103947
104566
|
GNE6oDS6jHrfaV3GQVVCCp37fDnT7PiPuewMKBj2bqNm: "savings:Hastra",
|
|
104567
|
+
// Reflect tranches — senior (Protected …) and junior (Amplified …) per
|
|
104568
|
+
// market, margin-fetcher-sol `REFLECT_MARKETS`
|
|
104569
|
+
sro4agJ6nJ89MJgj2DfDdx8zXVqSyZfCZjbhBfQaJU5: "savings:ReflectSenior",
|
|
104570
|
+
// pSyrupUSDC
|
|
104571
|
+
jrByePxMbHAevzMG4kjUrfMWoZ7bQYwwKJTPcq2WysG: "savings:ReflectJunior",
|
|
104572
|
+
// aSyrupUSDC
|
|
104573
|
+
sRr4h6qhdZAqQjstXbqKNvtdj1pNDPczLr49HQ5QaRS: "savings:ReflectSenior",
|
|
104574
|
+
// pPRIME
|
|
104575
|
+
JrGsMfJodyVEqLGnyAKa9qHzRqZ9dzFfeSjouV3qEeG: "savings:ReflectJunior",
|
|
104576
|
+
// aPRIME
|
|
104577
|
+
SRcbNRqXP585fbxMNo2NkCbrgjZNZv9y8JMcwXonUap: "savings:ReflectSenior",
|
|
104578
|
+
// pEHYUSD
|
|
104579
|
+
jrZjCWLJMu5rabYcu1fbkZPK6daMdjLbyQM5NVeVGNG: "savings:ReflectJunior",
|
|
104580
|
+
// aEHYUSD
|
|
104581
|
+
SrBhwwen83jYAkgpMqT9k1yjjeM3ciYdoCNyMzVY1eH: "savings:ReflectSenior",
|
|
104582
|
+
// pREUSD
|
|
104583
|
+
jrFLwUZLRwk6JyQhqnVR2vkBgziNapAu6aJiS8MeWac: "savings:ReflectJunior",
|
|
104584
|
+
// aREUSD
|
|
104585
|
+
sRTteWAWvtdmNPMRvhbJWBsa687CYeRt2jJFnUfTQfr: "savings:ReflectSenior",
|
|
104586
|
+
// pSUSDG
|
|
104587
|
+
jrsLHAvEaeyyWSqey33Vm8oaddxTNRx4vbD7ZvyTn8E: "savings:ReflectJunior",
|
|
104588
|
+
// aSUSDG
|
|
103948
104589
|
// Sanctum INF
|
|
103949
104590
|
"5oVNBeEEQvYi1cX3ir8Dx5n1P7pdxydbGF2X4TxVusJm": "savings:Sanctum",
|
|
103950
104591
|
// Jito Restaking VRTs: Renzo ezSOL, Kyros kySOL
|
|
@@ -104001,7 +104642,12 @@ var ROSTER_BRAND_BUILDERS = /* @__PURE__ */ new Set([
|
|
|
104001
104642
|
"savings:Nest",
|
|
104002
104643
|
// any share mint of the shared august_vault program: its mint authority is
|
|
104003
104644
|
// the VaultState, so the route resolves the vault from the chain
|
|
104004
|
-
"savings:Upshift"
|
|
104645
|
+
"savings:Upshift",
|
|
104646
|
+
// any LP mint of Exponent's tranching roster (both sides of every market)
|
|
104647
|
+
"savings:Exponent",
|
|
104648
|
+
// any share mint of the bankineco program (USD*, USD*-P, curator vaults):
|
|
104649
|
+
// its mint authority is the Vault PDA
|
|
104650
|
+
"savings:Perena"
|
|
104005
104651
|
]);
|
|
104006
104652
|
var UNBUILT_REASONS = {
|
|
104007
104653
|
lst: "Solana LST staking is not built in this API yet"
|
|
@@ -104604,7 +105250,7 @@ function earnPositionTotals(items) {
|
|
|
104604
105250
|
|
|
104605
105251
|
// src/boros/api.ts
|
|
104606
105252
|
var BOROS_API_BASE = "https://api.boros.finance/open-api";
|
|
104607
|
-
var
|
|
105253
|
+
var TIMEOUT_MS9 = 8e3;
|
|
104608
105254
|
var BorosApiError = class extends Error {
|
|
104609
105255
|
constructor(message2, status, errorCode) {
|
|
104610
105256
|
super(message2);
|
|
@@ -104622,7 +105268,7 @@ async function borosApi(path, init, fetchImpl = fetch) {
|
|
|
104622
105268
|
...init?.body !== void 0 ? { "content-type": "application/json" } : {}
|
|
104623
105269
|
},
|
|
104624
105270
|
body: init?.body !== void 0 ? JSON.stringify(init.body) : void 0,
|
|
104625
|
-
signal: AbortSignal.timeout(
|
|
105271
|
+
signal: AbortSignal.timeout(TIMEOUT_MS9)
|
|
104626
105272
|
});
|
|
104627
105273
|
const text = await res.text();
|
|
104628
105274
|
let json;
|
|
@@ -105156,8 +105802,8 @@ async function fetchBorosAccount(account, fetchImpl) {
|
|
|
105156
105802
|
}
|
|
105157
105803
|
|
|
105158
105804
|
// src/boros/margin.ts
|
|
105159
|
-
var
|
|
105160
|
-
var ttmYears = (m, ttmSec) => Math.max(ttmSec ?? m.timeToMaturitySec, m.margin.tThreshSec) /
|
|
105805
|
+
var SECONDS_PER_YEAR24 = 365 * 24 * 3600;
|
|
105806
|
+
var ttmYears = (m, ttmSec) => Math.max(ttmSec ?? m.timeToMaturitySec, m.margin.tThreshSec) / SECONDS_PER_YEAR24;
|
|
105161
105807
|
function borosInitialMargin(m, size, ratePct, ttmSec) {
|
|
105162
105808
|
const r = Math.max(Math.abs(ratePct) / 100, m.margin.rateFloor);
|
|
105163
105809
|
return Math.abs(size) * r * m.margin.kIM * ttmYears(m, ttmSec);
|
|
@@ -105167,7 +105813,7 @@ function borosMaintenanceMargin(m, size, markPct, ttmSec) {
|
|
|
105167
105813
|
return Math.abs(size) * r * m.margin.kMM * ttmYears(m, ttmSec);
|
|
105168
105814
|
}
|
|
105169
105815
|
function borosTakerFee(m, size) {
|
|
105170
|
-
return Math.abs(size) * m.fees.takerFee * m.timeToMaturitySec /
|
|
105816
|
+
return Math.abs(size) * m.fees.takerFee * m.timeToMaturitySec / SECONDS_PER_YEAR24;
|
|
105171
105817
|
}
|
|
105172
105818
|
function walkBorosBook(levels, size) {
|
|
105173
105819
|
let left = size;
|
|
@@ -105189,7 +105835,7 @@ function walkBorosBook(levels, size) {
|
|
|
105189
105835
|
};
|
|
105190
105836
|
}
|
|
105191
105837
|
function borosRateMoveToLiquidation(m, size, equity, markPct) {
|
|
105192
|
-
const ttm = m.timeToMaturitySec /
|
|
105838
|
+
const ttm = m.timeToMaturitySec / SECONDS_PER_YEAR24;
|
|
105193
105839
|
if (!(Math.abs(size) > 0) || !(ttm > 0)) return null;
|
|
105194
105840
|
const mm = borosMaintenanceMargin(m, size, markPct);
|
|
105195
105841
|
const slack = equity - mm;
|
|
@@ -105281,7 +105927,7 @@ function quoteBorosHedgeLeg(p) {
|
|
|
105281
105927
|
const fixed = fill.avgAprPct;
|
|
105282
105928
|
const floating = m.rates.floatingApr;
|
|
105283
105929
|
const takerFee = borosTakerFee(m, size);
|
|
105284
|
-
const ttmYears2 = m.timeToMaturitySec /
|
|
105930
|
+
const ttmYears2 = m.timeToMaturitySec / SECONDS_PER_YEAR24;
|
|
105285
105931
|
const settleAprPct = m.fees.settleFee != null ? m.fees.settleFee * 100 : null;
|
|
105286
105932
|
const allIn = ttmYears2 > 0 ? takerFee / size / ttmYears2 * 100 + (settleAprPct ?? 0) : null;
|
|
105287
105933
|
const rateForMargin = fixed ?? m.rates.markApr ?? 0;
|
|
@@ -105503,6 +106149,6 @@ function hedgeImplications(h, p) {
|
|
|
105503
106149
|
return out;
|
|
105504
106150
|
}
|
|
105505
106151
|
|
|
105506
|
-
export { ALCHEMIX_BLOCK_SECONDS, ApiBookSource, BOROS_API_BASE, BOROS_GOVERNANCE, BOROS_MIN_CASH_USD, BOROS_PROFILE_ID, BorosApiError, DEFAULT_CONSENSUS_DEMOTION, DEFAULT_MIDNIGHT_API, DEFAULT_OUTLIER_GUARD, DEFAULT_PROFILE_ID, DEFAULT_STALE_REJECT_SECONDS, DEFAULT_TERMMAX_API, DEFAULT_TERM_ORDER_STORE, DOLOMITE_ISO_ID_PREFIX, EARN_DESCRIPTIONS, EARN_LABELS, EARN_RATE_SOURCE_BY_PROVIDER, EMPTY_BALANCE, EXACTLY_LENDER_KEY, EXPONENT_MATURED_REASON, FIXED_YIELD_EARN_VENUE_PREFIXES, FLYING_TULIP_LENDER_KEY, FRACTION_RATE_PROVIDERS, FUNDING_EXPOSURE_PROFILES, FUNDING_HEDGE_REFERENCE_USD, 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_URL2 as PENDLE_MARKETS_URL, PREFIX_LENDERS, RATE_QUEUE_MAX_LEVELS, RATE_QUEUE_STEP, 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_SAVINGS_CURATION, 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, USER_REWARD_SOURCES, USER_SET_RATE_PICKS, VAULT_PROVIDERS, VAULT_PROVIDER_PROFILE, VAULT_PROVIDER_TRAITS, VAULT_SHARE_PRICE_PROBE, VAULT_VENUE_PREFIX, VENUS_CORE_POOL_ID, VOLATILE_VAULT_OVERRIDES, VenusEModeAbi, YEARN_CHAIN_IDS, YEARN_YDAEMON_BASE, __resetResupplyUserCaches, accountDepositListKey, accountWithdrawalListKey, alchemixLenderKey, alchemixMytRate, alchemixRedemptionPace, appendSnapshot, applyEarnSanity, applyPositionDelta, attachImplications, attachPricesToFlashLiquidity, blockNumberFromTag, borosApi, borosInitialMargin, borosMaintenanceMargin, borosRateMoveToLiquidation, borosSideTerms, borosTakerFee, borrowDescription, borrowFindings, borrowHeadline, buildBorosTermSheet, buildExposures2 as buildExposures, buildFluidFTokensCall, buildFundingHedgeTerms, buildLendingPositionUid, buildLiquityUserCall, buildLoopResult, buildMorphoTypeCall, buildMorphoTypeUserCallWithLens, buildPortfolioTotals, buildQueriesFromMeta, buildRateQueue, 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, convertAlchemixMarketsToResponse, convertBorosCandle, convertBorosMarket, convertCoolerMarketsToResponse, convertDssMarketsToResponse, convertExactlyMarketsToResponse, convertFlexMarketsToResponse, convertFlyingTulipMarketsToResponse, convertFrankencoinMarketsToResponse, convertFraxlendPairsToResponse, convertInverseMarketsToResponse, convertLenderUserDataResult, convertLiquityMarketsToResponse, convertLlamaLendMarketsToResponse, convertResupplyMarketsToResponse, convertRipeMarketsToResponse, convertRiverMarketsToResponse, convertTellerMarketsToResponse, convertTermMarketsToResponse, convertTermMaxMarketsToResponse, convertUsddMarketsToResponse, createMarketUid, createMidnightBookSource, createMultiAccountTypeUserState, createMulticallRpcCall, createRawRpcCalls, createTermBookSource, createTermMaxDataSource, debtAheadOf, decodeListaMarkets, decodeMarkets, decodePackedListaUserDataset, decodePackedMorphoUserDataset, deriveBorrowTags, deriveSupplyTags, deriveSwapTags, detectInterfaceKinds, dexResolverFor, disambiguateEarnNames, disambiguateOrderBookNames, discoverFlexTroves, dolomiteVaultAddress, dssIlkBytes32, dssKeyParts, dssLenderKey, duration, earnDescription, earnLabel, earnMarketFromPool, earnMarketFromVault, earnMarketLabel, earnPositionFromLenderEntry, earnPositionFromVaultBalance, earnPositionTotals, earnRateAtMaturity, earnRowFundingProfile, earnRowSubtitle, earnUidFromMarketUid, earnVaultTerms, earnVenueKind, emitterCoverage, encodeBalanceFetcherCalldata, enrichTermSheet, enrichmentIndexFromRows, enumerateEmitters, exactlyPairLtv, exactlyPenaltyRateToAprPercent, exactlyWadRateToPercent, feePhrase, feedKeyOf, feedStatKey, fetchAaveIncentivesUserRewards, fetchAlchemixMarkets, fetchBorosAccount, fetchBorosCollaterals, fetchBorosMarket, fetchBorosMarketById, fetchBorosMarkets, fetchBorosOrderBook, fetchBorosRateHistory, fetchCoolerMarkets, fetchDolomiteAccountNumbers, fetchDolomiteSubAccounts, fetchDssMarkets, fetchEulerEarnVaults, fetchEulerEarnVaultsFromSubgraph, fetchEulerSubAccountIndexes, fetchExactlyMarkets, fetchFlashLiquidityForChain, fetchFlexMarkets, fetchFluidDexState, fetchFluidFTokens, fetchFlyingTulipMarkets, fetchFlyingTulipUserRewards, fetchFrankencoinMarkets, fetchFraxlendPairs, fetchGeneralYields, fetchGeneralYieldsByMarketUid, fetchGmxExecutionFees, fetchGmxTickerPrices, fetchGmxVaults, fetchHypercoreVaults, fetchInverseMarkets, fetchLagoonApiVaults, fetchLagoonVaults, fetchLenderRewards, fetchLenderRewardsByMarketUid, fetchLiquityMarkets, fetchListaMarketEmissions, fetchListaUserRewards, fetchListaVaultEmissions, fetchListaVaultsFromChain, fetchLlamaLendMarkets, fetchMerklUserRewards, 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, fetchUserRewards, fetchUsualRewardsClaimData, fetchYearnApiVaults, fetchYearnVaults, fillableRemaining, filterActiveLenders, filterLenderMeta, filterLendersByProtocol, finalizeInfo, findingsFor, flexAverageRate, flexLenderApr, flexLenderKey, flexMarketIndex, formatRaw, frankencoinKeyParts, frankencoinLenderKey, fraxlendAssetPerCollateral, fraxlendKeyParts, fraxlendLenderKey, fundingExposureOf, fundingSymbolBase, fuseLenderData, generateLendingPools, getAavesForChain, getAssetConfig, getBalanceForMarketUid, getBorrowCapacity, getCachedFluidDexState, getCachedLiquityTroves, getCachedTellerBids, getCachedTermMaxDiscovery, getCachedTermMaxMarket, getCachedTermMaxMarkets, getCoreValidators, getFluidFTokensConverter, getGmxApiHost, getGmxReadContracts, getGmxUserPositions, getHealthFactor, getHypercoreUserPositions, getHypercoreVaultRegistry, getLenderAssets, getLenderPublicData, getLenderPublicDataAll, getLenderPublicDataViaApi, getLenderUserDataMulti, getLenderUserDataResult, getLendersForChain, getLstDelegation, getLstValidators, getLstWithdrawalRegistry, getLstWithdrawalRequests, getMaxAmountClose, getMaxAmountCollateralSwap, getMaxAmountDebtSwap, getMaxAmountOpen, getMergedUserData, getMidnightChainBooks, getMorphoTypeMarketConverter, getReadFailurePolicy, getResolvedDolomiteAccountNumbers, getResolvedDolomiteSubAccounts, getStCeloValidatorGroups, getSubAccountAddress, getSubAccountIndex, getTermProfile, getVaultPublicDataAll, getVaultWithdrawalRequests, getVenusEModeSetup, hasCritical, hasEulerEarnVaultSubgraph, hasLagoonVaults, hasMorphoPositionIndex, hasMorphoUserApi, hasMorphoUserSubgraph, hasPendleMarkets, hasSpectraMarkets, hasUpshiftVaults, hasYearnVaults, ilkToKeySegment, implausibleRatePercent, injectLenderInfoIntoEntries, inverseKeyParts, inverseLenderKey, isBoundNeed, isFailedCall, isFixedYieldEarnRow, isIlliquid, isLenderVenueKey, isLendingPosition, isLiveMarket as isLivePendleMarket, isLiveSpectraMarket, isMaturedTerm, isOrderBookCollateralLeg, isOrderBookLendRow, isPrincipalTokenSymbol, isRollingBookLendRow, isSecondaryMarketOnly, isStablecoinSymbol, isSyntheticQuoteUnit, isUnearnableEarnRate, isUnrealizableEarnRate, isVaultPosition, isVaultVenue, isYearnV3, keySegmentToIlk, keysFromMaps, lenderApiOnly, lenderFamily, lenderLiquidityPressure, liquityCandidateTroveIds, liquityKeyParts, liquityLenderKey, listaEmissionRewardFetcher, listaLoginMessage, 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, pegPressure, assetKey as pendleAssetKey, pickPool as pickSpectraPool, positivePart2 as positivePart, predictInverseEscrow, prepareLenderUserDataRpcCalls, prepareMergedMulticallParams, prepareMergedRpcCalls, prepareMulticallInputs, prepareTokenBalanceRpcCalls, priceGlvVaults, priceGmMarkets, probeAaveFeedTimestamps, protocolConsensus, protocolOf, pruneFeedStats, quoteBorosHedgeLeg, rankBorosHedgeMarkets, rankFindings, ratePercent, readLstPauseState, readTransmuterLots, readUserPositions, readVaultSharePrices, rejectOutliers as rejectPriceOutliers, repairImpossibleTvl, resolveAdapter, resolveDerivation, resolveDolomiteRowIdentity, resolveEarnIdentity, resolveMerklOpportunityMarkets, resolveModeConfig, resolveStCeloDepositGroup, resolveVaultProfileId, resupplyKeyParts, resupplyLenderKey, resupplyMarketLabel, riverKeyParts, riverLenderKey, sanePercent as saneSpectraPercent, savingsAddresses, savingsBalanceKind, secondaryMarketVault, selectAssetGroupPrices, selectUsualRewardEntry, setMysticApiKey, shortDate, spectraAddress, spectraNetwork, spectraPoolsUrl, splitChainScopedAddress as splitPendleChainScopedAddress, stampCapabilities, stampEarnSubtitles, stampOrderBookLendRow, stampRollingBookLendRow, stampVaultClassification, stampVaultTermSheets, stripLeadingBrand, subAccountsOf, supplyDescription, supplyFindings, supplyHeadline, svmEarnBuildability, svmEarnBuilderKey, svmSavingsCuration, swapRoutedProvidersArePriceConsistent, swapSideDescription, swapSideHeadline, swapSideImplications, tellerBpsToPercent, tellerImpliedLtv, tellerLenderKey, tellerPoolFromLenderKey, termApiBaseUrl, termLenderKey, termMaxApiBase, borrowNif as termMaxBorrowNif, curveApr as termMaxCurveApr, curveAprNumber as termMaxCurveAprNumber, daysToMaturity as termMaxDaysToMaturity, lendNif as termMaxLendNif, mintGtFeeRatio as termMaxMintGtFeeRatio, ratioToNumber as termMaxRatioToNumber, ratioToPercent as termMaxRatioToPercent, termOfferRateToAprPct, termOrderStoreBaseUrl, tickToAprNumber, tickToPrice, toDigest, toDolomiteSubAccountId, toTermFillNow, toTermSheetInput, toVaultTermInput, trancheFromCounterparty, tryParseEarnUid, unflattenLenderData, updateFeedStats, usdValue, usddIlkBytes32, usddKeyParts, usddLenderKey, validateTermSheet, validateTermSheets, validateUserData, vaultSharesToAssets, vaultTermInputFromEarnMarket, vaultTermInputFromSourceRow, vaultTraits, vaultVenue, venueBrand, venueBrandKey, walkBorosBook, withMaturityLabel, withTrancheLabel };
|
|
106152
|
+
export { ALCHEMIX_BLOCK_SECONDS, ApiBookSource, BOROS_API_BASE, BOROS_GOVERNANCE, BOROS_MIN_CASH_USD, BOROS_PROFILE_ID, BorosApiError, DEFAULT_CONSENSUS_DEMOTION, DEFAULT_MIDNIGHT_API, DEFAULT_OUTLIER_GUARD, DEFAULT_PROFILE_ID, DEFAULT_STALE_REJECT_SECONDS, DEFAULT_TERMMAX_API, DEFAULT_TERM_ORDER_STORE, DOLOMITE_ISO_ID_PREFIX, EARN_DESCRIPTIONS, EARN_LABELS, EARN_RATE_SOURCE_BY_PROVIDER, EMPTY_BALANCE, EXACTLY_LENDER_KEY, EXPONENT_MATURED_REASON, FIXED_YIELD_EARN_VENUE_PREFIXES, FLYING_TULIP_LENDER_KEY, FRACTION_RATE_PROVIDERS, FUNDING_EXPOSURE_PROFILES, FUNDING_HEDGE_REFERENCE_USD, 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_URL2 as PENDLE_MARKETS_URL, PREFIX_LENDERS, RATE_QUEUE_MAX_LEVELS, RATE_QUEUE_STEP, REFLECT_TRANCHE_SIDES, 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_SAVINGS_CURATION, 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, USER_REWARD_SOURCES, USER_SET_RATE_PICKS, VAULT_PROVIDERS, VAULT_PROVIDER_PROFILE, VAULT_PROVIDER_TRAITS, VAULT_SHARE_PRICE_PROBE, VAULT_VENUE_PREFIX, VENUS_CORE_POOL_ID, VOLATILE_VAULT_OVERRIDES, VenusEModeAbi, YEARN_CHAIN_IDS, YEARN_YDAEMON_BASE, __resetResupplyUserCaches, accountDepositListKey, accountWithdrawalListKey, alchemixLenderKey, alchemixMytRate, alchemixRedemptionPace, appendSnapshot, applyEarnSanity, applyPositionDelta, attachImplications, attachPricesToFlashLiquidity, blockNumberFromTag, borosApi, borosInitialMargin, borosMaintenanceMargin, borosRateMoveToLiquidation, borosSideTerms, borosTakerFee, borrowDescription, borrowFindings, borrowHeadline, buildBorosTermSheet, buildExposures2 as buildExposures, buildFluidFTokensCall, buildFundingHedgeTerms, buildLendingPositionUid, buildLiquityUserCall, buildLoopResult, buildMorphoTypeCall, buildMorphoTypeUserCallWithLens, buildPortfolioTotals, buildQueriesFromMeta, buildRateQueue, 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, convertAlchemixMarketsToResponse, convertBorosCandle, convertBorosMarket, convertCoolerMarketsToResponse, convertDssMarketsToResponse, convertExactlyMarketsToResponse, convertFlexMarketsToResponse, convertFlyingTulipMarketsToResponse, convertFrankencoinMarketsToResponse, convertFraxlendPairsToResponse, convertInverseMarketsToResponse, convertLenderUserDataResult, convertLiquityMarketsToResponse, convertLlamaLendMarketsToResponse, convertResupplyMarketsToResponse, convertRipeMarketsToResponse, convertRiverMarketsToResponse, convertTellerMarketsToResponse, convertTermMarketsToResponse, convertTermMaxMarketsToResponse, convertUsddMarketsToResponse, createMarketUid, createMidnightBookSource, createMultiAccountTypeUserState, createMulticallRpcCall, createRawRpcCalls, createTermBookSource, createTermMaxDataSource, debtAheadOf, decodeListaMarkets, decodeMarkets, decodePackedListaUserDataset, decodePackedMorphoUserDataset, deriveBorrowTags, deriveSupplyTags, deriveSwapTags, detectInterfaceKinds, dexResolverFor, disambiguateEarnNames, disambiguateOrderBookNames, discoverFlexTroves, dolomiteVaultAddress, dssIlkBytes32, dssKeyParts, dssLenderKey, duration, earnDescription, earnLabel, earnMarketFromPool, earnMarketFromVault, earnMarketLabel, earnPositionFromLenderEntry, earnPositionFromVaultBalance, earnPositionTotals, earnRateAtMaturity, earnRowFundingProfile, earnRowSubtitle, earnUidFromMarketUid, earnVaultTerms, earnVenueKind, emitterCoverage, encodeBalanceFetcherCalldata, enrichTermSheet, enrichmentIndexFromRows, enumerateEmitters, exactlyPairLtv, exactlyPenaltyRateToAprPercent, exactlyWadRateToPercent, exponentTrancheDescription, feePhrase, feedKeyOf, feedStatKey, fetchAaveIncentivesUserRewards, fetchAlchemixMarkets, fetchBorosAccount, fetchBorosCollaterals, fetchBorosMarket, fetchBorosMarketById, fetchBorosMarkets, fetchBorosOrderBook, fetchBorosRateHistory, fetchCoolerMarkets, fetchDolomiteAccountNumbers, fetchDolomiteSubAccounts, fetchDssMarkets, fetchEulerEarnVaults, fetchEulerEarnVaultsFromSubgraph, fetchEulerSubAccountIndexes, fetchExactlyMarkets, fetchFlashLiquidityForChain, fetchFlexMarkets, fetchFluidDexState, fetchFluidFTokens, fetchFlyingTulipMarkets, fetchFlyingTulipUserRewards, fetchFrankencoinMarkets, fetchFraxlendPairs, fetchGeneralYields, fetchGeneralYieldsByMarketUid, fetchGmxExecutionFees, fetchGmxTickerPrices, fetchGmxVaults, fetchHypercoreVaults, fetchInverseMarkets, fetchLagoonApiVaults, fetchLagoonVaults, fetchLenderRewards, fetchLenderRewardsByMarketUid, fetchLiquityMarkets, fetchListaMarketEmissions, fetchListaUserRewards, fetchListaVaultEmissions, fetchListaVaultsFromChain, fetchLlamaLendMarkets, fetchMerklUserRewards, 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, fetchUserRewards, fetchUsualRewardsClaimData, fetchYearnApiVaults, fetchYearnVaults, fillableRemaining, filterActiveLenders, filterLenderMeta, filterLendersByProtocol, finalizeInfo, findingsFor, flexAverageRate, flexLenderApr, flexLenderKey, flexMarketIndex, formatRaw, frankencoinKeyParts, frankencoinLenderKey, fraxlendAssetPerCollateral, fraxlendKeyParts, fraxlendLenderKey, fundingExposureOf, fundingSymbolBase, fuseLenderData, generateLendingPools, getAavesForChain, getAssetConfig, getBalanceForMarketUid, getBorrowCapacity, getCachedFluidDexState, getCachedLiquityTroves, getCachedTellerBids, getCachedTermMaxDiscovery, getCachedTermMaxMarket, getCachedTermMaxMarkets, getCoreValidators, getFluidFTokensConverter, getGmxApiHost, getGmxReadContracts, getGmxUserPositions, getHealthFactor, getHypercoreUserPositions, getHypercoreVaultRegistry, getLenderAssets, getLenderPublicData, getLenderPublicDataAll, getLenderPublicDataViaApi, getLenderUserDataMulti, getLenderUserDataResult, getLendersForChain, getLstDelegation, getLstValidators, getLstWithdrawalRegistry, getLstWithdrawalRequests, getMaxAmountClose, getMaxAmountCollateralSwap, getMaxAmountDebtSwap, getMaxAmountOpen, getMergedUserData, getMidnightChainBooks, getMorphoTypeMarketConverter, getReadFailurePolicy, getResolvedDolomiteAccountNumbers, getResolvedDolomiteSubAccounts, getStCeloValidatorGroups, getSubAccountAddress, getSubAccountIndex, getTermProfile, getVaultPublicDataAll, getVaultWithdrawalRequests, getVenusEModeSetup, hasCritical, hasEulerEarnVaultSubgraph, hasLagoonVaults, hasMorphoPositionIndex, hasMorphoUserApi, hasMorphoUserSubgraph, hasPendleMarkets, hasSpectraMarkets, hasUpshiftVaults, hasYearnVaults, ilkToKeySegment, implausibleRatePercent, injectLenderInfoIntoEntries, inverseKeyParts, inverseLenderKey, isBoundNeed, isFailedCall, isFixedYieldEarnRow, isIlliquid, isLenderVenueKey, isLendingPosition, isLiveMarket as isLivePendleMarket, isLiveSpectraMarket, isMaturedTerm, isOrderBookCollateralLeg, isOrderBookLendRow, isPrincipalTokenSymbol, isRollingBookLendRow, isSecondaryMarketOnly, isStablecoinSymbol, isSyntheticQuoteUnit, isUnearnableEarnRate, isUnrealizableEarnRate, isVaultPosition, isVaultVenue, isYearnV3, keySegmentToIlk, keysFromMaps, lenderApiOnly, lenderFamily, lenderLiquidityPressure, liquityCandidateTroveIds, liquityKeyParts, liquityLenderKey, listaEmissionRewardFetcher, listaLoginMessage, 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, pegPressure, assetKey as pendleAssetKey, pickPool as pickSpectraPool, positivePart2 as positivePart, predictInverseEscrow, prepareLenderUserDataRpcCalls, prepareMergedMulticallParams, prepareMergedRpcCalls, prepareMulticallInputs, prepareTokenBalanceRpcCalls, priceGlvVaults, priceGmMarkets, probeAaveFeedTimestamps, protocolConsensus, protocolOf, pruneFeedStats, quoteBorosHedgeLeg, rankBorosHedgeMarkets, rankFindings, ratePercent, readLstPauseState, readTransmuterLots, readUserPositions, readVaultSharePrices, reflectTrancheDescription, rejectOutliers as rejectPriceOutliers, repairImpossibleTvl, resolveAdapter, resolveDerivation, resolveDolomiteRowIdentity, resolveEarnIdentity, resolveMerklOpportunityMarkets, resolveModeConfig, resolveStCeloDepositGroup, resolveVaultProfileId, resupplyKeyParts, resupplyLenderKey, resupplyMarketLabel, riverKeyParts, riverLenderKey, sanePercent as saneSpectraPercent, savingsAddresses, savingsBalanceKind, secondaryMarketVault, selectAssetGroupPrices, selectUsualRewardEntry, setMysticApiKey, shortDate, spectraAddress, spectraNetwork, spectraPoolsUrl, splitChainScopedAddress as splitPendleChainScopedAddress, stampCapabilities, stampEarnSubtitles, stampOrderBookLendRow, stampRollingBookLendRow, stampVaultClassification, stampVaultTermSheets, stripLeadingBrand, subAccountsOf, supplyDescription, supplyFindings, supplyHeadline, svmEarnBuildability, svmEarnBuilderKey, svmSavingsCuration, swapRoutedProvidersArePriceConsistent, swapSideDescription, swapSideHeadline, swapSideImplications, tellerBpsToPercent, tellerImpliedLtv, tellerLenderKey, tellerPoolFromLenderKey, termApiBaseUrl, termLenderKey, termMaxApiBase, borrowNif as termMaxBorrowNif, curveApr as termMaxCurveApr, curveAprNumber as termMaxCurveAprNumber, daysToMaturity as termMaxDaysToMaturity, lendNif as termMaxLendNif, mintGtFeeRatio as termMaxMintGtFeeRatio, ratioToNumber as termMaxRatioToNumber, ratioToPercent as termMaxRatioToPercent, termOfferRateToAprPct, termOrderStoreBaseUrl, tickToAprNumber, tickToPrice, toDigest, toDolomiteSubAccountId, toTermFillNow, toTermSheetInput, toVaultTermInput, trancheFromCounterparty, tryParseEarnUid, unflattenLenderData, updateFeedStats, usdValue, usddIlkBytes32, usddKeyParts, usddLenderKey, validateTermSheet, validateTermSheets, validateUserData, vaultSharesToAssets, vaultTermInputFromEarnMarket, vaultTermInputFromSourceRow, vaultTraits, vaultVenue, venueBrand, venueBrandKey, walkBorosBook, withMaturityLabel, withTrancheLabel };
|
|
105507
106153
|
//# sourceMappingURL=index.js.map
|
|
105508
106154
|
//# sourceMappingURL=index.js.map
|