Skip to content

Commit e28a0c1

Browse files
committed
update config
1 parent 327f334 commit e28a0c1

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

src/swapService/config/plasma.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
import { type ChainRoutingConfig, SwapperMode } from "../interface"
22
import {
33
StrategyBalmySDK,
4+
StrategyElixir,
45
StrategyMidas,
56
StrategyPendleLP,
7+
StrategyRedirectDepositWrapper,
68
StrategyRepayWrapper,
79
} from "../strategies"
810

11+
const ELIXIR_USDT_VAULT = "0x3799251bD81925cfcCF2992F10Af27A4e62Bf3F7"
12+
const SDEUSD_PLASMA = "0x7884A8457f0E63e82C89A87fE48E8Ba8223DB069"
13+
914
const plasmaRoutingConfig: ChainRoutingConfig = [
1015
// WRAPPERS
1116
{
@@ -15,6 +20,18 @@ const plasmaRoutingConfig: ChainRoutingConfig = [
1520
swapperModes: [SwapperMode.EXACT_IN],
1621
},
1722
},
23+
{
24+
strategy: StrategyRedirectDepositWrapper.name(),
25+
match: {
26+
repayVaults: [ELIXIR_USDT_VAULT],
27+
},
28+
},
29+
{
30+
strategy: StrategyElixir.name(),
31+
match: {
32+
tokensInOrOut: [SDEUSD_PLASMA],
33+
},
34+
},
1835
{
1936
strategy: StrategyMidas.name(),
2037
match: {}, // supports function will match mTokens

src/swapService/strategies/strategyElixir.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ const defaultConfig: {
4343
asset: "0xB57B25851fE2311CC3fE511c8F10E868932e0680",
4444
assetDustEVault: "0x1FF92f8C033a365de2d82d390a1799AbFCaD7394",
4545
},
46+
{
47+
chainId: 9745,
48+
protocol: "sdeUSD",
49+
vault: "0x7884A8457f0E63e82C89A87fE48E8Ba8223DB069",
50+
asset: "0x4ac60586C3e245fF5593cf99241395bf42509274",
51+
assetDustEVault: "0x645378bEc91c150BF671B3236f4EaE93017166Aa",
52+
},
4653
],
4754
}
4855

src/swapService/strategies/strategyRedirectDepositWrapper.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ const defaultConfig: {
4141
asset: "0xdAC17F958D2ee523a2206206994597C13D831ec7",
4242
assetDustEVault: "0x2343b4bCB96EC35D8653Fb154461fc673CB20a7e",
4343
},
44+
{
45+
chainId: 9745,
46+
vault: "0x3799251bD81925cfcCF2992F10Af27A4e62Bf3F7",
47+
asset: "0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb",
48+
assetDustEVault: "0x9F562699511351bA3d0cf3d0DF1502e776517ef3",
49+
},
4450
],
4551
}
4652

0 commit comments

Comments
 (0)