@defillama/sdk 2.3.113 → 2.3.114
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.
|
@@ -318,13 +318,13 @@ function default_1(rawBalances, timestamp, verbose, knownTokenPrices, getCoingec
|
|
|
318
318
|
amount = Number(balance) / Math.pow(10, Number(tokenDecimals));
|
|
319
319
|
}
|
|
320
320
|
price = (_d = chainTokenPrices[normalizedAddress_1]) === null || _d === void 0 ? void 0 : _d.usd;
|
|
321
|
-
addTokenBalance(rawTokenBalances,
|
|
321
|
+
//addTokenBalance(rawTokenBalances, normalizedAddress, amount)
|
|
322
322
|
}
|
|
323
323
|
else {
|
|
324
324
|
tokenSymbol = address;
|
|
325
325
|
price = (_e = allChainTokenPrices["coingecko"][address.toLowerCase()]) === null || _e === void 0 ? void 0 : _e.usd;
|
|
326
326
|
amount = Number(balance);
|
|
327
|
-
addTokenBalance(rawTokenBalances,
|
|
327
|
+
//addTokenBalance(rawTokenBalances, `coingecko:${address.toLowerCase()}`, amount)
|
|
328
328
|
}
|
|
329
329
|
if (price === undefined) {
|
|
330
330
|
if (verbose) {
|
|
@@ -366,7 +366,7 @@ function default_1(rawBalances, timestamp, verbose, knownTokenPrices, getCoingec
|
|
|
366
366
|
usdTvl: usdTvl,
|
|
367
367
|
usdTokenBalances: usdTokenBalances,
|
|
368
368
|
tokenBalances: tokenBalances,
|
|
369
|
-
rawTokenBalances
|
|
369
|
+
//rawTokenBalances
|
|
370
370
|
}];
|
|
371
371
|
}
|
|
372
372
|
});
|
package/build/util/index.js
CHANGED
|
@@ -277,8 +277,8 @@ function normalizeAddress(address) {
|
|
|
277
277
|
}
|
|
278
278
|
exports.normalizeAddress = normalizeAddress;
|
|
279
279
|
function normalizePrefixes(address) {
|
|
280
|
-
var
|
|
281
|
-
if (
|
|
280
|
+
var prefix = address.substring(0, address.indexOf(":"));
|
|
281
|
+
if (["solana", "tezos"].includes(prefix))
|
|
282
282
|
return address;
|
|
283
283
|
return address.startsWith("0x")
|
|
284
284
|
? "ethereum:" + address.toLowerCase()
|