Skip to content

Commit 10409ad

Browse files
committed
update config
1 parent a2a754d commit 10409ad

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

src/swapService/config/base.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
import { type ChainRoutingConfig, SwapperMode } from "../interface"
22
import {
33
StrategyBalmySDK,
4+
StrategyERC4626Wrapper,
45
StrategyMidas,
56
StrategyRepayWrapper,
67
} from "../strategies"
8+
const YOUSD_BASE = "0x0000000f2eB9f69274678c76222B35eEc7588a65"
9+
const YOETH_BASE = "0x3A43AEC53490CB9Fa922847385D82fe25d0E9De7"
10+
const YOBTC_BASE = "0xbCbc8cb4D1e8ED048a6276a5E94A3e952660BcbC"
711

812
const baseRoutingConfig: ChainRoutingConfig = [
913
// WRAPPERS
@@ -19,6 +23,12 @@ const baseRoutingConfig: ChainRoutingConfig = [
1923
strategy: StrategyMidas.name(),
2024
match: {}, // supports function will match mTokens
2125
},
26+
{
27+
strategy: StrategyERC4626Wrapper.name(),
28+
match: {
29+
tokensInOrOut: [YOUSD_BASE, YOETH_BASE, YOBTC_BASE],
30+
},
31+
},
2232
// DEFAULTS
2333
{
2434
strategy: StrategyBalmySDK.name(),

src/swapService/strategies/strategyERC4626Wrapper.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,27 @@ const defaultConfig: {
161161
asset: "0x078D782b760474a361dDA0AF3839290b0EF57AD6",
162162
assetDustEVault: "0x2888F098157162EC4a4274F7ad2c69921e95834D",
163163
},
164+
{
165+
chainId: 8453,
166+
protocol: "yoUSD",
167+
vault: "0x0000000f2eB9f69274678c76222B35eEc7588a65",
168+
asset: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
169+
assetDustEVault: "0xD695BD489B1d8ad2214239753b710FE50275623f",
170+
},
171+
{
172+
chainId: 8453,
173+
protocol: "yoETH",
174+
vault: "0x3A43AEC53490CB9Fa922847385D82fe25d0E9De7",
175+
asset: "0x4200000000000000000000000000000000000006",
176+
assetDustEVault: "0xa00Ce534859ad1918508D0efa81D8b140cC69eBD",
177+
},
178+
{
179+
chainId: 8453,
180+
protocol: "yoBTC",
181+
vault: "0xbCbc8cb4D1e8ED048a6276a5E94A3e952660BcbC",
182+
asset: "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",
183+
assetDustEVault: "0x9D3010d32F2b0541dEE280Fb7cD98326e042CA20",
184+
},
164185
],
165186
}
166187

0 commit comments

Comments
 (0)