@1delta/margin-fetcher 5.0.18 → 5.0.20

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 CHANGED
@@ -5066,7 +5066,7 @@ interface FetchOraclePricesOptions {
5066
5066
  * Only run these fetcher groups. Useful for debugging individual protocols.
5067
5067
  * Values: 'aave', 'compoundV2', 'compoundV3', 'lista', 'llamalend',
5068
5068
  * 'eulerV2', 'aaveV4', 'morpho', 'midnight', 'exactly', 'term', 'liquity',
5069
- * 'river', 'teller', 'siloV2', 'siloV3', 'fluid'.
5069
+ * 'river', 'teller', 'siloV2', 'siloV3', 'fluid', 'curvance', 'resupply'.
5070
5070
  * If omitted, all fetchers run.
5071
5071
  */
5072
5072
  onlyFetchers?: string[];
@@ -6645,6 +6645,44 @@ interface SavingsVault extends VaultClassificationFields {
6645
6645
  /** Contract a delayed redemption is requested from and claimed
6646
6646
  * against, when it is not the share token itself. */
6647
6647
  withdrawQueue?: string;
6648
+ /**
6649
+ * Underlying still **depositable this block**, raw integer string —
6650
+ * the mirror of `liquidity` on the entry side.
6651
+ *
6652
+ * Absent for every vault whose mint is uncapped (the normal case), so
6653
+ * `undefined` means "no known limit", **not** zero. `'0'` is a real
6654
+ * statement: the vault is full and a deposit reverts.
6655
+ *
6656
+ * Deliberately separate from `isMintable`, which is a *permission*
6657
+ * (allowlist / KYB gate). A vault can be freely mintable and still have
6658
+ * no room — Yield Basis's markets are permissionless yet sit at
6659
+ * 78–103 % of a protocol-wide cap, with one already over it. Only
6660
+ * readers whose protocol exposes a real cap populate this; there is no
6661
+ * `maxDeposit()` to read on those, which is why it is a reader concern
6662
+ * rather than a generic 4626 call.
6663
+ */
6664
+ depositCapacity?: string;
6665
+ /** Human-formatted `depositCapacity`. Absent whenever that is. */
6666
+ depositCapacityFormatted?: number;
6667
+ /** `depositCapacity` in USD. Absent when uncapped or unpriced. */
6668
+ depositCapacityUsd?: number;
6669
+ /**
6670
+ * Signed basis-point gap between what a share **redeems for** and its
6671
+ * **fundamental** (oracle-anchored) value: `exchangeRate /
6672
+ * fundamental − 1`. Negative = redeeming below fundamental value.
6673
+ *
6674
+ * Populated only where the protocol publishes two per-share prices and
6675
+ * we quote the redeemable one. Yield Basis's TRD (Temporary Redemption
6676
+ * Discount) is the case: `preview_withdraw` prices a live Cryptoswap
6677
+ * unwind while `pricePerShare` reads the oracle, and the gap widens
6678
+ * during volatility before arbitrage closes it, typically within hours.
6679
+ * A few basis points either way is the normal state — it went positive
6680
+ * on three of four markets at integration.
6681
+ *
6682
+ * Absent for every single-priced vault, where `exchangeRate` is the
6683
+ * only per-share number there is.
6684
+ */
6685
+ redemptionDiscountBps?: number;
6648
6686
  /** Hydrated asset metadata from the provided token list, if any. */
6649
6687
  asset?: GenericCurrency;
6650
6688
  /** USD price of one underlying unit, if prices were supplied. */