Skip to content

Commit

Permalink
also fix routeToString
Browse files Browse the repository at this point in the history
  • Loading branch information
jsy1218 committed Oct 16, 2024
1 parent cd087bc commit fc56f38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/util/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ export const routeToString = (route: SupportedRoutes): string => {
pool.token0,
pool.token1,
pool.fee,
0,
ADDRESS_ZERO
pool.tickSpacing,
pool.hooks
)}]`;
} else {
throw new Error(`Unsupported pool ${JSON.stringify(pool)}`);
Expand Down Expand Up @@ -131,7 +131,7 @@ export const routeAmountsToString = (
const percent = new Percent(portion.numerator, portion.denominator);
/// @dev special case for MIXED routes we want to show user friendly V2+V3 instead
return `[${
protocol == Protocol.MIXED ? 'V2 + V3' : protocol
protocol == Protocol.MIXED ? 'V2 + V3 + V4' : protocol
}] ${percent.toFixed(2)}% = ${routeToString(route)}`;
});

Expand Down

0 comments on commit fc56f38

Please sign in to comment.