@1delta/margin-fetcher 0.0.74 → 0.0.76

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
@@ -8226,12 +8226,12 @@ var getAaveV2ReservesDataConverter = (lender, chainId, prices, additionalYields,
8226
8226
  stableBorrowRate: formatAaveRawApyToApr(
8227
8227
  reserveData?.[5 /* stableBorrowRate */]?.toString()
8228
8228
  ),
8229
- stakingYield: additionalYields.intrinsicYields[oracleKey] ?? 0,
8229
+ stakingYield: additionalYields?.intrinsicYields[oracleKey] ?? 0,
8230
8230
  // rewards
8231
- rewards: lender === Lender.MERIDIAN && chainId === Chain.TAIKO_ALETHIA ? {
8231
+ rewards: lender === Lender.MERIDIAN && chainId === Chain.TAIKO_ALETHIA && additionalYields?.lenderRewards ? {
8232
8232
  TAIKO: {
8233
- depositRate: additionalYields.lenderRewards[Lender.MERIDIAN]?.[asset]?.deposit ?? 0,
8234
- variableBorrowRate: additionalYields.lenderRewards[Lender.MERIDIAN]?.[asset]?.borrow ?? 0,
8233
+ depositRate: additionalYields?.lenderRewards[Lender.MERIDIAN]?.[asset]?.deposit ?? 0,
8234
+ variableBorrowRate: additionalYields?.lenderRewards[Lender.MERIDIAN]?.[asset]?.borrow ?? 0,
8235
8235
  stableBorrowRate: 0
8236
8236
  }
8237
8237
  } : {},
@@ -20270,6 +20270,10 @@ var fetchMainPrices = async (chainIds, rpcOverrides, lists = {}) => {
20270
20270
  aaveForks = aaveForks?.filter((a) => a !== Lender.KLAYBANK);
20271
20271
  if (chainId === Chain.GNOSIS)
20272
20272
  aaveForks = aaveForks?.filter((a) => a !== Lender.AGAVE);
20273
+ if (chainId === Chain.ETHEREUM_MAINNET)
20274
+ aaveForks = aaveForks?.filter(
20275
+ (a) => a !== Lender.ZEROLEND_STABLECOINS_RWA
20276
+ );
20273
20277
  const reservesToQuery = aaveForks?.map((a) => ({
20274
20278
  fork: a,
20275
20279
  assets: getAaveAssets(chainId, a)