@1delta/margin-fetcher 0.0.185 → 0.0.187

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
@@ -7491,7 +7491,8 @@ var ENABLED_EULER_V2_CHAINS = [
7491
7491
  Chain.HYPEREVM,
7492
7492
  Chain.UNICHAIN,
7493
7493
  Chain.SONIC_MAINNET,
7494
- Chain.MONAD_MAINNET
7494
+ Chain.MONAD_MAINNET,
7495
+ Chain.AVALANCHE_C_CHAIN
7495
7496
  // Chain.BASE,
7496
7497
  // Chain.ARBITRUM_ONE,
7497
7498
  ];
@@ -17985,7 +17986,8 @@ var getLenderPublicData = async (chainId, lenders, prices, additionalYields, mul
17985
17986
  return lenderData;
17986
17987
  };
17987
17988
  async function getLenderDataFromApi(lender, chainId, prices, additionalYields, includeUnlisted = false) {
17988
- if (isMorphoType(lender)) return await fetchMorphoMarkets(chainId, includeUnlisted);
17989
+ if (isMorphoType(lender))
17990
+ return await fetchMorphoMarkets(chainId, includeUnlisted);
17989
17991
  return {};
17990
17992
  }
17991
17993
  function convertLenderDataFromApi(lender, chainId, data, prices, additionalYields, list = {}) {
@@ -17999,7 +18001,13 @@ var getLenderPublicDataViaApi = async (chainId, lenders, prices, additionalYield
17999
18001
  let promises = [];
18000
18002
  for (const lender of lenders) {
18001
18003
  promises.push(
18002
- getLenderDataFromApi(lender, chainId, prices, additionalYields, includeUnlisted)
18004
+ getLenderDataFromApi(
18005
+ lender,
18006
+ chainId,
18007
+ prices,
18008
+ additionalYields,
18009
+ includeUnlisted
18010
+ )
18003
18011
  );
18004
18012
  }
18005
18013
  const [list, ...results] = await Promise.all([tokenList(), ...promises]);