@1delta/margin-fetcher 5.0.112 → 5.0.113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +345 -2
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -45414,6 +45414,52 @@ var lisAsterFetcher = {
|
|
|
45414
45414
|
return out;
|
|
45415
45415
|
}
|
|
45416
45416
|
};
|
|
45417
|
+
var LISTA_RWA_PRODUCTS_URL = "https://api.lista.org/api/rwa/product/list";
|
|
45418
|
+
var LISTA_USDT_TREASURY_KEY = "USDT.Treasury::USDT.Treasury";
|
|
45419
|
+
var LISTA_USDT_AAA_KEY = "USDT.AAA::USDT.AAA";
|
|
45420
|
+
var LISTA_SLISXAUE_KEY = "Staked Lista XAUE::slisXAUE";
|
|
45421
|
+
var CENTRIFUGE_JTRSY_KEY = "Janus Henderson Anemoy Treasury Fund::JTRSY";
|
|
45422
|
+
var CENTRIFUGE_JAAA_KEY = "Janus Henderson Anemoy AAA CLO Fund Token::JAAA";
|
|
45423
|
+
var LISTA_RWA_KEYS = {
|
|
45424
|
+
// RWAEarnPool(USDT.Treasury), BNB
|
|
45425
|
+
"0x60512aeb641e960faaac7e2bfcb1819f993e7282": [
|
|
45426
|
+
LISTA_USDT_TREASURY_KEY,
|
|
45427
|
+
CENTRIFUGE_JTRSY_KEY
|
|
45428
|
+
],
|
|
45429
|
+
// RWAEarnPool(USDT.AAA), BNB
|
|
45430
|
+
"0x82664f43676ffd81be2b472c5a2e2808952ecd56": [
|
|
45431
|
+
LISTA_USDT_AAA_KEY,
|
|
45432
|
+
CENTRIFUGE_JAAA_KEY
|
|
45433
|
+
],
|
|
45434
|
+
// XAUTStaking, Ethereum (the product row names the STAKING contract)
|
|
45435
|
+
"0x86c92ff74fa55b08b4fa0d59e41e26b14ed1150b": [LISTA_SLISXAUE_KEY]
|
|
45436
|
+
};
|
|
45437
|
+
var listaRwaFetcher = {
|
|
45438
|
+
label: "LISTA_RWA",
|
|
45439
|
+
fetch: async () => {
|
|
45440
|
+
const controller = new AbortController();
|
|
45441
|
+
const timer = setTimeout(() => controller.abort(), TIMEOUT_MS);
|
|
45442
|
+
try {
|
|
45443
|
+
const res = await fetch(LISTA_RWA_PRODUCTS_URL, {
|
|
45444
|
+
method: "GET",
|
|
45445
|
+
headers: { Accept: "application/json" },
|
|
45446
|
+
signal: controller.signal
|
|
45447
|
+
}).then((r) => r.json());
|
|
45448
|
+
const out = {};
|
|
45449
|
+
for (const p of res.data?.list ?? []) {
|
|
45450
|
+
const keys = LISTA_RWA_KEYS[String(p.contract ?? "").toLowerCase()];
|
|
45451
|
+
if (!keys) continue;
|
|
45452
|
+
const apyFraction = Number(p.apy7d);
|
|
45453
|
+
if (!Number.isFinite(apyFraction) || apyFraction <= 0) continue;
|
|
45454
|
+
const apr = apyToAprPercent(apyFraction * 100);
|
|
45455
|
+
for (const k of keys) out[k] = apr;
|
|
45456
|
+
}
|
|
45457
|
+
return out;
|
|
45458
|
+
} finally {
|
|
45459
|
+
clearTimeout(timer);
|
|
45460
|
+
}
|
|
45461
|
+
}
|
|
45462
|
+
};
|
|
45417
45463
|
var CHAIN_ID3 = "80094";
|
|
45418
45464
|
var IBERA = "0x9b6761bf2397bb5a6624a856cc84a3a14dcd3fe5";
|
|
45419
45465
|
var ONE_E182 = 10n ** 18n;
|
|
@@ -51842,6 +51888,66 @@ var NEST_ENTRIES = (() => {
|
|
|
51842
51888
|
return out;
|
|
51843
51889
|
})();
|
|
51844
51890
|
|
|
51891
|
+
// src/vaults/savings/registryLista.ts
|
|
51892
|
+
var LISTA_RWA_ENTRIES = {
|
|
51893
|
+
"56": [
|
|
51894
|
+
{
|
|
51895
|
+
reader: "lista-rwa-pool",
|
|
51896
|
+
address: "0x60512aeb641e960faaac7e2bfcb1819f993e7282",
|
|
51897
|
+
underlying: "0x55d398326f99059ff775485246999027b3197955",
|
|
51898
|
+
// USDT (18-dec on BNB)
|
|
51899
|
+
symbol: "USDT.Treasury",
|
|
51900
|
+
brand: "Lista",
|
|
51901
|
+
description: "USDT.Treasury is Lista's permissionless wrapper over the Janus Henderson Anemoy Treasury Fund (JTRSY, short-dated US T-bills tokenised by Centrifuge, whose own vault is KYC-only). Interest is dripped weekly into the share price net of Lista's 5% fee, so the rate shown is what the pool is paying this week. Minimum deposit 1,000 USDT; exit is a request charged 0.1% in shares, settled on the fund's redemption cycle (5\u201314 days per Lista) and then claimed.",
|
|
51902
|
+
decimals: 18,
|
|
51903
|
+
isRebasing: false,
|
|
51904
|
+
isMintable: true,
|
|
51905
|
+
withdrawalMode: "request-based",
|
|
51906
|
+
withdrawQueue: "0x60512aeb641e960faaac7e2bfcb1819f993e7282",
|
|
51907
|
+
solvency: "nav-attested",
|
|
51908
|
+
yieldFetcher: listaRwaFetcher,
|
|
51909
|
+
yieldKey: LISTA_USDT_TREASURY_KEY
|
|
51910
|
+
},
|
|
51911
|
+
{
|
|
51912
|
+
reader: "lista-rwa-pool",
|
|
51913
|
+
address: "0x82664f43676ffd81be2b472c5a2e2808952ecd56",
|
|
51914
|
+
underlying: "0x55d398326f99059ff775485246999027b3197955",
|
|
51915
|
+
// USDT (18-dec on BNB)
|
|
51916
|
+
symbol: "USDT.AAA",
|
|
51917
|
+
brand: "Lista",
|
|
51918
|
+
description: "USDT.AAA is Lista's permissionless wrapper over the Janus Henderson Anemoy AAA CLO Fund (JAAA, AAA-rated collateralised loan obligations tokenised by Centrifuge, whose own vault is KYC-only) \u2014 corporate credit, not T-bills. Interest is dripped weekly into the share price net of Lista's 5% fee and is lumpy week to week; the rate shown is this week's drip. Minimum deposit 1,000 USDT; exit is a request charged 0.1% in shares, settled on the fund's redemption cycle (5\u201314 days per Lista) and then claimed.",
|
|
51919
|
+
decimals: 18,
|
|
51920
|
+
isRebasing: false,
|
|
51921
|
+
isMintable: true,
|
|
51922
|
+
withdrawalMode: "request-based",
|
|
51923
|
+
withdrawQueue: "0x82664f43676ffd81be2b472c5a2e2808952ecd56",
|
|
51924
|
+
solvency: "nav-attested",
|
|
51925
|
+
yieldFetcher: listaRwaFetcher,
|
|
51926
|
+
yieldKey: LISTA_USDT_AAA_KEY
|
|
51927
|
+
}
|
|
51928
|
+
],
|
|
51929
|
+
"1": [
|
|
51930
|
+
{
|
|
51931
|
+
reader: "lista-xaut-staking",
|
|
51932
|
+
address: "0x97b0a9c6a4d9fd51bf8bebf04015f74c2e36a624",
|
|
51933
|
+
underlying: "0x68749665ff8d2d112fa859aa293f07a622782f38",
|
|
51934
|
+
// XAUt (6-dec)
|
|
51935
|
+
symbol: "slisXAUE",
|
|
51936
|
+
brand: "Lista",
|
|
51937
|
+
description: "slisXAUE is Lista's yield-bearing Tether Gold: XAUT staked through XAUE Protocol, which deploys it into delta-neutral arbitrage and over-collateralised lending via Cobo custody and takes 20% of the yield. The rate is gold-denominated (XAUT per share) and the share price is what the adapter marks, with no on-chain solvency invariant. Minimum deposit 0.03 XAUT, supply capped at 15,000 slisXAUE; exit is a request (minimum 0.01 XAUT) settled in batches by the adapter and then claimed.",
|
|
51938
|
+
decimals: 18,
|
|
51939
|
+
underlyingDecimals: 6,
|
|
51940
|
+
isRebasing: false,
|
|
51941
|
+
isMintable: true,
|
|
51942
|
+
mintContract: "0x86c92ff74fa55b08b4fa0d59e41e26b14ed1150b",
|
|
51943
|
+
withdrawalMode: "request-based",
|
|
51944
|
+
withdrawQueue: "0x86c92ff74fa55b08b4fa0d59e41e26b14ed1150b",
|
|
51945
|
+
yieldFetcher: listaRwaFetcher,
|
|
51946
|
+
yieldKey: LISTA_SLISXAUE_KEY
|
|
51947
|
+
}
|
|
51948
|
+
]
|
|
51949
|
+
};
|
|
51950
|
+
|
|
51845
51951
|
// src/vaults/savings/registry.ts
|
|
51846
51952
|
var stUsdGroup = {
|
|
51847
51953
|
base: {
|
|
@@ -53998,6 +54104,10 @@ var SAVINGS_REGISTRY = (() => {
|
|
|
53998
54104
|
if (!out[chainId]) out[chainId] = [];
|
|
53999
54105
|
out[chainId].push(...entries);
|
|
54000
54106
|
}
|
|
54107
|
+
for (const [chainId, entries] of Object.entries(LISTA_RWA_ENTRIES)) {
|
|
54108
|
+
if (!out[chainId]) out[chainId] = [];
|
|
54109
|
+
out[chainId].push(...entries);
|
|
54110
|
+
}
|
|
54001
54111
|
return out;
|
|
54002
54112
|
})();
|
|
54003
54113
|
var savingsBalanceKind = (chainId, address) => {
|
|
@@ -56627,7 +56737,9 @@ var LENDING_ONLY_FETCHERS = [
|
|
|
56627
56737
|
stmaticFetcher,
|
|
56628
56738
|
weethsFetcher,
|
|
56629
56739
|
csusdlFetcher,
|
|
56630
|
-
usdZeroPlusFetcher
|
|
56740
|
+
// usdZeroPlusFetcher is NOT here: the Usual bUSD0 savings row vault-wires
|
|
56741
|
+
// it, so it reaches the global map via `collectVaultFetchers` (the
|
|
56742
|
+
// disjointness rule — it was double-listed and the registry test flagged it).
|
|
56631
56743
|
ethZeroFetcher,
|
|
56632
56744
|
jitoSolFetcher,
|
|
56633
56745
|
// ONyc (OnRe reinsurance, Solana): NAV-accruing collateral on Loopscale /
|
|
@@ -56667,7 +56779,9 @@ var LENDING_ONLY_FETCHERS = [
|
|
|
56667
56779
|
// reaches the global map via `collectVaultFetchers` (disjointness rule).
|
|
56668
56780
|
// It was double-listed, which the registry test flags — the union dedupes
|
|
56669
56781
|
// by reference, so removing it here changes nothing at runtime.
|
|
56670
|
-
nestFetcher
|
|
56782
|
+
// nestFetcher is NOT here: the Nest savings rows (NEST_ENTRIES) vault-wire
|
|
56783
|
+
// it, so it reaches the global map via `collectVaultFetchers` (the
|
|
56784
|
+
// disjointness rule — it was double-listed and the registry test flagged it).
|
|
56671
56785
|
accountableFetcher,
|
|
56672
56786
|
// slisBnbFetcher is NOT here (LST-wired); lisAster has no vault row — it
|
|
56673
56787
|
// is a lock receipt with no rate and no exit — so its reward stream is
|
|
@@ -72459,6 +72573,136 @@ var UsualBondPausedAbi = [
|
|
|
72459
72573
|
}
|
|
72460
72574
|
];
|
|
72461
72575
|
|
|
72576
|
+
// src/vaults/savings/abis/lista.ts
|
|
72577
|
+
var ListaRwaPoolReadAbi = [
|
|
72578
|
+
{
|
|
72579
|
+
name: "totalAssets",
|
|
72580
|
+
type: "function",
|
|
72581
|
+
stateMutability: "view",
|
|
72582
|
+
inputs: [],
|
|
72583
|
+
outputs: [{ name: "", type: "uint256" }]
|
|
72584
|
+
},
|
|
72585
|
+
{
|
|
72586
|
+
name: "totalSupply",
|
|
72587
|
+
type: "function",
|
|
72588
|
+
stateMutability: "view",
|
|
72589
|
+
inputs: [],
|
|
72590
|
+
outputs: [{ name: "", type: "uint256" }]
|
|
72591
|
+
},
|
|
72592
|
+
{
|
|
72593
|
+
name: "convertToAssets",
|
|
72594
|
+
type: "function",
|
|
72595
|
+
stateMutability: "view",
|
|
72596
|
+
inputs: [{ name: "shares", type: "uint256" }],
|
|
72597
|
+
outputs: [{ name: "", type: "uint256" }]
|
|
72598
|
+
},
|
|
72599
|
+
/** Smallest deposit, in UNDERLYING units (1,000 USDT live) — reverts
|
|
72600
|
+
* `deposit below minimum` under it, on either argument form. */
|
|
72601
|
+
{
|
|
72602
|
+
name: "minDeposit",
|
|
72603
|
+
type: "function",
|
|
72604
|
+
stateMutability: "view",
|
|
72605
|
+
inputs: [],
|
|
72606
|
+
outputs: [{ name: "", type: "uint256" }]
|
|
72607
|
+
},
|
|
72608
|
+
/** 1e18-scaled fraction taken IN SHARES by `requestWithdraw` (1e15 =
|
|
72609
|
+
* 0.1 %). */
|
|
72610
|
+
{
|
|
72611
|
+
name: "withdrawFeeRate",
|
|
72612
|
+
type: "function",
|
|
72613
|
+
stateMutability: "view",
|
|
72614
|
+
inputs: [],
|
|
72615
|
+
outputs: [{ name: "", type: "uint256" }]
|
|
72616
|
+
},
|
|
72617
|
+
/** The interest Lista's bot notified for the CURRENT vesting period, raw
|
|
72618
|
+
* underlying. Linear over one week from `periodStart`. */
|
|
72619
|
+
{
|
|
72620
|
+
name: "periodRewards",
|
|
72621
|
+
type: "function",
|
|
72622
|
+
stateMutability: "view",
|
|
72623
|
+
inputs: [],
|
|
72624
|
+
outputs: [{ name: "", type: "uint256" }]
|
|
72625
|
+
},
|
|
72626
|
+
{
|
|
72627
|
+
name: "periodStart",
|
|
72628
|
+
type: "function",
|
|
72629
|
+
stateMutability: "view",
|
|
72630
|
+
inputs: [],
|
|
72631
|
+
outputs: [{ name: "", type: "uint256" }]
|
|
72632
|
+
},
|
|
72633
|
+
{
|
|
72634
|
+
name: "getUnvestedAmount",
|
|
72635
|
+
type: "function",
|
|
72636
|
+
stateMutability: "view",
|
|
72637
|
+
inputs: [],
|
|
72638
|
+
outputs: [{ name: "", type: "uint256" }]
|
|
72639
|
+
},
|
|
72640
|
+
{
|
|
72641
|
+
name: "paused",
|
|
72642
|
+
type: "function",
|
|
72643
|
+
stateMutability: "view",
|
|
72644
|
+
inputs: [],
|
|
72645
|
+
outputs: [{ name: "", type: "bool" }]
|
|
72646
|
+
},
|
|
72647
|
+
/** The receiver allowlist. EMPTY means open — once a manager populates
|
|
72648
|
+
* it, unlisted deposits and share transfers revert. */
|
|
72649
|
+
{
|
|
72650
|
+
name: "getWhiteList",
|
|
72651
|
+
type: "function",
|
|
72652
|
+
stateMutability: "view",
|
|
72653
|
+
inputs: [],
|
|
72654
|
+
outputs: [{ name: "", type: "address[]" }]
|
|
72655
|
+
}
|
|
72656
|
+
];
|
|
72657
|
+
var ListaXautStakingReadAbi = [
|
|
72658
|
+
{
|
|
72659
|
+
name: "totalAssets",
|
|
72660
|
+
type: "function",
|
|
72661
|
+
stateMutability: "view",
|
|
72662
|
+
inputs: [],
|
|
72663
|
+
outputs: [{ name: "", type: "uint256" }]
|
|
72664
|
+
},
|
|
72665
|
+
{
|
|
72666
|
+
name: "convertToAssets",
|
|
72667
|
+
type: "function",
|
|
72668
|
+
stateMutability: "view",
|
|
72669
|
+
inputs: [{ name: "shares", type: "uint256" }],
|
|
72670
|
+
outputs: [{ name: "", type: "uint256" }]
|
|
72671
|
+
},
|
|
72672
|
+
/** Smallest deposit, XAUT units (30,000 = 0.03 XAUT live). */
|
|
72673
|
+
{
|
|
72674
|
+
name: "minDeposit",
|
|
72675
|
+
type: "function",
|
|
72676
|
+
stateMutability: "view",
|
|
72677
|
+
inputs: [],
|
|
72678
|
+
outputs: [{ name: "", type: "uint256" }]
|
|
72679
|
+
},
|
|
72680
|
+
/** Smallest exit, XAUT units (10,000 = 0.01 XAUT live) — reverts
|
|
72681
|
+
* `below min withdraw`. */
|
|
72682
|
+
{
|
|
72683
|
+
name: "minWithdraw",
|
|
72684
|
+
type: "function",
|
|
72685
|
+
stateMutability: "view",
|
|
72686
|
+
inputs: [],
|
|
72687
|
+
outputs: [{ name: "", type: "uint256" }]
|
|
72688
|
+
},
|
|
72689
|
+
/** Cap on slisXAUE SUPPLY, in shares (15,000 live). */
|
|
72690
|
+
{
|
|
72691
|
+
name: "mintCap",
|
|
72692
|
+
type: "function",
|
|
72693
|
+
stateMutability: "view",
|
|
72694
|
+
inputs: [],
|
|
72695
|
+
outputs: [{ name: "", type: "uint256" }]
|
|
72696
|
+
},
|
|
72697
|
+
{
|
|
72698
|
+
name: "paused",
|
|
72699
|
+
type: "function",
|
|
72700
|
+
stateMutability: "view",
|
|
72701
|
+
inputs: [],
|
|
72702
|
+
outputs: [{ name: "", type: "bool" }]
|
|
72703
|
+
}
|
|
72704
|
+
];
|
|
72705
|
+
|
|
72462
72706
|
// src/vaults/savings/readers/erc4626Idle.ts
|
|
72463
72707
|
var readerErc4626Idle = (entry) => {
|
|
72464
72708
|
const shareUnit = 10n ** BigInt(entry.decimals);
|
|
@@ -72810,6 +73054,101 @@ var readerHyperbeatVault = (entry) => {
|
|
|
72810
73054
|
};
|
|
72811
73055
|
};
|
|
72812
73056
|
|
|
73057
|
+
// src/vaults/savings/readers/listaRwaPool.ts
|
|
73058
|
+
var PERIOD_SECONDS = 7n * 86400n;
|
|
73059
|
+
var SECONDS_PER_YEAR17 = 365n * 86400n;
|
|
73060
|
+
var readerListaRwaPool = (entry) => {
|
|
73061
|
+
const shareUnit = 10n ** BigInt(entry.decimals);
|
|
73062
|
+
const underlyingUnit = 10n ** BigInt(entry.underlyingDecimals ?? entry.decimals);
|
|
73063
|
+
const pool = entry.address;
|
|
73064
|
+
return {
|
|
73065
|
+
calls: [
|
|
73066
|
+
{ address: pool, name: "totalAssets", params: [] },
|
|
73067
|
+
{ address: pool, name: "totalSupply", params: [] },
|
|
73068
|
+
{ address: pool, name: "convertToAssets", params: [shareUnit] },
|
|
73069
|
+
{ address: pool, name: "withdrawFeeRate", params: [] },
|
|
73070
|
+
{ address: pool, name: "periodRewards", params: [] },
|
|
73071
|
+
{ address: pool, name: "paused", params: [] }
|
|
73072
|
+
],
|
|
73073
|
+
abis: [
|
|
73074
|
+
ListaRwaPoolReadAbi,
|
|
73075
|
+
ListaRwaPoolReadAbi,
|
|
73076
|
+
ListaRwaPoolReadAbi,
|
|
73077
|
+
ListaRwaPoolReadAbi,
|
|
73078
|
+
ListaRwaPoolReadAbi,
|
|
73079
|
+
ListaRwaPoolReadAbi
|
|
73080
|
+
],
|
|
73081
|
+
parse: ([assets, supply, rate, feeRate, periodRewards, paused]) => {
|
|
73082
|
+
const totalAssets = toBigInt16(assets);
|
|
73083
|
+
const totalSupply = toBigInt16(supply);
|
|
73084
|
+
const convertToAssetsRaw = toBigInt16(rate);
|
|
73085
|
+
if (totalAssets === void 0 || totalSupply === void 0 || convertToAssetsRaw === void 0) {
|
|
73086
|
+
return void 0;
|
|
73087
|
+
}
|
|
73088
|
+
const fee = toBigInt16(feeRate);
|
|
73089
|
+
const rewards = toBigInt16(periodRewards);
|
|
73090
|
+
const supplyRate = rewards !== void 0 && rewards > 0n && totalAssets > 0n ? (
|
|
73091
|
+
// percent, nominal: rewards per period → per year ÷ TVL.
|
|
73092
|
+
Number(rewards * SECONDS_PER_YEAR17 * 1000000n / PERIOD_SECONDS) / Number(totalAssets) / 1e4
|
|
73093
|
+
) : void 0;
|
|
73094
|
+
return {
|
|
73095
|
+
totalAssets,
|
|
73096
|
+
totalSupply,
|
|
73097
|
+
exchangeRate: convertToAssetsRaw * ONE_E1815 / underlyingUnit,
|
|
73098
|
+
// 1e18-scaled fraction → bps.
|
|
73099
|
+
withdrawFeeBps: fee !== void 0 ? Number(fee / 10n ** 14n) : void 0,
|
|
73100
|
+
supplyRate,
|
|
73101
|
+
paused: typeof paused === "boolean" ? paused : void 0
|
|
73102
|
+
};
|
|
73103
|
+
}
|
|
73104
|
+
};
|
|
73105
|
+
};
|
|
73106
|
+
|
|
73107
|
+
// src/vaults/savings/readers/listaXautStaking.ts
|
|
73108
|
+
var readerListaXautStaking = (entry) => {
|
|
73109
|
+
const staking = entry.mintContract ?? entry.address;
|
|
73110
|
+
const shareUnit = 10n ** BigInt(entry.decimals);
|
|
73111
|
+
const underlyingUnit = 10n ** BigInt(entry.underlyingDecimals ?? entry.decimals);
|
|
73112
|
+
return {
|
|
73113
|
+
calls: [
|
|
73114
|
+
{ address: staking, name: "totalAssets", params: [] },
|
|
73115
|
+
{ address: entry.address, name: "totalSupply", params: [] },
|
|
73116
|
+
{ address: staking, name: "convertToAssets", params: [shareUnit] },
|
|
73117
|
+
{ address: staking, name: "minWithdraw", params: [] },
|
|
73118
|
+
{ address: staking, name: "mintCap", params: [] },
|
|
73119
|
+
{ address: staking, name: "paused", params: [] }
|
|
73120
|
+
],
|
|
73121
|
+
abis: [
|
|
73122
|
+
ListaXautStakingReadAbi,
|
|
73123
|
+
TotalSupplyAbi2,
|
|
73124
|
+
ListaXautStakingReadAbi,
|
|
73125
|
+
ListaXautStakingReadAbi,
|
|
73126
|
+
ListaXautStakingReadAbi,
|
|
73127
|
+
ListaXautStakingReadAbi
|
|
73128
|
+
],
|
|
73129
|
+
parse: ([assets, supply, rate, minWithdraw, mintCap, paused]) => {
|
|
73130
|
+
const totalAssets = toBigInt16(assets);
|
|
73131
|
+
const totalSupply = toBigInt16(supply);
|
|
73132
|
+
const convertToAssetsRaw = toBigInt16(rate);
|
|
73133
|
+
if (totalAssets === void 0 || totalSupply === void 0 || convertToAssetsRaw === void 0) {
|
|
73134
|
+
return void 0;
|
|
73135
|
+
}
|
|
73136
|
+
const exchangeRate = convertToAssetsRaw * ONE_E1815 / underlyingUnit;
|
|
73137
|
+
const cap = toBigInt16(mintCap);
|
|
73138
|
+
const headroomShares = cap !== void 0 ? cap > totalSupply ? cap - totalSupply : 0n : void 0;
|
|
73139
|
+
return {
|
|
73140
|
+
totalAssets,
|
|
73141
|
+
totalSupply,
|
|
73142
|
+
exchangeRate,
|
|
73143
|
+
exitMinAmount: toBigInt16(minWithdraw),
|
|
73144
|
+
// Shares of headroom → raw XAUT at the live rate.
|
|
73145
|
+
depositCapacity: headroomShares !== void 0 ? headroomShares * convertToAssetsRaw / shareUnit : void 0,
|
|
73146
|
+
paused: typeof paused === "boolean" ? paused : void 0
|
|
73147
|
+
};
|
|
73148
|
+
}
|
|
73149
|
+
};
|
|
73150
|
+
};
|
|
73151
|
+
|
|
72813
73152
|
// src/vaults/savings/readers/navOracle.ts
|
|
72814
73153
|
var readerNavOracle = (entry) => {
|
|
72815
73154
|
const shareUnit = 10n ** BigInt(entry.decimals);
|
|
@@ -73399,6 +73738,10 @@ var buildReader2 = (entry) => {
|
|
|
73399
73738
|
return readerNestVault(entry);
|
|
73400
73739
|
case "usual-bond":
|
|
73401
73740
|
return readerUsualBond(entry);
|
|
73741
|
+
case "lista-rwa-pool":
|
|
73742
|
+
return readerListaRwaPool(entry);
|
|
73743
|
+
case "lista-xaut-staking":
|
|
73744
|
+
return readerListaXautStaking(entry);
|
|
73402
73745
|
case "erc4626-cooldown":
|
|
73403
73746
|
return readerErc4626Cooldown(entry);
|
|
73404
73747
|
case "erc4626-idle":
|