Skip to content

Commit

Permalink
Merge pull request delta-hq#272 from delta-hq/0xroll-patch-3
Browse files Browse the repository at this point in the history
remove user level logging for logx
  • Loading branch information
nitish-91 authored Jul 24, 2024
2 parents 703930a + 6eb1be7 commit 133d900
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions adapters/logx/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ const getUserTVLByBlock = async (block: BlockData) => {
const addLiquidities = await aggregateData(blockNumber, 'add');
const removeLiquidities = await aggregateData(blockNumber, 'remove');

console.log('Add Liquidities:', addLiquidities);
console.log('Remove Liquidities:', removeLiquidities);
// console.log('Add Liquidities:', addLiquidities);
// console.log('Remove Liquidities:', removeLiquidities);

addLiquidities.forEach((item: any) => {
accountBalances[item.account] = (accountBalances[item.account] || BigInt(0)) + BigInt(item.mintAmount);
Expand All @@ -131,7 +131,7 @@ const getUserTVLByBlock = async (block: BlockData) => {
accountBalances[item.account] = (accountBalances[item.account] || BigInt(0)) - BigInt(item.llpAmount);
});

console.log('Account Balances:', accountBalances);
// console.log('Account Balances:', accountBalances);

const csvRows: OutputDataSchemaRow[] = Object.keys(accountBalances)
.filter(account => accountBalances[account] > BigInt(0)) // Filter out zero or negative balances
Expand Down

0 comments on commit 133d900

Please sign in to comment.