@1delta/margin-fetcher 0.0.220 → 0.0.221
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
|
@@ -32338,15 +32338,15 @@ function parseAaveV4Results(data, meta, context) {
|
|
|
32338
32338
|
try {
|
|
32339
32339
|
const priceNum = Number(BigInt(rawPrice.toString())) / divisor;
|
|
32340
32340
|
if (isNaN(priceNum) || priceNum === 0) continue;
|
|
32341
|
+
const spokeLenderKey = aaveV4SpokeLenderKey(meta.fork, entry.spoke);
|
|
32341
32342
|
entries.push({
|
|
32342
32343
|
asset: entry.underlying,
|
|
32343
32344
|
price: priceNum,
|
|
32344
32345
|
priceUSD: priceNum,
|
|
32345
|
-
marketUid: createMarketUid(
|
|
32346
|
-
|
|
32347
|
-
|
|
32348
|
-
|
|
32349
|
-
),
|
|
32346
|
+
marketUid: createMarketUid(chainId, spokeLenderKey, entry.underlying),
|
|
32347
|
+
// Route into the per-spoke lender bucket so price entries live under
|
|
32348
|
+
// the same lender key as the lending data (mirrors Morpho's pattern).
|
|
32349
|
+
targetLender: spokeLenderKey,
|
|
32350
32350
|
configId: entry.spoke
|
|
32351
32351
|
});
|
|
32352
32352
|
} catch {
|