Skip to content

Commit

Permalink
fix: balancer-v2: useless logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Louis-Amas committed Dec 23, 2022
1 parent 61d4920 commit eb26425
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/dex/balancer-v2/balancer-v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ export class BalancerV2EventPool extends StatefulEventSubscriber<PoolStateMap> {
side: SwapSide,
): { unit: bigint; prices: bigint[]; gasCost: number } | null {
if (!this.isSupportedPool(pool.poolType)) {
console.error(`Unsupported Pool Type: ${pool.poolType}`);
this.logger.error(`Unsupported Pool Type: ${pool.poolType}`);
return null;
}

Expand Down Expand Up @@ -569,11 +569,8 @@ export class BalancerV2
const _from = this.dexHelper.config.wrapETH(from);
const _to = this.dexHelper.config.wrapETH(to);

console.log(_from.address.toLowerCase(), _to.address.toLowerCase());
console.log(JSON.stringify(this.eventPools.allPools));
const pools = this.getPools(_from, _to);

console.log(pools);
const identifiers: string[] = [];

pools.forEach(p => {
Expand Down Expand Up @@ -674,12 +671,6 @@ export class BalancerV2
})
: poolsWithTokens;

console.log(
allowedPools,
limitPools,
poolsWithTokens,
this.eventPools.virtualBoostedPools,
);
if (!allowedPools.length) return null;

const unitVolume = getBigIntPow(
Expand Down

0 comments on commit eb26425

Please sign in to comment.