@1delta/margin-fetcher 5.0.120 → 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 +7 -0
- package/dist/index.js +33 -3
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
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
|
@@ -91977,6 +91977,12 @@ function isSyntheticQuoteUnit(mint) {
|
|
|
91977
91977
|
return !!mint && mint !== WSOL && /1{16,}/.test(mint);
|
|
91978
91978
|
}
|
|
91979
91979
|
var EXPONENT_MATURED_REASON = "This PT has matured \u2014 it is redeemed at par through the Exponent vault (merge / redeem), which is not built in this API yet";
|
|
91980
|
+
var SPL_STAKE_POOL_OPEN = {
|
|
91981
|
+
verbs: ["deposit", "withdraw", "request-withdraw", "claim"],
|
|
91982
|
+
nativeDeposit: true,
|
|
91983
|
+
nativeWithdraw: true,
|
|
91984
|
+
requires: { withdraw: SHARES, "request-withdraw": SHARES }
|
|
91985
|
+
};
|
|
91980
91986
|
var SVM_EARN_VAULT_BUILDERS = {
|
|
91981
91987
|
// jl tokens: a pay-asset conversion on deposit, none on withdraw; the
|
|
91982
91988
|
// withdraw takes assets (or shares with isShares)
|
|
@@ -92092,7 +92098,11 @@ var SVM_EARN_VAULT_BUILDERS = {
|
|
|
92092
92098
|
// only out of the idle reserve, so an exit above it is refused at build
|
|
92093
92099
|
"savings:Upshift": {
|
|
92094
92100
|
verbs: ["deposit", "withdraw"],
|
|
92095
|
-
|
|
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 }
|
|
92096
92106
|
},
|
|
92097
92107
|
// GLAM single-asset vaults (Solstice stSLX): subscribe in the transaction;
|
|
92098
92108
|
// a queued redeem by SHARES (7-day hard notice), a permissionless fulfil +
|
|
@@ -92126,6 +92136,21 @@ var SVM_EARN_VAULT_BUILDERS = {
|
|
|
92126
92136
|
],
|
|
92127
92137
|
nativeDeposit: true,
|
|
92128
92138
|
requires: { "request-withdraw": SHARES }
|
|
92139
|
+
},
|
|
92140
|
+
// SPL stake-pool LSTs (calldata-sdk-sol `ComposerStakePoolActions`): SOL /
|
|
92141
|
+
// wSOL in through the pool's own DepositSol, at NAV. Out: the instant
|
|
92142
|
+
// WithdrawSol from the reserve (by SHARES, capped by it) where the pool
|
|
92143
|
+
// lets holders take it, and on EVERY pool the unstake — WithdrawStake into
|
|
92144
|
+
// a wallet-owned stake account, deactivating (`request-withdraw`, by
|
|
92145
|
+
// SHARES) — then `claim` once the epoch has turned (pays SOL).
|
|
92146
|
+
"lst:Jito": SPL_STAKE_POOL_OPEN,
|
|
92147
|
+
"lst:SolBlaze": SPL_STAKE_POOL_OPEN,
|
|
92148
|
+
// BNSOL: the pool's SOL withdraw authority is its manager (a Binance key),
|
|
92149
|
+
// so the instant leg is closed to holders — the unstake is the pool-side exit
|
|
92150
|
+
"lst:Binance": {
|
|
92151
|
+
verbs: ["deposit", "request-withdraw", "claim"],
|
|
92152
|
+
nativeDeposit: true,
|
|
92153
|
+
requires: { "request-withdraw": SHARES }
|
|
92129
92154
|
}
|
|
92130
92155
|
};
|
|
92131
92156
|
var SVM_EARN_MINT_BUILDERS = {
|
|
@@ -92145,7 +92170,11 @@ var SVM_EARN_MINT_BUILDERS = {
|
|
|
92145
92170
|
// Sanctum INF
|
|
92146
92171
|
"5oVNBeEEQvYi1cX3ir8Dx5n1P7pdxydbGF2X4TxVusJm": "savings:Sanctum",
|
|
92147
92172
|
// Renzo ezSOL (Jito Restaking VRT)
|
|
92148
|
-
ezSoL6fY1PVdJcJsUpe5CM3xkfmy3zoVCABybm5WtiC: "lst:Renzo"
|
|
92173
|
+
ezSoL6fY1PVdJcJsUpe5CM3xkfmy3zoVCABybm5WtiC: "lst:Renzo",
|
|
92174
|
+
// SPL stake-pool LSTs (margin-fetcher-sol `SPL_STAKE_POOL_LSTS`)
|
|
92175
|
+
J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn: "lst:Jito",
|
|
92176
|
+
bSo13r4TkiE4KumL71LsHTPpL2euBYLFx6h9HP3piy1: "lst:SolBlaze",
|
|
92177
|
+
BNso1VUJnh4zcfpZa6986Ea66P6TCp59hvtNJ8b1X85: "lst:Binance"
|
|
92149
92178
|
};
|
|
92150
92179
|
var ROSTER_BRAND_BUILDERS = /* @__PURE__ */ new Set([
|
|
92151
92180
|
"savings:Nest",
|
|
@@ -92230,7 +92259,8 @@ function svmCapabilities(row) {
|
|
|
92230
92259
|
}
|
|
92231
92260
|
const wsol = row.asset?.address === WSOL2;
|
|
92232
92261
|
const caps = [];
|
|
92233
|
-
|
|
92262
|
+
const verbs = builder.requestVerbs && row.exit?.mode === "request-based" ? builder.requestVerbs : builder.verbs;
|
|
92263
|
+
for (const action of verbs) {
|
|
92234
92264
|
const open = action === "deposit" ? row.availability.canDeposit : row.availability.canWithdraw;
|
|
92235
92265
|
if (!open) continue;
|
|
92236
92266
|
const cap = { action };
|