Skip to content

Commit

Permalink
fix: small
Browse files Browse the repository at this point in the history
  • Loading branch information
JackieJoo committed Nov 5, 2024
1 parent ede6808 commit 52782ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
5 changes: 4 additions & 1 deletion src/dex/cables/cables-integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,10 @@ describe('Cables', function () {
tokens[tokenASymbol].address,
10,
);
console.log(`${tokenASymbol} Top Pools:`, poolLiquidity);
console.log(
`${tokenASymbol} Top Pools:`,
JSON.stringify(poolLiquidity, null, 2),
);

if (!cables.hasConstantPriceLargeAmounts) {
checkPoolsLiquidity(
Expand Down
16 changes: 0 additions & 16 deletions src/dex/cables/rate-fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,6 @@ export class CablesRateFetcher {
const networkId = String(this.network);
const pairs = res.pairs[networkId];

// console.log("===> pairs DEBUG:", pairs);
// process.exit(0);

let normalized_pairs: { [token: string]: PairData } = {};
Object.keys(pairs).forEach(key => {
normalized_pairs[key.toLowerCase()] = pairs[key];
Expand All @@ -165,17 +162,9 @@ export class CablesRateFetcher {
}

private handlePricesResponse(res: CablesPricesResponse): void {
// console.log('PRICES RESPONSE', res);
// console.log(JSON.stringify(res))
// console.log('Network:', this.network);
// process.exit(0);

const networkId = String(this.network);
const prices = res.prices[networkId];

// console.log("===> prices DEBUG:", prices);
// process.exit(0);

this.dexHelper.cache.setex(
this.dexKey,
this.network,
Expand Down Expand Up @@ -210,13 +199,8 @@ export class CablesRateFetcher {
const networkId = String(this.network);
const tokens = res.tokens[networkId];

// console.log("===> tokens DEBUG:", tokens);

const normalized_tokens = this.normalizeAddressesToLowerCase(tokens);

// console.log("===> tokens DEBUG:", normalized_tokens);
// process.exit(0);

this.dexHelper.cache.setex(
this.dexKey,
this.network,
Expand Down

0 comments on commit 52782ae

Please sign in to comment.