Skip to content

Commit

Permalink
remove pool check for swapAndRoute
Browse files Browse the repository at this point in the history
  • Loading branch information
shunjizhan committed Dec 11, 2024
1 parent 919f959 commit f5248e9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions src/api/swapAndLp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ export const shouldRouteSwapAndLp = async (params: SwapAndLpParams) => {
try {
const { factory, feeAddr, relayerAddr } = await prepareSwapAndLp(Mainnet.Acala);

if (!EUPHRATES_POOLS.includes(params.poolId)) {
throw new RouteError(`euphrates poolId ${params.poolId} is not supported`, params);
}

const insts = {
...DEFAULT_SWAP_AND_LP_PARAMS,
recipient: params.recipient,
Expand Down
4 changes: 0 additions & 4 deletions src/api/swapAndRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ export const shouldSwapAndRoute = async (params: SwapAndRouteParams) => {
try {
const { factory, feeAddr } = await prepareSwapAndRoute(Mainnet.Acala);

if (!EUPHRATES_POOLS.includes(params.poolId)) {
throw new RouteError(`euphrates poolId ${params.poolId} is not supported`, params);
}

const insts = {
...DEFAULT_SWAP_AND_ROUTE_PARAMS,
recipient: params.recipient,
Expand Down

0 comments on commit f5248e9

Please sign in to comment.