@1delta/margin-fetcher 5.0.116 → 5.0.117
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 +79 -33
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -48972,10 +48972,14 @@ var mapleFetcher = {
|
|
|
48972
48972
|
|
|
48973
48973
|
// src/yields/intrinsic/fetchers/yoProtocol.ts
|
|
48974
48974
|
var YO_URL = "https://api.yo.xyz/api/v1/vault/stats";
|
|
48975
|
-
var
|
|
48976
|
-
|
|
48977
|
-
|
|
48978
|
-
|
|
48975
|
+
var YO_YIELD_KEYS = {
|
|
48976
|
+
yoETH: "Yield Optimizer ETH::YOETH",
|
|
48977
|
+
yoBTC: "Yield Optimizer BTC::YOBTC",
|
|
48978
|
+
yoUSD: "Yield Optimizer USD::YOUSD",
|
|
48979
|
+
yoEUR: "Yield Optimizer EUR::yoEUR",
|
|
48980
|
+
yoUSDEdge: "Yield Optimizer USD Edge::yoUSDEdge",
|
|
48981
|
+
yoGOLD: "Yield Optimizer GOLD::yoGOLD"
|
|
48982
|
+
};
|
|
48979
48983
|
var yoFetcher = {
|
|
48980
48984
|
label: "YO",
|
|
48981
48985
|
fetch: async () => {
|
|
@@ -48983,17 +48987,13 @@ var yoFetcher = {
|
|
|
48983
48987
|
method: "GET",
|
|
48984
48988
|
headers: { Accept: "application/json" }
|
|
48985
48989
|
}).then((r) => r.json());
|
|
48986
|
-
const datas = res?.data;
|
|
48987
|
-
const
|
|
48988
|
-
const
|
|
48989
|
-
|
|
48990
|
-
|
|
48991
|
-
|
|
48992
|
-
|
|
48993
|
-
[yobtc]: apyToAprPercent(yoBTC),
|
|
48994
|
-
[yousd]: apyToAprPercent(yoUSD),
|
|
48995
|
-
[yoeur]: apyToAprPercent(yoEUR)
|
|
48996
|
-
};
|
|
48990
|
+
const datas = res?.data ?? [];
|
|
48991
|
+
const out = {};
|
|
48992
|
+
for (const [id, key4] of Object.entries(YO_YIELD_KEYS)) {
|
|
48993
|
+
const apy = Number(datas.find((a) => a?.id === id)?.yield?.["1d"]);
|
|
48994
|
+
if (Number.isFinite(apy)) out[key4] = apyToAprPercent(apy);
|
|
48995
|
+
}
|
|
48996
|
+
return out;
|
|
48997
48997
|
}
|
|
48998
48998
|
};
|
|
48999
48999
|
|
|
@@ -53509,7 +53509,7 @@ var sGreenGroup = {
|
|
|
53509
53509
|
base: {
|
|
53510
53510
|
symbol: "sGREEN",
|
|
53511
53511
|
brand: "Ripe",
|
|
53512
|
-
description: "GREEN is Ripe Protocol's
|
|
53512
|
+
description: "GREEN is Ripe Protocol's USD stablecoin. Only about a fifth of its supply is borrower debt against multi-collateral positions (tokenised stocks, ETH, stablecoins): the rest is minted by the protocol itself into its Curve pools (a stabilizer, repaid as it is removed) and against USDC through a peg-stability module whose reserves sit in Underscore's own USDC vault and whose redemptions are allowlisted on Base. A 2-of-3 multisig controls minting, prices and limits with no time lock, and single keys can freeze accounts. sGREEN is its ERC-4626 savings vault: borrower interest and origination fees are minted into it as GREEN, net of a governance-set share routed to RIPE buybacks, so the share price steps up when revenue is realised and sits flat in between. Each chain's vault is independent with its own rate. Deposits and withdrawals are instant, permissionless and free.",
|
|
53513
53513
|
decimals: 18,
|
|
53514
53514
|
isRebasing: false,
|
|
53515
53515
|
isMintable: true,
|
|
@@ -53594,6 +53594,27 @@ var frankencoinSavingsBase = {
|
|
|
53594
53594
|
solvency: "overcollateralized",
|
|
53595
53595
|
yieldFetcher: frankencoinSavingsFetcher
|
|
53596
53596
|
};
|
|
53597
|
+
var YO_VAULTS = {
|
|
53598
|
+
yoETH: "0x3a43aec53490cb9fa922847385d82fe25d0e9de7",
|
|
53599
|
+
yoBTC: "0xbcbc8cb4d1e8ed048a6276a5e94a3e952660bcbc",
|
|
53600
|
+
yoUSD: "0x0000000f2eb9f69274678c76222b35eec7588a65",
|
|
53601
|
+
yoEUR: "0x50c749ae210d3977adc824ae11f3c7fd10c871e9",
|
|
53602
|
+
yoUSDEdge: "0x5dd8bfa6c5c68d05d25ef6143e05c11e26c4cdb7",
|
|
53603
|
+
yoGOLD: "0x586675a3a46b008d8408933cf42d8ff6c9cc61a1"
|
|
53604
|
+
};
|
|
53605
|
+
var yoVault = (key4, underlying, decimals, asset) => ({
|
|
53606
|
+
address: YO_VAULTS[key4],
|
|
53607
|
+
underlying,
|
|
53608
|
+
symbol: key4 === "yoUSDEdge" ? "yoUSD Edge" : key4,
|
|
53609
|
+
brand: "YO",
|
|
53610
|
+
description: key4 === "yoUSDEdge" ? `YO's higher-yield ${asset} optimizer: ${asset} is allocated across a wider, riskier set of curated on-chain strategies than yoUSD, and yield accrues into the share price. Async ERC-7540 redemption \u2014 instant when idle liquidity covers it, up to ~24 hours when unwinding non-liquid strategies.` : `YO's ${asset} yield optimizer: ${asset} is allocated across curated on-chain strategies and yield accrues into the share price. Async ERC-7540 redemption \u2014 instant when idle liquidity covers it, up to ~24 hours when unwinding non-liquid strategies.`,
|
|
53611
|
+
decimals,
|
|
53612
|
+
isRebasing: false,
|
|
53613
|
+
isMintable: true,
|
|
53614
|
+
withdrawalMode: "request-based",
|
|
53615
|
+
yieldFetcher: yoFetcher,
|
|
53616
|
+
yieldKey: YO_YIELD_KEYS[key4]
|
|
53617
|
+
});
|
|
53597
53618
|
var ybMarket = (symbol, underlying, underlyingDecimals, address, capacityContract, yieldKey) => ({
|
|
53598
53619
|
reader: "yieldbasis-lt",
|
|
53599
53620
|
address,
|
|
@@ -53653,6 +53674,17 @@ var YIELD_BASIS_ENTRIES = [
|
|
|
53653
53674
|
var SINGLE_CHAIN_ENTRIES = {
|
|
53654
53675
|
"1": [
|
|
53655
53676
|
...YIELD_BASIS_ENTRIES,
|
|
53677
|
+
yoVault("yoETH", "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", 18, "WETH"),
|
|
53678
|
+
yoVault("yoBTC", "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf", 8, "cbBTC"),
|
|
53679
|
+
yoVault("yoUSD", "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", 6, "USDC"),
|
|
53680
|
+
yoVault("yoEUR", "0x1abaea1f7c830bd89acc67ec4af516284b1bc33c", 6, "EURC"),
|
|
53681
|
+
yoVault(
|
|
53682
|
+
"yoUSDEdge",
|
|
53683
|
+
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
|
|
53684
|
+
6,
|
|
53685
|
+
"USDC"
|
|
53686
|
+
),
|
|
53687
|
+
yoVault("yoGOLD", "0x68749665ff8d2d112fa859aa293f07a622782f38", 6, "XAUt"),
|
|
53656
53688
|
{
|
|
53657
53689
|
address: "0x9d39a5de30e57443bff2a8307a4256c8797a3497",
|
|
53658
53690
|
underlying: "0x4c9edd5852cd905f086c759e8383e09bff1e68b3",
|
|
@@ -55028,6 +55060,13 @@ var SINGLE_CHAIN_ENTRIES = {
|
|
|
55028
55060
|
}
|
|
55029
55061
|
],
|
|
55030
55062
|
"42161": [
|
|
55063
|
+
yoVault("yoUSD", "0xaf88d065e77c8cc2239327c5edb3a432268e5831", 6, "USDC"),
|
|
55064
|
+
yoVault(
|
|
55065
|
+
"yoUSDEdge",
|
|
55066
|
+
"0xaf88d065e77c8cc2239327c5edb3a432268e5831",
|
|
55067
|
+
6,
|
|
55068
|
+
"USDC"
|
|
55069
|
+
),
|
|
55031
55070
|
{
|
|
55032
55071
|
// Same CREATE2 family as mainnet spUSDT but an independent vault
|
|
55033
55072
|
// with its own `vsr`. Seeded (~$1k) at time of writing.
|
|
@@ -55049,19 +55088,16 @@ var SINGLE_CHAIN_ENTRIES = {
|
|
|
55049
55088
|
}
|
|
55050
55089
|
],
|
|
55051
55090
|
"8453": [
|
|
55052
|
-
|
|
55053
|
-
|
|
55054
|
-
|
|
55055
|
-
|
|
55056
|
-
|
|
55057
|
-
|
|
55058
|
-
|
|
55059
|
-
|
|
55060
|
-
|
|
55061
|
-
|
|
55062
|
-
yieldFetcher: yoFetcher,
|
|
55063
|
-
yieldKey: "Yield Optimizer ETH::YOETH"
|
|
55064
|
-
},
|
|
55091
|
+
yoVault("yoETH", "0x4200000000000000000000000000000000000006", 18, "WETH"),
|
|
55092
|
+
yoVault("yoBTC", "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf", 8, "cbBTC"),
|
|
55093
|
+
yoVault("yoUSD", "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913", 6, "USDC"),
|
|
55094
|
+
yoVault("yoEUR", "0x60a3e35cc302bfa44cb288bc5a4f316fdb1adb42", 6, "EURC"),
|
|
55095
|
+
yoVault(
|
|
55096
|
+
"yoUSDEdge",
|
|
55097
|
+
"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
|
|
55098
|
+
6,
|
|
55099
|
+
"USDC"
|
|
55100
|
+
),
|
|
55065
55101
|
{
|
|
55066
55102
|
// Frankencoin savings module, Base — 255,196 ZCHF at 2026-08-12.
|
|
55067
55103
|
// Note the module address is the SAME on Base and Optimism
|
|
@@ -77005,7 +77041,8 @@ var STABLECOIN_UNDERLYING_OVERRIDES = /* @__PURE__ */ new Set([
|
|
|
77005
77041
|
// and the underlying of the vhU Liquidity Hub. Priced at $0.999 by Venus's
|
|
77006
77042
|
// own ResilientOracle.
|
|
77007
77043
|
"56-0xce24439f2d9c6a2289f741120fe202248b666666",
|
|
77008
|
-
// Ripe Protocol GREEN —
|
|
77044
|
+
// Ripe Protocol GREEN — a USD stablecoin (hybrid: CDP debt + PSM + protocol
|
|
77045
|
+
// pool mints, see risk-data ripe_risk.md), the underlying
|
|
77009
77046
|
// of the sGREEN savings rows. `GREEN` is not an identity (unrelated tokens
|
|
77010
77047
|
// carry the ticker, e.g. `Green::GREEN` on Ethereum). token-lists now carries
|
|
77011
77048
|
// it as `Green USD Stablecoin::GREEN` with `props.stablecoin` (2026-10-14);
|
|
@@ -87076,6 +87113,16 @@ var SVM_EARN_VAULT_BUILDERS = {
|
|
|
87076
87113
|
nativeDeposit: true,
|
|
87077
87114
|
requires: { withdraw: SHARES }
|
|
87078
87115
|
},
|
|
87116
|
+
// Loopscale's curated lending vaults: VENUE-BUILT (no conversion leg can be
|
|
87117
|
+
// spliced in), principal in — native SOL into a wSOL vault, the venue wraps
|
|
87118
|
+
// it — and an INSTANT withdraw out by principal, LP shares or all, capped by
|
|
87119
|
+
// the vault's idle balance; native SOL out proven on a wallet with no wSOL
|
|
87120
|
+
// account (2026-10-14). The queued exit has no API route.
|
|
87121
|
+
loopscale: {
|
|
87122
|
+
verbs: ["deposit", "withdraw"],
|
|
87123
|
+
nativeDeposit: true,
|
|
87124
|
+
nativeWithdraw: true
|
|
87125
|
+
},
|
|
87079
87126
|
// queued exit: a request by shares, then a claim
|
|
87080
87127
|
"savings:Solstice": {
|
|
87081
87128
|
verbs: ["deposit", "request-withdraw", "claim"],
|
|
@@ -87189,10 +87236,9 @@ var SVM_EARN_MINT_BUILDERS = {
|
|
|
87189
87236
|
var ROSTER_BRAND_BUILDERS = /* @__PURE__ */ new Set(["savings:Nest"]);
|
|
87190
87237
|
var UNBUILT_REASONS = {
|
|
87191
87238
|
exponent: "Exponent PTs are not tradable through this API yet",
|
|
87192
|
-
lst: "Solana LST staking is not built in this API yet"
|
|
87193
|
-
loopscale: "Loopscale vaults are not built in this API yet"
|
|
87239
|
+
lst: "Solana LST staking is not built in this API yet"
|
|
87194
87240
|
};
|
|
87195
|
-
var LOOPSCALE_LENDING_REASON = "Loopscale lends
|
|
87241
|
+
var LOOPSCALE_LENDING_REASON = "Loopscale lends through its curated vaults (the vault.loopscale rows), not a pool \u2014 there is no plain deposit of principal here";
|
|
87196
87242
|
var MINT_KEY_CI = new Map(
|
|
87197
87243
|
Object.entries(SVM_EARN_MINT_BUILDERS).map(([m, k]) => [m.toLowerCase(), k])
|
|
87198
87244
|
);
|