@1delta/margin-fetcher 0.0.185 → 0.0.186

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
@@ -17985,7 +17985,8 @@ var getLenderPublicData = async (chainId, lenders, prices, additionalYields, mul
17985
17985
  return lenderData;
17986
17986
  };
17987
17987
  async function getLenderDataFromApi(lender, chainId, prices, additionalYields, includeUnlisted = false) {
17988
- if (isMorphoType(lender)) return await fetchMorphoMarkets(chainId, includeUnlisted);
17988
+ if (isMorphoType(lender))
17989
+ return await fetchMorphoMarkets(chainId, includeUnlisted);
17989
17990
  return {};
17990
17991
  }
17991
17992
  function convertLenderDataFromApi(lender, chainId, data, prices, additionalYields, list = {}) {
@@ -17999,7 +18000,13 @@ var getLenderPublicDataViaApi = async (chainId, lenders, prices, additionalYield
17999
18000
  let promises = [];
18000
18001
  for (const lender of lenders) {
18001
18002
  promises.push(
18002
- getLenderDataFromApi(lender, chainId, prices, additionalYields, includeUnlisted)
18003
+ getLenderDataFromApi(
18004
+ lender,
18005
+ chainId,
18006
+ prices,
18007
+ additionalYields,
18008
+ includeUnlisted
18009
+ )
18003
18010
  );
18004
18011
  }
18005
18012
  const [list, ...results] = await Promise.all([tokenList(), ...promises]);