Skip to content

Commit 66b7550

Browse files
committed
add xUSDC support
1 parent 82011e7 commit 66b7550

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

src/swapService/config/avalanche.ts

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

89
// const SAVUSD_AVALANCHE = "a0x06d47F3fb376649c3A9Dafe069B3D6E35572219E"
910
const SDEUSD_AVALANCHE = "0x68088C91446c7bEa49ea7Dbd3B96Ce62B272DC96"
11+
const XUSDC_AVALANCHE = "0xA39986F96B80d04e8d7AeAaF47175F47C23FD0f4"
1012

1113
const avalancheRoutingConfig: ChainRoutingConfig = [
1214
// WRAPPERS
@@ -23,7 +25,12 @@ const avalancheRoutingConfig: ChainRoutingConfig = [
2325
tokensInOrOut: [SDEUSD_AVALANCHE],
2426
},
2527
},
26-
28+
{
29+
strategy: StrategyERC4626Wrapper.name(),
30+
match: {
31+
tokensInOrOut: [XUSDC_AVALANCHE],
32+
},
33+
},
2734
// DEFAULTS
2835
{
2936
strategy: StrategyBalmySDK.name(),

src/swapService/strategies/strategyERC4626Wrapper.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,13 @@ const defaultConfig: {
133133
asset: "0xB57B25851fE2311CC3fE511c8F10E868932e0680",
134134
assetDustEVault: "0x1FF92f8C033a365de2d82d390a1799AbFCaD7394",
135135
},
136+
{
137+
chainId: 43114,
138+
protocol: "xUSDC",
139+
vault: "0xA39986F96B80d04e8d7AeAaF47175F47C23FD0f4",
140+
asset: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
141+
assetDustEVault: "0xf524d75b7Fedf6301996A21337FFA45D330e60EF",
142+
},
136143
],
137144
}
138145

tokenLists/tokenList_43114.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,15 @@
144144
"logoURI": "/tokens/43114/solvBTCBBN.webp",
145145
"meta": {}
146146
},
147+
{
148+
"addressInfo": "0xA39986F96B80d04e8d7AeAaF47175F47C23FD0f4",
149+
"chainId": 43114,
150+
"name": "xUSDC",
151+
"symbol": "xUSDC",
152+
"decimals": 6,
153+
"logoURI": "/tokens/43114/empty-token.svg",
154+
"meta": {}
155+
},
147156
{
148157
"addressInfo": "0x9ceeD3A7f753608372eeAb300486cc7c2F38AC68",
149158
"chainId": 43114,

0 commit comments

Comments
 (0)