@1delta/margin-fetcher 0.0.267 → 0.0.269
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 +6 -6
- package/dist/index.js.map +1 -1
- package/dist/lending/public-data/dolomite/fetchFromSubgraph.d.ts.map +1 -1
- package/dist/lending/public-data/dolomite/publicCallParse.d.ts.map +1 -1
- package/dist/lending/user-data/dolomite/userCallParse.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -19873,8 +19873,8 @@ var getDolomitePublicDataConverter = (lender, chainId, _prices, additionalYields
|
|
|
19873
19873
|
const isClosing = Boolean(data[base + 1 /* isClosing */]);
|
|
19874
19874
|
const config = buildDolomiteConfigs(marketId, p, R, isClosing, emode);
|
|
19875
19875
|
const liquidity = Number(totalDeposits) - Number(totalDebt);
|
|
19876
|
-
const marketUid = createMarketUid(chainId, lender,
|
|
19877
|
-
result[
|
|
19876
|
+
const marketUid = createMarketUid(chainId, lender, String(marketId));
|
|
19877
|
+
result[marketUid] = {
|
|
19878
19878
|
marketUid,
|
|
19879
19879
|
name: lenderShortName(lender) + " " + (meta?.symbol ?? ""),
|
|
19880
19880
|
poolId: underlying,
|
|
@@ -20932,8 +20932,8 @@ function convertDolomiteSubgraphMarkets(raw, chainId, prices, additionalYields,
|
|
|
20932
20932
|
isClosing,
|
|
20933
20933
|
emode
|
|
20934
20934
|
);
|
|
20935
|
-
const marketUid = createMarketUid(chainId, LENDER,
|
|
20936
|
-
result[
|
|
20935
|
+
const marketUid = createMarketUid(chainId, LENDER, String(info.token.marketId));
|
|
20936
|
+
result[marketUid] = {
|
|
20937
20937
|
marketUid,
|
|
20938
20938
|
name: lenderShortName(LENDER) + " " + (meta?.symbol ?? info.token.symbol ?? ""),
|
|
20939
20939
|
poolId: underlying,
|
|
@@ -23943,7 +23943,7 @@ var getDolomiteUserDataConverter = (lender, chainId, account, metaMap) => {
|
|
|
23943
23943
|
const wei = weis[k];
|
|
23944
23944
|
if (!wei) return;
|
|
23945
23945
|
const underlying = normalizeUnderlying3(token);
|
|
23946
|
-
const key = createMarketUid(chainId, lender,
|
|
23946
|
+
const key = createMarketUid(chainId, lender, String(marketIds[k]));
|
|
23947
23947
|
const meta = metaMap?.[key];
|
|
23948
23948
|
if (!meta) return;
|
|
23949
23949
|
const decimals = meta.asset?.decimals ?? 18;
|
|
@@ -34145,7 +34145,7 @@ function parseDolomiteResults(data, meta, context) {
|
|
|
34145
34145
|
asset,
|
|
34146
34146
|
price: priceUSD,
|
|
34147
34147
|
priceUSD,
|
|
34148
|
-
marketUid: createMarketUid(chainId, LENDER2,
|
|
34148
|
+
marketUid: createMarketUid(chainId, LENDER2, String(mkt.marketId)),
|
|
34149
34149
|
targetLender: LENDER2
|
|
34150
34150
|
});
|
|
34151
34151
|
} catch {
|