@1delta/margin-fetcher 5.0.82 → 5.0.83
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 +10 -4
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -56596,8 +56596,15 @@ var CHAINLINK_DECIMALS = 8;
|
|
|
56596
56596
|
var USD_PRICED_OVERRIDES = {
|
|
56597
56597
|
[Lender.COMPOUND_V3_AERO]: /* @__PURE__ */ new Set(["8453"]),
|
|
56598
56598
|
// BASE - prices already in USD
|
|
56599
|
-
[Lender.COMPOUND_V3_USDBC]: /* @__PURE__ */ new Set(["8453"])
|
|
56599
|
+
[Lender.COMPOUND_V3_USDBC]: /* @__PURE__ */ new Set(["8453"]),
|
|
56600
56600
|
// BASE - prices already in USD
|
|
56601
|
+
// Ronin WRON comet quotes in USD, NOT in its WRON base. Verified on-chain
|
|
56602
|
+
// 2026-09-16 (comet 0xc0Afdb…c0c0): USDC feed reads 1.00000071, WETH
|
|
56603
|
+
// 2415.66, WRON 0.0479 — all USD. Without this override every feed gets
|
|
56604
|
+
// multiplied by WRON/USD (~0.05), which shipped WRON at 9.4e-7 USD. Do NOT
|
|
56605
|
+
// generalize from the sibling WETH comet (0x4006eD…6DFE): that one IS
|
|
56606
|
+
// base-quoted (constant feed on WETH, RON/ETH = 2e-5) and needs the scaling.
|
|
56607
|
+
[Lender.COMPOUND_V3_WRON]: /* @__PURE__ */ new Set(["2020"])
|
|
56601
56608
|
};
|
|
56602
56609
|
function getCompoundV3Calls(chainId) {
|
|
56603
56610
|
const oraclesData = compoundV3OraclesData() ?? {};
|
|
@@ -56659,9 +56666,8 @@ function parseCompoundV3Results(data, meta, context) {
|
|
|
56659
56666
|
const baseAssetLc = queryMeta.baseAsset.toLowerCase();
|
|
56660
56667
|
const baseOracleKey = tokenList?.[baseAssetLc]?.assetGroup ?? `${chainId}-${baseAssetLc}`;
|
|
56661
56668
|
const baseAssetUSD = usdPrices[baseOracleKey] ?? usdPrices[baseAssetLc];
|
|
56662
|
-
if (baseAssetUSD)
|
|
56663
|
-
|
|
56664
|
-
}
|
|
56669
|
+
if (!baseAssetUSD) return;
|
|
56670
|
+
priceUSD = rawPrice * baseAssetUSD;
|
|
56665
56671
|
}
|
|
56666
56672
|
const updatedAtRaw = Array.isArray(rawResult) ? Number(rawResult[UPDATED_AT_INDEX]) : 0;
|
|
56667
56673
|
entries.push({
|