@1delta/margin-fetcher 5.0.113 → 5.0.115

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
@@ -1474,6 +1474,20 @@ interface UserDataForSubAccount {
1474
1474
  * Absent where the account IS the owner's address.
1475
1475
  */
1476
1476
  accountAddress?: string;
1477
+ /**
1478
+ * The venue's own name for the sub-account where it has one — Kamino
1479
+ * `Multiply JitoSOL/SOL`, Save `#1`, Jupiter Lend `position 1234`. Display
1480
+ * only; `accountId` stays the key.
1481
+ */
1482
+ label?: string;
1483
+ /**
1484
+ * Set — to the reason — when the action routes cannot build for this
1485
+ * sub-account (a Kamino Multiply / Leverage obligation: the hosted builder
1486
+ * reaches only the vanilla one). The position is real and is reported; it
1487
+ * just cannot be managed through `/v1/actions`, and a consumer should say so
1488
+ * BEFORE offering a withdraw or close that would come back a 400.
1489
+ */
1490
+ unsupported?: string;
1477
1491
  health: number | null;
1478
1492
  /**
1479
1493
  * Health against the LIQUIDATION thresholds: Σ collateral × `collateralFactor`
@@ -15730,7 +15744,14 @@ interface EarnAprBreakdown {
15730
15744
  }
15731
15745
  /** A sub-account within a lender, for the lenders that have more than one. */
15732
15746
  interface EarnPositionSubAccount {
15747
+ /** What `accountId` takes on the action routes. */
15733
15748
  accountId: string;
15749
+ /** The address the sub-account acts as on chain, when not the owner's (Euler EVC sub-account, Dolomite isolation vault). */
15750
+ accountAddress?: string;
15751
+ /** The venue's own name for it (Kamino `Multiply JitoSOL/SOL`, Jupiter Lend `position 1234`). */
15752
+ label?: string;
15753
+ /** Why the action routes cannot build for this sub-account — absent when they can. */
15754
+ unsupported?: string;
15734
15755
  health: number | null;
15735
15756
  suppliedUsd: number;
15736
15757
  borrowedUsd: number;