@1delta/margin-fetcher 0.0.311 → 0.0.312

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 CHANGED
@@ -32033,6 +32033,7 @@ var usdaiFetcher = {
32033
32033
  var MAPLE_URL = "https://api.maple.finance/v2/graphql";
32034
32034
  var SYRUP_USDT_ID = "0x356b8d89c1e1239cbbb9de4815c39a1474d5ba7d";
32035
32035
  var SYRUP_USDC_ID = "0x80ac24aa929eaf5013f6436cda2a7ba190f5cc0b";
32036
+ var SYRUP_USDG_ID = "0x87b65c4aaffa76881f9e96f3e7ed945ddfc3cd7a";
32036
32037
  var mapleFetcher = {
32037
32038
  label: "MAPLE",
32038
32039
  fetch: async () => {
@@ -32058,10 +32059,12 @@ var mapleFetcher = {
32058
32059
  const pools = res.data.poolV2S;
32059
32060
  const usdtPool = pools.find((p) => p.id === SYRUP_USDT_ID);
32060
32061
  const usdcPool = pools.find((p) => p.id === SYRUP_USDC_ID);
32062
+ const usdgPool = pools.find((p) => p.id === SYRUP_USDG_ID);
32061
32063
  const parseApy = (raw) => Number(raw) / 1e28;
32062
32064
  return {
32063
32065
  SYRUPUSDT: apyToAprPercent(parseApy(usdtPool.weeklyApy)),
32064
- SYRUPUSDC: apyToAprPercent(parseApy(usdcPool.weeklyApy))
32066
+ SYRUPUSDC: apyToAprPercent(parseApy(usdcPool.weeklyApy)),
32067
+ SYRUPUSDG: apyToAprPercent(parseApy(usdgPool.weeklyApy))
32065
32068
  };
32066
32069
  }
32067
32070
  };
@@ -45183,6 +45186,20 @@ var SINGLE_CHAIN_ENTRIES = {
45183
45186
  yieldFetcher: mapleFetcher,
45184
45187
  yieldKey: "SYRUPUSDT"
45185
45188
  },
45189
+ {
45190
+ address: "0x87b65c4aaffa76881f9e96f3e7ed945ddfc3cd7a",
45191
+ underlying: "0xe343167631d89b6ffc58b88d6b7fb0228795491d",
45192
+ // USDG
45193
+ symbol: "syrupUSDG",
45194
+ brand: "Maple",
45195
+ decimals: 6,
45196
+ isRebasing: false,
45197
+ isMintable: true,
45198
+ withdrawalMode: "request-based",
45199
+ withdrawalCooldownSeconds: 604800,
45200
+ yieldFetcher: mapleFetcher,
45201
+ yieldKey: "SYRUPUSDG"
45202
+ },
45186
45203
  {
45187
45204
  // Hastra Democratized PRIME — ERC-4626 over wYLDS (itself ERC-4626 over
45188
45205
  // USDC), so the share/asset ratio accrues on-chain (`convertToAssets`).
@@ -45801,15 +45818,12 @@ var fetchAaveEarnVaults = async (chainId, multicallRetry, prices = {}, tokenList
45801
45818
  const depositRate = supplyRate + rewardsRate;
45802
45819
  const fee = num2(v.fee?.value);
45803
45820
  const symbol = (v.shareSymbol ?? "").trim();
45804
- const name = (v.shareName ?? "").trim() || symbol;
45821
+ const shareName = (v.shareName ?? "").trim();
45822
+ const name = shareName || symbol;
45823
+ const assetForName = asset ?? (token.symbol ? {
45824
+ symbol: token.symbol} : void 0);
45805
45825
  const curatorName = resolveAaveEarnCuratorName(chainId, v.owner);
45806
- const displayName = composeVaultDisplayName(
45807
- BRAND2,
45808
- curatorName,
45809
- asset ?? (token.symbol ? {
45810
- symbol: token.symbol} : void 0),
45811
- name
45812
- );
45826
+ const displayName = curatorName ? composeVaultDisplayName(BRAND2, curatorName, assetForName, name) : shareName || composeVaultDisplayName(BRAND2, void 0, assetForName, symbol);
45813
45827
  out[addressLc] = {
45814
45828
  address: addressLc,
45815
45829
  underlying: underlyingLc,