@1delta/margin-fetcher 0.0.87 → 0.0.88

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
@@ -12001,7 +12001,9 @@ var getCompoundV2ReservesDataConverter = (lender, chainId, prices, additionalYie
12001
12001
  const price = prices[asset.assetGroup] ?? 0;
12002
12002
  const pausedActions = decodePausedActions(currentEntry.pausedActions);
12003
12003
  const allPaused = pausedActions[0 /* MINT */] && pausedActions[2 /* BORROW */] && pausedActions[1 /* REDEEM */] && pausedActions[3 /* REPAY */];
12004
- returnData.data[asset.address] = {
12004
+ const poolId = asset.address;
12005
+ returnData.data[poolId] = {
12006
+ poolId,
12005
12007
  asset,
12006
12008
  // interest rates
12007
12009
  depositRate: calculateRateForCompound(
@@ -21632,10 +21634,11 @@ var fetchMainPrices = async (chainIds, rpcOverrides, lists = {}) => {
21632
21634
  uniswapV3Calls,
21633
21635
  api3,
21634
21636
  rwa,
21635
- comet
21637
+ comet,
21638
+ compoundV2
21636
21639
  }
21637
21640
  } of chainResults) {
21638
- const morphoOffset = chainlink.calls.length + aaveCalls.length + uniswapCalls.length + uniswapV3Calls.length + api3.calls.length + comet.calls.length + rwa.calls.length;
21641
+ const morphoOffset = chainlink.calls.length + aaveCalls.length + uniswapCalls.length + uniswapV3Calls.length + api3.calls.length + comet.calls.length + compoundV2.calls.length + rwa.calls.length;
21639
21642
  const morphoResult = result.slice(morphoOffset);
21640
21643
  const morphoData = parseMorphoResults(
21641
21644
  chainId,
@@ -21914,6 +21917,7 @@ function getExponentForOracle(chainId, fork) {
21914
21917
  if (chainId === Chain.XDC_NETWORK) return 0n;
21915
21918
  if (chainId === Chain.TELOS_EVM_MAINNET) return 10n;
21916
21919
  if (chainId === Chain.SONIC_MAINNET && fork === Lender.POLTER) return 10n;
21920
+ if (chainId === Chain.ARBITRUM_ONE && fork === Lender.RADIANT_V2) return 10n;
21917
21921
  return AAVE_V2_LENDERS.includes(fork) ? 0n : 10n;
21918
21922
  }
21919
21923
  var parseAaveResults = (chainId, data, queries, list = {}) => {