@1delta/margin-fetcher 5.0.141 → 5.0.142
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.js +25 -8
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -95818,7 +95818,7 @@ var SVM_SAVINGS_CURATION = {
|
|
|
95818
95818
|
// OnRe ONyc — a reinsurance fund's NAV share (margin-fetcher-sol `ONYC_DESCRIPTION`)
|
|
95819
95819
|
"5Y8NV33Vv7WbnLfq3zBcKSdYPrk7g2KoiQoe7M2tcxp5": {
|
|
95820
95820
|
solvency: "nav-attested",
|
|
95821
|
-
description: "ONyc is a share of OnRe\u2019s Bermuda reinsurance fund: the fund writes reinsurance contracts and holds stablecoin collateral against them, and the premiums plus the collateral\u2019s yield accrue as a rising dollar NAV per ONyc. This is REINSURANCE risk, not a dollar deposit: a catastrophe the contracts cover (a hurricane, an earthquake) is paid out of the fund and writes the NAV down, and the NAV is OnRe\u2019s own published figure over an off-chain book. OnRe keeps a freeze authority over the token. ONyc is minted at OnRe\u2019s offer price on chain; it exits by selling into OnRe\u2019s USDG pool or by a redemption request OnRe fulfils \u2014
|
|
95821
|
+
description: "ONyc is a share of OnRe\u2019s Bermuda reinsurance fund: the fund writes reinsurance contracts and holds stablecoin collateral against them, and the premiums plus the collateral\u2019s yield accrue as a rising dollar NAV per ONyc. This is REINSURANCE risk, not a dollar deposit: a catastrophe the contracts cover (a hurricane, an earthquake) is paid out of the fund and writes the NAV down, and the NAV is OnRe\u2019s own published figure over an off-chain book. OnRe keeps a freeze authority over the token. ONyc is minted at OnRe\u2019s offer price on chain; it exits by selling into OnRe\u2019s USDG pool (instant, a fee plus a haircut that grows with the order\u2019s size and the day\u2019s selling, capped by what the pool holds) or by a redemption request OnRe\u2019s operator fulfils at its later NAV less a fee, paid straight to the wallet \u2014 OnRe publishes no time for that."
|
|
95822
95822
|
}
|
|
95823
95823
|
};
|
|
95824
95824
|
var CI = new Map(
|
|
@@ -102227,6 +102227,7 @@ var LENDING = {
|
|
|
102227
102227
|
};
|
|
102228
102228
|
var WSOL = "So11111111111111111111111111111111111111112";
|
|
102229
102229
|
var USDC = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
|
|
102230
|
+
var USDG = "2u1tszSeqZ3qBWF3uNGPFc8TzMk2tdiwknnRMWGWjGWH";
|
|
102230
102231
|
var SHARES = ["isShares"];
|
|
102231
102232
|
function isSyntheticQuoteUnit(mint) {
|
|
102232
102233
|
return !!mint && mint !== WSOL && /1{16,}/.test(mint);
|
|
@@ -102304,6 +102305,24 @@ var SVM_EARN_VAULT_BUILDERS = {
|
|
|
102304
102305
|
cancel: ["requestId"]
|
|
102305
102306
|
}
|
|
102306
102307
|
},
|
|
102308
|
+
// OnRe ONyc (calldata-sdk-sol `ComposerOnreActions`, on two existing
|
|
102309
|
+
// mainnet lookup tables): mint USDC / USDG → ONyc at the offer
|
|
102310
|
+
// (`take_offer_permissionless_v2`); withdraw BY SHARES = the instant sell
|
|
102311
|
+
// into USDG on the Prop AMM; request-withdraw BY SHARES = a redemption
|
|
102312
|
+
// request OnRe's operator fulfils (paid to the wallet, no claim leg);
|
|
102313
|
+
// cancel by the request PDA (`requestId`).
|
|
102314
|
+
"savings:OnRe": {
|
|
102315
|
+
verbs: ["deposit", "withdraw", "request-withdraw", "cancel"],
|
|
102316
|
+
depositInputs: [
|
|
102317
|
+
{ asset: USDC, symbol: "USDC", mode: "direct" },
|
|
102318
|
+
{ asset: USDG, symbol: "USDG", mode: "direct" }
|
|
102319
|
+
],
|
|
102320
|
+
requires: {
|
|
102321
|
+
withdraw: SHARES,
|
|
102322
|
+
"request-withdraw": SHARES,
|
|
102323
|
+
cancel: ["requestId"]
|
|
102324
|
+
}
|
|
102325
|
+
},
|
|
102307
102326
|
// JLP: the pool's own mint / burn from / into a custody token — the burn
|
|
102308
102327
|
// by SHARES (the JLP a USD amount needs is only known at the block)
|
|
102309
102328
|
"savings:Jupiter": {
|
|
@@ -102412,7 +102431,8 @@ var SVM_EARN_VAULT_BUILDERS = {
|
|
|
102412
102431
|
// Marinade mSOL (calldata-sdk-sol `ComposerMarinadeActions`): SOL / wSOL in
|
|
102413
102432
|
// through `deposit`; out the instant `liquid_unstake` against the SOL/mSOL
|
|
102414
102433
|
// pool (by SHARES, capped by the pool's SOL, at its linear fee), or the
|
|
102415
|
-
// delayed `order_unstake` ticket (`request-withdraw`, by SHARES
|
|
102434
|
+
// delayed `order_unstake` ticket (`request-withdraw`, by SHARES; `route=stake`
|
|
102435
|
+
// = `withdraw_stake_account` into a deactivating stake account) and
|
|
102416
102436
|
// `claim` (SOL) once the next epoch has started. No cancel.
|
|
102417
102437
|
"lst:marinade": {
|
|
102418
102438
|
verbs: ["deposit", "withdraw", "request-withdraw", "claim"],
|
|
@@ -102431,6 +102451,8 @@ var SVM_EARN_MINT_BUILDERS = {
|
|
|
102431
102451
|
BQ6LPc68knpko292UsMLbQYfaHhWD7S84sA98632hrzX: "savings:Solstice",
|
|
102432
102452
|
// Huma PST
|
|
102433
102453
|
"59obFNBzyTBGowrkif5uK7ojS58vsuWz3ZCvg6tfZAGw": "savings:Huma",
|
|
102454
|
+
// OnRe ONyc
|
|
102455
|
+
"5Y8NV33Vv7WbnLfq3zBcKSdYPrk7g2KoiQoe7M2tcxp5": "savings:OnRe",
|
|
102434
102456
|
// JLP
|
|
102435
102457
|
"27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4": "savings:Jupiter",
|
|
102436
102458
|
// Hastra PRIME, AUTO
|
|
@@ -102487,12 +102509,7 @@ var SVM_EARN_MINT_BUILDERS = {
|
|
|
102487
102509
|
strng7mqqc1MBJJV6vMzYbEqnwVGvKKGKedeCvtktWA: "lst:stake-pool-stake-exit"
|
|
102488
102510
|
// strongSOL (sentinel)
|
|
102489
102511
|
};
|
|
102490
|
-
var SVM_UNBUILT_MINT_REASONS = {
|
|
102491
|
-
// OnRe ONyc: the mint (take_offer_permissionless_v2) and the USDG sell
|
|
102492
|
-
// legs are ported (calldata-sdk-sol `spot/onre.ts`) but need 1delta's own
|
|
102493
|
-
// address lookup tables, which do not exist yet
|
|
102494
|
-
"5Y8NV33Vv7WbnLfq3zBcKSdYPrk7g2KoiQoe7M2tcxp5": "ONyc deposits and exits are not built in this API yet \u2014 the OnRe legs need 1delta address lookup tables that are not deployed; ONyc is served as data only"
|
|
102495
|
-
};
|
|
102512
|
+
var SVM_UNBUILT_MINT_REASONS = {};
|
|
102496
102513
|
var ROSTER_BRAND_BUILDERS = /* @__PURE__ */ new Set([
|
|
102497
102514
|
"savings:Nest",
|
|
102498
102515
|
// any share mint of the shared august_vault program: its mint authority is
|