@1delta/margin-fetcher 0.0.172 → 0.0.173
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
|
@@ -8158,7 +8158,7 @@ var getAaveV2ReservesDataConverter = (lender, chainId, prices, additionalYields,
|
|
|
8158
8158
|
stableBorrowRate: formatAaveRawApyToApr(
|
|
8159
8159
|
reserveData?.[5 /* stableBorrowRate */]?.toString()
|
|
8160
8160
|
),
|
|
8161
|
-
intrinsicYield: additionalYields?.intrinsicYields[oracleKey] ?? 0,
|
|
8161
|
+
intrinsicYield: additionalYields?.intrinsicYields?.[oracleKey] ?? 0,
|
|
8162
8162
|
// rewards
|
|
8163
8163
|
rewards: lender === Lender.MERIDIAN && chainId === Chain.TAIKO_ALETHIA && additionalYields?.lenderRewards ? [
|
|
8164
8164
|
{
|
|
@@ -17690,7 +17690,9 @@ function normalizeCluster(cluster, opts) {
|
|
|
17690
17690
|
|
|
17691
17691
|
// src/lending/public-data/euler/publicCallParse.ts
|
|
17692
17692
|
var getEulerV2ReservesDataConverter = (lender, chainId, prices, additionalYields, tokenList = {}) => {
|
|
17693
|
+
const config = eulerConfigs()?.[lender]?.[chainId];
|
|
17693
17694
|
const vaultAddresses = eulerVaults()?.[lender]?.[chainId] ?? [];
|
|
17695
|
+
if (!config || vaultAddresses.length === 0) return [() => void 0, 0];
|
|
17694
17696
|
const expectedNumberOfCalls = vaultAddresses.length;
|
|
17695
17697
|
return [
|
|
17696
17698
|
(data) => {
|