@1delta/margin-fetcher 0.0.74 → 0.0.75
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
|
|
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
|
|
8234
|
-
variableBorrowRate: additionalYields
|
|
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
|
} : {},
|