Skip to content

Commit 7543423

Browse files
committed
feat: update base config
1 parent c3fc8aa commit 7543423

File tree

2 files changed

+9
-40
lines changed

2 files changed

+9
-40
lines changed

src/swapService/config/base.ts

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { type ChainRoutingConfig, SwapperMode } from "../interface"
22
import { StrategyBalmySDK, StrategyRepayWrapper } from "../strategies"
33

4-
const LBTC_BASE = "0xecAc9C5F704e954931349Da37F60E39f515c11c1"
5-
64
const baseRoutingConfig: ChainRoutingConfig = [
75
// WRAPPERS
86
{
@@ -12,36 +10,7 @@ const baseRoutingConfig: ChainRoutingConfig = [
1210
swapperModes: [SwapperMode.EXACT_IN],
1311
},
1412
},
15-
// SPECIAL CASE TOKENS
16-
{
17-
strategy: StrategyBalmySDK.name(),
18-
config: {
19-
sourcesFilter: {
20-
includeSources: [
21-
"kyberswap",
22-
"paraswap",
23-
"odos",
24-
"1inch",
25-
"li-fi",
26-
"open-ocean",
27-
],
28-
},
29-
},
30-
match: {
31-
tokensInOrOut: [LBTC_BASE],
32-
},
33-
},
3413
// DEFAULTS
35-
{
36-
strategy: StrategyBalmySDK.name(),
37-
config: {
38-
sourcesFilter: {
39-
includeSources: ["1inch"],
40-
},
41-
},
42-
match: {},
43-
},
44-
// FALLBACKS
4514
{
4615
strategy: StrategyBalmySDK.name(),
4716
config: {

src/swapService/config/mainnet.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,6 @@ const mainnetRoutingConfig: ChainRoutingConfig = [
2424
},
2525
},
2626
// SPECIAL CASE TOKENS
27-
{
28-
strategy: StrategyBalmySDK.name(),
29-
config: {
30-
sourcesFilter: {
31-
includeSources: ["pendle", "li-fi", "open-ocean"],
32-
},
33-
},
34-
match: { isPendlePT: true },
35-
},
3627
{
3728
strategy: StrategyMidas.name(),
3829
match: {}, // supports function will match mTokens
@@ -43,6 +34,15 @@ const mainnetRoutingConfig: ChainRoutingConfig = [
4334
tokensInOrOut: [WSTUSR_MAINNET, WUSDL_MAINNET, PT_WSTUSR1740182579],
4435
},
4536
},
37+
{
38+
strategy: StrategyBalmySDK.name(),
39+
config: {
40+
sourcesFilter: {
41+
includeSources: ["pendle", "li-fi", "open-ocean"],
42+
},
43+
},
44+
match: { isPendlePT: true },
45+
},
4646
{
4747
strategy: StrategyBalmySDK.name(),
4848
config: {

0 commit comments

Comments
 (0)