@1delta/margin-fetcher 5.0.67 → 5.0.69

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
@@ -1,7 +1,7 @@
1
1
  import { PublicClient, Address, Hex } from 'viem';
2
2
  import { Lender } from '@1delta/lender-registry';
3
3
  export { hasCrossMarginRisk, isAaveType, isAaveV2Type, isAaveV32Type, isAaveV3Type, isCompoundV3, isCompoundV3Type, isInit, isMorphoType, isMultiMarket, isYLDR } from '@1delta/lender-registry';
4
- import { DebitData, LenderDebitData, LstAcceptedInput } from '@1delta/calldata-sdk';
4
+ import { DebitData, LenderDebitData, LendingMode as LendingMode$1, LstAcceptedInput } from '@1delta/calldata-sdk';
5
5
  import { RelayProxyConfig } from '@1delta/proxy-fetch';
6
6
  import { TermMarketConfig, LiquityBranchConfig, LiquityConfigChain, RiverMarketConfig, RiverConfigChain, RiverChainData, InverseMarketConfig, InverseConfigChain, InverseChainData, FraxlendConfigChain, ResupplyConfigChain, CoolerConfigChain, LlamaLendMarketConfig, LlamaLendConfigChain, LlamaLendChainData, UsddMarketConfig, UsddConfigChain, UsddChainData, FrankencoinMarketConfig, FrankencoinConfigChain, FrankencoinChainData, TellerPoolConfig, MorphoTypeVaultEntry } from '@1delta/data-sdk';
7
7
  export { MorphoLensAbi } from '@1delta/abis';
@@ -1632,6 +1632,17 @@ declare function needsLenderApproval(params: {
1632
1632
  aaveV4Spoke?: string;
1633
1633
  /** Silo: check the protected share token instead of collateral */
1634
1634
  isProtected?: boolean;
1635
+ /**
1636
+ * This is a BORROW delegation check — resolve against the entry the borrow
1637
+ * grant actually lives on (Silo: debt share token; Aave: variable/stable
1638
+ * debt token's `borrowAllowance`; Venus: the comptroller's `updateDelegate`
1639
+ * boolean) instead of the withdraw-side key. Without it a borrow check
1640
+ * reads a withdraw allowance that is 0 for a borrow-only grant and the
1641
+ * permission is re-emitted forever.
1642
+ */
1643
+ isBorrow?: boolean;
1644
+ /** Aave borrow checks: which debt token to resolve (default VARIABLE). */
1645
+ mode?: LendingMode$1;
1635
1646
  }): boolean;
1636
1647
  /**
1637
1648
  * Checks whether an ERC20 or Permit2 token approval is needed for
@@ -6609,6 +6620,18 @@ interface EulerEarnVault extends VaultClassificationFields {
6609
6620
  * changes take effect (Euler Earn `governance.timelock`). Governance-only,
6610
6621
  * NOT a per-deposit withdrawal lock. Mirrors `MorphoVault.timelock`. */
6611
6622
  timelock?: number;
6623
+ /** Whether Euler's Data API lists the vault on the Euler frontend
6624
+ * (`visibility.status` of `visible` or `warning`). Vaults failing Euler's
6625
+ * automated config vetting are delisted to `hidden` / `pending_review`
6626
+ * and carry `false` — we still fetch them (the API's `visibility` filter
6627
+ * defaults to listed-only, which emptied this provider overnight in Aug
6628
+ * 2026), so downstream must flag rather than assume listed. Subgraph-
6629
+ * sourced vaults default to `true` (visibility is Data-API-only).
6630
+ * Mirrors `MorphoVault.whitelisted`. */
6631
+ whitelisted: boolean;
6632
+ /** Raw Euler visibility status (`visible` | `warning` | `hidden` |
6633
+ * `pending_review`), when the Data API supplied one. */
6634
+ visibilityStatus?: string;
6612
6635
  /** Owner address, lowercased — may be absent if not set. */
6613
6636
  owner?: string;
6614
6637
  /** Curator / fee-recipient address, lowercased. */