Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vrtnd committed Sep 4, 2023
1 parent 0b2b2a2 commit e836ade
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/aggregate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export const aggregateData = async (
if (!is_usd_volume) {
if (!token || !chain) return;
const tokenL = token.toLowerCase();
uniqueTokens[transformTokens[chain][tokenL] ?? `${chain}:${tokenL}`] = true;
uniqueTokens[transformTokens[chain]?.[tokenL] ?? `${chain}:${tokenL}`] = true;
}
})
);
Expand Down Expand Up @@ -285,8 +285,8 @@ export const aggregateData = async (
usdValue = rawBnAmount.toNumber();
} else {
const tokenL = token.toLowerCase();
const transformedDecimals = transformTokenDecimals[chain][tokenL] ?? null;
tokenKey = transformTokens[chain][tokenL] ?? `${chain}:${tokenL}`;
const transformedDecimals = transformTokenDecimals[chain]?.[tokenL] ?? null;
tokenKey = transformTokens[chain]?.[tokenL] ?? `${chain}:${tokenL}`;
if (blacklist.includes(tokenKey)) {
console.log(`${tokenKey} in blacklist. Skipping`);
return;
Expand Down

0 comments on commit e836ade

Please sign in to comment.