Skip to content

Commit 325c10f

Browse files
committed
add magpie
1 parent aab662c commit 325c10f

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

src/swapService/config/base.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ const baseRoutingConfig: ChainRoutingConfig = [
5656
"open-ocean",
5757
// "conveyor",
5858
"uniswap",
59+
"magpie",
5960
],
6061
},
6162
},

src/swapService/config/mainnet.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ const mainnetRoutingConfig: ChainRoutingConfig = [
8181
"li-fi",
8282
"open-ocean",
8383
"uniswap",
84+
"magpie",
8485
],
8586
},
8687
},
@@ -113,6 +114,7 @@ const mainnetRoutingConfig: ChainRoutingConfig = [
113114
"li-fi",
114115
"open-ocean",
115116
"uniswap",
117+
"magpie",
116118
],
117119
},
118120
},
@@ -148,6 +150,7 @@ const mainnetRoutingConfig: ChainRoutingConfig = [
148150
"li-fi",
149151
"open-ocean",
150152
"uniswap",
153+
"magpie",
151154
],
152155
},
153156
},

src/swapService/config/sonic.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@ const sonicConfig: ChainRoutingConfig = [
1616
swapperModes: [SwapperMode.EXACT_IN],
1717
},
1818
},
19-
{
20-
strategy: StrategyERC4626Wrapper.name(),
21-
match: {
22-
tokensInOrOut: [WSTKSCUSD_SONIC, WSTKSCETH_SONIC],
23-
},
24-
},
2519
// DEFAULTS
2620
{
2721
strategy: StrategyBalmySDK.name(),
@@ -36,11 +30,19 @@ const sonicConfig: ChainRoutingConfig = [
3630
"open-ocean",
3731
"uniswap",
3832
"0x",
33+
"magpie",
3934
],
4035
},
4136
},
4237
match: {},
4338
},
39+
// FALLBACK
40+
{
41+
strategy: StrategyERC4626Wrapper.name(),
42+
match: {
43+
tokensInOrOut: [WSTKSCUSD_SONIC, WSTKSCETH_SONIC],
44+
},
45+
},
4446
]
4547

4648
export default sonicConfig

0 commit comments

Comments
 (0)