Skip to content

Commit 3f481a8

Browse files
committed
add bsc config
1 parent 75a482f commit 3f481a8

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

src/swapService/config/bsc.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import { type ChainRoutingConfig, SwapperMode } from "../interface"
2+
import { StrategyBalmySDK, StrategyRepayWrapper } from "../strategies"
3+
4+
const bscRoutingConfig: ChainRoutingConfig = [
5+
// WRAPPERS
6+
{
7+
strategy: StrategyRepayWrapper.name(),
8+
match: {
9+
isRepay: true,
10+
swapperModes: [SwapperMode.EXACT_IN],
11+
},
12+
},
13+
// DEFAULTS
14+
{
15+
strategy: StrategyBalmySDK.name(),
16+
config: {
17+
sourcesFilter: {
18+
includeSources: [
19+
"kyberswap",
20+
"paraswap",
21+
"odos",
22+
"1inch",
23+
"li-fi",
24+
// "open-ocean", // crazy quotes for wbnb, slisbnb
25+
"uniswap",
26+
"oku",
27+
"magpie",
28+
"enso",
29+
],
30+
},
31+
},
32+
match: {},
33+
},
34+
]
35+
36+
export default bscRoutingConfig

src/swapService/config/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import { avalanche, base, mainnet } from "viem/chains"
1+
import { avalanche, base, bsc, mainnet } from "viem/chains"
22
import type { RoutingConfig } from "../interface"
33
import avalancheRoutingConfig from "./avalanche"
44
import baseRoutingConfig from "./base"
55
import berachainRoutingConfig from "./berachain"
66
import bobRoutingConfig from "./bob"
7+
import bscRoutingConfig from "./bsc"
78
import defaultRoutingConfig from "./default"
89
import mainnetRoutingConfig from "./mainnet"
910
import sonicRoutingConfig from "./sonic"
@@ -13,6 +14,7 @@ const routingConfig: RoutingConfig = {
1314
[mainnet.id]: mainnetRoutingConfig,
1415
[base.id]: baseRoutingConfig,
1516
[avalanche.id]: avalancheRoutingConfig,
17+
[bsc.id]: bscRoutingConfig,
1618
[1923]: swellRoutingConfig,
1719
[80094]: berachainRoutingConfig,
1820
[60808]: bobRoutingConfig,

0 commit comments

Comments
 (0)