@1delta/margin-fetcher 5.0.121 → 5.0.122

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
@@ -15892,6 +15892,13 @@ declare function isBoundNeed(need: string): boolean;
15892
15892
  */
15893
15893
  interface SvmEarnBuilder {
15894
15894
  verbs: readonly EarnActionKind[];
15895
+ /**
15896
+ * The verbs instead of {@link verbs} for a row whose exit is
15897
+ * `request-based` — a builder whose venue can switch a vault from an
15898
+ * instant exit to a queue (Upshift's withdrawal queue). The route serves
15899
+ * the union; the row advertises the set its CURRENT exit takes.
15900
+ */
15901
+ requestVerbs?: readonly EarnActionKind[];
15895
15902
  /** Deposit — a `payAsset` other than the row's asset is converted. */
15896
15903
  payAsset?: boolean;
15897
15904
  /**
package/dist/index.js CHANGED
@@ -92098,7 +92098,11 @@ var SVM_EARN_VAULT_BUILDERS = {
92098
92098
  // only out of the idle reserve, so an exit above it is refused at build
92099
92099
  "savings:Upshift": {
92100
92100
  verbs: ["deposit", "withdraw"],
92101
- requires: { withdraw: SHARES }
92101
+ // once August's withdrawal queue is attached: request (shares) →
92102
+ // cooldown → claim (`requestId` = the request account, or none = every
92103
+ // eligible one), or cancel
92104
+ requestVerbs: ["deposit", "request-withdraw", "claim", "cancel"],
92105
+ requires: { withdraw: SHARES, "request-withdraw": SHARES }
92102
92106
  },
92103
92107
  // GLAM single-asset vaults (Solstice stSLX): subscribe in the transaction;
92104
92108
  // a queued redeem by SHARES (7-day hard notice), a permissionless fulfil +
@@ -92255,7 +92259,8 @@ function svmCapabilities(row) {
92255
92259
  }
92256
92260
  const wsol = row.asset?.address === WSOL2;
92257
92261
  const caps = [];
92258
- for (const action of builder.verbs) {
92262
+ const verbs = builder.requestVerbs && row.exit?.mode === "request-based" ? builder.requestVerbs : builder.verbs;
92263
+ for (const action of verbs) {
92259
92264
  const open = action === "deposit" ? row.availability.canDeposit : row.availability.canWithdraw;
92260
92265
  if (!open) continue;
92261
92266
  const cap = { action };