Skip to content

Commit

Permalink
Removed debug comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
johngrantuk committed Apr 30, 2021
1 parent 88bbaf3 commit 87a966d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
12 changes: 0 additions & 12 deletions dist/sor.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,18 +374,6 @@ exports.smartOrderRouterMultiHopEpsOfInterest = (
.toString(); // Add dust to second swapExactOut
}
}
console.log(`!!!!!!! SOR Debug`);
console.log(swaps);
console.log(totalReturnConsideringFees.toString());
console.log(bestTotalReturnConsideringFees.toString());
console.log(
bmath_1
.bmul(
new bignumber_1.BigNumber(1.5).times(bmath_1.BONE),
costReturnToken
)
.toString()
);
// totalReturnConsideringFees is used to compare V1 vs V2 liquidity
// To consider the fact that V1 uses the exchangeProxy we should add a constant initial 150k gas
// as we want for our UI to clearly choose V2 if both V1 and V2 have exactly the same liquidity and both are using a single pair swap
Expand Down
8 changes: 0 additions & 8 deletions src/sor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,14 +424,6 @@ export const smartOrderRouterMultiHopEpsOfInterest = (
}
}

console.log(`!!!!!!! SOR Debug`);
console.log(swaps);
console.log(totalReturnConsideringFees.toString());
console.log(bestTotalReturnConsideringFees.toString());
console.log(
bmul(new BigNumber(1.5).times(BONE), costReturnToken).toString()
);

// totalReturnConsideringFees is used to compare V1 vs V2 liquidity
// To consider the fact that V1 uses the exchangeProxy we should add a constant initial 150k gas
// as we want for our UI to clearly choose V2 if both V1 and V2 have exactly the same liquidity and both are using a single pair swap
Expand Down

0 comments on commit 87a966d

Please sign in to comment.