Skip to content

Commit 4bcaf83

Browse files
committed
add elixir strategy
1 parent 4cc8e35 commit 4bcaf83

File tree

4 files changed

+1169
-1
lines changed

4 files changed

+1169
-1
lines changed

src/swapService/config/avalanche.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ import { type ChainRoutingConfig, SwapperMode } from "../interface"
22
import {
33
StrategyBalmySDK,
44
StrategyERC4626Wrapper,
5+
StrategyElixir,
56
StrategyRepayWrapper,
67
} from "../strategies"
78

89
const SAVUSD_AVALANCHE = "0x06d47F3fb376649c3A9Dafe069B3D6E35572219E"
9-
// const SDEUSD_AVALANCHE = "0x68088C91446c7bEa49ea7Dbd3B96Ce62B272DC96"
10+
const SDEUSD_AVALANCHE = "0x68088C91446c7bEa49ea7Dbd3B96Ce62B272DC96"
1011

1112
const avalancheRoutingConfig: ChainRoutingConfig = [
1213
// WRAPPERS
@@ -24,6 +25,12 @@ const avalancheRoutingConfig: ChainRoutingConfig = [
2425
tokensInOrOut: [SAVUSD_AVALANCHE],
2526
},
2627
},
28+
{
29+
strategy: StrategyElixir.name(),
30+
match: {
31+
tokensInOrOut: [SDEUSD_AVALANCHE],
32+
},
33+
},
2734

2835
// DEFAULTS
2936
{

src/swapService/strategies/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { StrategyCombinedUniswap } from "./strategyCombinedUniswap"
33
import { StrategyConnect2 } from "./strategyConnect2"
44
import { StrategyCurveLPNG } from "./strategyCurveLPNG"
55
import { StrategyERC4626Wrapper } from "./strategyERC4626Wrapper"
6+
import { StrategyElixir } from "./strategyElixir"
67
import { StrategyIdleCDOTranche } from "./strategyIdleCDOTranche"
78
import { StrategyMidas } from "./strategyMidas"
89
import { StrategyRedirectDepositWrapper } from "./strategyRedirectDepositWrapper"
@@ -18,6 +19,7 @@ export {
1819
StrategyCurveLPNG,
1920
StrategyRedirectDepositWrapper,
2021
StrategyConnect2,
22+
StrategyElixir,
2123
}
2224

2325
export const strategies = {
@@ -30,4 +32,5 @@ export const strategies = {
3032
[StrategyCurveLPNG.name()]: StrategyCurveLPNG,
3133
[StrategyRedirectDepositWrapper.name()]: StrategyRedirectDepositWrapper,
3234
[StrategyConnect2.name()]: StrategyConnect2,
35+
[StrategyElixir.name()]: StrategyElixir,
3336
}

0 commit comments

Comments
 (0)