Skip to content

Commit

Permalink
fix: Remove unused line
Browse files Browse the repository at this point in the history
  • Loading branch information
jinoosss committed Nov 29, 2023
1 parent aa2a11a commit a820364
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 69 deletions.
17 changes: 0 additions & 17 deletions packages/swap-router/src/swap-router/swap-router-default.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { printEstimateRouteInfo, printPoolInfo } from "../common";
import { sumBigInts } from "../common/array.util";
import { Pool } from "../swap-simulator";
import { SwapRouter } from "./swap-router";
Expand Down Expand Up @@ -250,8 +249,6 @@ describe("swap router of swap simulator test pool", () => {
"EXACT_IN",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand All @@ -272,8 +269,6 @@ describe("swap router of swap simulator test pool", () => {
"EXACT_OUT",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand All @@ -295,8 +290,6 @@ describe("swap router of swap simulator test pool", () => {
"EXACT_IN",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand All @@ -317,8 +310,6 @@ describe("swap router of swap simulator test pool", () => {
"EXACT_OUT",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand All @@ -344,8 +335,6 @@ describe("swap simulator", () => {
"EXACT_IN",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand All @@ -370,8 +359,6 @@ describe("swap simulator", () => {
"EXACT_OUT",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand All @@ -393,8 +380,6 @@ describe("swap simulator", () => {
"EXACT_IN",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand All @@ -415,8 +400,6 @@ describe("swap simulator", () => {
"EXACT_OUT",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ describe("swap router of higher range positions pool", () => {
"EXACT_IN",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand All @@ -81,8 +79,6 @@ describe("swap router of higher range positions pool", () => {
"EXACT_OUT",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand All @@ -105,8 +101,6 @@ describe("swap router of higher range positions pool", () => {
"EXACT_IN",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand All @@ -127,8 +121,6 @@ describe("swap router of higher range positions pool", () => {
"EXACT_OUT",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ describe("swap router of lower range positions pool", () => {
"EXACT_IN",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand All @@ -80,8 +78,6 @@ describe("swap router of lower range positions pool", () => {
"EXACT_OUT",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand All @@ -104,8 +100,6 @@ describe("swap router of lower range positions pool", () => {
"EXACT_IN",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand All @@ -126,8 +120,6 @@ describe("swap router of lower range positions pool", () => {
"EXACT_OUT",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { printEstimateRouteInfo, printPoolInfo } from "../common";
import { sumBigInts } from "../common/array.util";
import { makePoolsByRPC } from "../common/mapper";
import { SwapRouter } from "./swap-router";
Expand Down Expand Up @@ -133,7 +132,6 @@ const multiPairPools = makePoolsByRPC([
describe("swap router of multi pair pools", () => {
describe("gno.land/r/bar to gno.land/r/qux", () => {
test("EXANCT_IN, 100000", async () => {
printPoolInfo(multiPairPools);
const swapRouter = new SwapRouter(multiPairPools);
const estimatedRoutes = swapRouter.estimateSwapRoute(
"gno.land/r/bar",
Expand All @@ -142,8 +140,6 @@ describe("swap router of multi pair pools", () => {
"EXACT_IN",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand All @@ -170,8 +166,6 @@ describe("swap router of multi pair pools", () => {
"EXACT_OUT",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand All @@ -194,8 +188,6 @@ describe("swap router of multi pair pools", () => {
"EXACT_IN",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand All @@ -216,8 +208,6 @@ describe("swap router of multi pair pools", () => {
"EXACT_OUT",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { printEstimateRouteInfo, printPoolInfo } from "../common";
import { sumBigInts } from "../common/array.util";
import { makePoolsByRPC } from "../common/mapper";
import { SwapRouter } from "./swap-router";
Expand Down Expand Up @@ -363,7 +362,6 @@ const multiPairPools = makePoolsByRPC([
describe("swap router of multi pair pools", () => {
describe("gno.land/r/bar to gno.land/r/qux", () => {
test("EXANCT_IN, 100000", async () => {
printPoolInfo(multiPairPools);
const swapRouter = new SwapRouter(multiPairPools);
const estimatedRoutes = swapRouter.estimateSwapRoute(
"gno.land/r/bar",
Expand All @@ -372,8 +370,6 @@ describe("swap router of multi pair pools", () => {
"EXACT_IN",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand Down Expand Up @@ -425,8 +421,6 @@ describe("swap router of multi pair pools", () => {
"EXACT_OUT",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand Down Expand Up @@ -454,8 +448,6 @@ describe("swap router of multi pair pools", () => {
"EXACT_IN",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand Down Expand Up @@ -507,8 +499,6 @@ describe("swap router of multi pair pools", () => {
"EXACT_OUT",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,6 @@ describe("swap router of single pair pool", () => {
"EXACT_IN",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand All @@ -163,8 +161,6 @@ describe("swap router of single pair pool", () => {
"EXACT_OUT",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand All @@ -187,8 +183,6 @@ describe("swap router of single pair pool", () => {
"EXACT_IN",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand All @@ -209,8 +203,6 @@ describe("swap router of single pair pool", () => {
"EXACT_OUT",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand All @@ -235,8 +227,6 @@ describe("swap router of single pair multi pools", () => {
"EXACT_IN",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand Down Expand Up @@ -267,8 +257,6 @@ describe("swap router of single pair multi pools", () => {
"EXACT_OUT",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand All @@ -291,8 +279,6 @@ describe("swap router of single pair multi pools", () => {
"EXACT_IN",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand All @@ -313,8 +299,6 @@ describe("swap router of single pair multi pools", () => {
"EXACT_OUT",
);

printEstimateRouteInfo(estimatedRoutes);

const sumAmount = sumBigInts(
estimatedRoutes.map(route => route.amountOut),
);
Expand Down

0 comments on commit a820364

Please sign in to comment.