File tree Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 1
- import { avalanche , base , mainnet } from "viem/chains"
1
+ import { avalanche , base , bsc , mainnet } from "viem/chains"
2
2
import type { RoutingConfig } from "../interface"
3
3
import avalancheRoutingConfig from "./avalanche"
4
4
import baseRoutingConfig from "./base"
5
5
import berachainRoutingConfig from "./berachain"
6
6
import bobRoutingConfig from "./bob"
7
+ import bscRoutingConfig from "./bsc"
7
8
import defaultRoutingConfig from "./default"
8
9
import mainnetRoutingConfig from "./mainnet"
9
10
import sonicRoutingConfig from "./sonic"
@@ -13,6 +14,7 @@ const routingConfig: RoutingConfig = {
13
14
[ mainnet . id ] : mainnetRoutingConfig ,
14
15
[ base . id ] : baseRoutingConfig ,
15
16
[ avalanche . id ] : avalancheRoutingConfig ,
17
+ [ bsc . id ] : bscRoutingConfig ,
16
18
[ 1923 ] : swellRoutingConfig ,
17
19
[ 80094 ] : berachainRoutingConfig ,
18
20
[ 60808 ] : bobRoutingConfig ,
You can’t perform that action at this time.
0 commit comments