Skip to content

Commit

Permalink
fix: temporary disable uni-v3 pools _setState logs
Browse files Browse the repository at this point in the history
KanievskyiDanylo committed Jan 8, 2025
1 parent 325cd85 commit b988d2f
Showing 2 changed files with 18 additions and 18 deletions.
18 changes: 9 additions & 9 deletions src/dex/pancakeswap-v3/pancakeswap-v3-pool.ts
Original file line number Diff line number Diff line change
@@ -265,15 +265,15 @@ export class PancakeSwapV3EventPool extends StatefulEventSubscriber<PoolState> {
}

_setState(state: any, blockNumber: number, reason?: string): void {
if (this.parentName === 'PancakeswapV3') {
this.logger.info(
`PancakeV3: Setting state: ${!!state ? 'non-empty' : 'empty'} for '${
this.name
}' for bn: '${blockNumber}' due to reason: '${
reason ?? 'outside_of_event_subscriber'
}'`,
);
}
// if (this.parentName === 'PancakeswapV3') {
// this.logger.info(
// `PancakeV3: Setting state: ${!!state ? 'non-empty' : 'empty'} for '${
// this.name
// }' for bn: '${blockNumber}' due to reason: '${
// reason ?? 'outside_of_event_subscriber'
// }'`,
// );
// }
super._setState(state, blockNumber);
}

18 changes: 9 additions & 9 deletions src/dex/uniswap-v3/uniswap-v3-pool.ts
Original file line number Diff line number Diff line change
@@ -269,15 +269,15 @@ export class UniswapV3EventPool extends StatefulEventSubscriber<PoolState> {
}

_setState(state: any, blockNumber: number, reason?: string): void {
if (this.parentName === 'UniswapV3') {
this.logger.info(
`UniV3: Setting state: '${!!state ? 'non-empty' : 'empty'}' for '${
this.name
}' for bn: '${blockNumber}' due to reason: '${
reason ?? 'outside_of_event_subscriber'
}'`,
);
}
// if (this.parentName === 'UniswapV3') {
// this.logger.info(
// `UniV3: Setting state: '${!!state ? 'non-empty' : 'empty'}' for '${
// this.name
// }' for bn: '${blockNumber}' due to reason: '${
// reason ?? 'outside_of_event_subscriber'
// }'`,
// );
// }
super._setState(state, blockNumber);
}

0 comments on commit b988d2f

Please sign in to comment.