@1delta/margin-fetcher 5.0.125 → 5.0.126

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
@@ -68871,7 +68871,7 @@ query GetVaults {
68871
68871
  name
68872
68872
  symbol
68873
68873
  decimals
68874
- priceUsd
68874
+ price { usd }
68875
68875
  }
68876
68876
  liquidity {
68877
68877
  underlying
@@ -68989,7 +68989,7 @@ function parseVault2(v, chainId, prices, tokenList) {
68989
68989
  const liquidityFormatted = Number(parseRawAmount(liquidityRaw, decimals));
68990
68990
  const liquidityUsd = Number(v.liquidity?.usd ?? 0);
68991
68991
  const oracleKey = toOracleKey(assetMeta?.assetGroup) ?? toGenericPriceKey(assetAddr, chainId);
68992
- const apiPriceUsd = Number(v.asset?.priceUsd ?? 0);
68992
+ const apiPriceUsd = Number(v.asset?.price?.usd ?? 0);
68993
68993
  const resolvedPriceUsd = prices[oracleKey] ?? prices[assetAddr] ?? apiPriceUsd ?? 0;
68994
68994
  const netApy = Number(state.netApy ?? state.apy ?? 0);
68995
68995
  const supplyRate = apyToAprPercent(netApy * 100);
@@ -69056,7 +69056,7 @@ query GetVaultV2s {
69056
69056
  name
69057
69057
  symbol
69058
69058
  decimals
69059
- priceUsd
69059
+ price { usd }
69060
69060
  }
69061
69061
  totalAssets
69062
69062
  totalAssetsUsd