Skip to content

Commit

Permalink
fix: allowed pool types
Browse files Browse the repository at this point in the history
  • Loading branch information
0xcodercrane committed Dec 27, 2023
1 parent bdcd07a commit 45052d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/connectors/pancakeswap/pancakeswap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import { PublicClient, createPublicClient, http, getAddress } from 'viem';
import { GraphQLClient } from 'graphql-request';
import {
Pool,
PoolType,
SmartRouter,
SmartRouterTrade,
SwapRouter,
Expand Down Expand Up @@ -210,6 +211,7 @@ export class PancakeSwap implements Uniswapish {
poolProvider: SmartRouter.createStaticPoolProvider(pools),
quoteProvider,
quoterOptimization: true,
allowedPoolTypes: [PoolType.V2, PoolType.V3, PoolType.STABLE],
}
);

Expand Down Expand Up @@ -274,6 +276,7 @@ export class PancakeSwap implements Uniswapish {
poolProvider: SmartRouter.createStaticPoolProvider(pools),
quoteProvider,
quoterOptimization: true,
allowedPoolTypes: [PoolType.V2, PoolType.V3, PoolType.STABLE],
}
);

Expand Down

0 comments on commit 45052d9

Please sign in to comment.