File tree Expand file tree Collapse file tree 3 files changed +60
-1
lines changed Expand file tree Collapse file tree 3 files changed +60
-1
lines changed Original file line number Diff line number Diff line change
1
+ import { type ChainRoutingConfig , SwapperMode } from "../interface"
2
+ import {
3
+ StrategyBalmySDK ,
4
+ StrategyERC4626Wrapper ,
5
+ StrategyRepayWrapper ,
6
+ } from "../strategies"
7
+
8
+ const SAVUSD_AVALANCHE = "0x06d47F3fb376649c3A9Dafe069B3D6E35572219E"
9
+
10
+ const avalancheRoutingConfig : ChainRoutingConfig = [
11
+ // WRAPPERS
12
+ {
13
+ strategy : StrategyRepayWrapper . name ( ) ,
14
+ match : {
15
+ isRepay : true ,
16
+ swapperModes : [ SwapperMode . EXACT_IN ] ,
17
+ } ,
18
+ } ,
19
+ // SPECIAL CASE
20
+ {
21
+ strategy : StrategyERC4626Wrapper . name ( ) ,
22
+ match : {
23
+ tokensInOrOut : [ SAVUSD_AVALANCHE ] ,
24
+ } ,
25
+ } ,
26
+
27
+ // DEFAULTS
28
+ {
29
+ strategy : StrategyBalmySDK . name ( ) ,
30
+ config : {
31
+ sourcesFilter : {
32
+ includeSources : [
33
+ "kyberswap" ,
34
+ "paraswap" ,
35
+ "odos" ,
36
+ "1inch" ,
37
+ "li-fi" ,
38
+ "open-ocean" ,
39
+ "uniswap" ,
40
+ "oku" ,
41
+ "magpie" ,
42
+ "enso" ,
43
+ ] ,
44
+ } ,
45
+ } ,
46
+ match : { } ,
47
+ } ,
48
+ ]
49
+
50
+ export default avalancheRoutingConfig
Original file line number Diff line number Diff line change 1
- import { base , mainnet } from "viem/chains"
1
+ import { avalanche , base , mainnet } from "viem/chains"
2
2
import type { RoutingConfig } from "../interface"
3
+ import avalancheRoutingConfig from "./avalanche"
3
4
import baseRoutingConfig from "./base"
4
5
import berachainRoutingConfig from "./berachain"
5
6
import bobRoutingConfig from "./bob"
@@ -11,6 +12,7 @@ import swellRoutingConfig from "./swell"
11
12
const routingConfig : RoutingConfig = {
12
13
[ mainnet . id ] : mainnetRoutingConfig ,
13
14
[ base . id ] : baseRoutingConfig ,
15
+ [ avalanche . id ] : avalancheRoutingConfig ,
14
16
[ 1923 ] : swellRoutingConfig ,
15
17
[ 80094 ] : berachainRoutingConfig ,
16
18
[ 60808 ] : bobRoutingConfig ,
Original file line number Diff line number Diff line change @@ -91,6 +91,13 @@ const defaultConfig: {
91
91
asset : "0xdc035d45d973e3ec169d2276ddab16f1e407384f" ,
92
92
assetDustEVault : "0x98238Ee86f2c571AD06B0913bef21793dA745F57" ,
93
93
} ,
94
+ {
95
+ chainId : 43114 ,
96
+ protocol : "savUSD" ,
97
+ vault : "0x06d47F3fb376649c3A9Dafe069B3D6E35572219E" ,
98
+ asset : "0x24dE8771bC5DdB3362Db529Fc3358F2df3A0E346" ,
99
+ assetDustEVault : "0xa9C92715dfED67a1Eb841c02059D9D0f1d508648" ,
100
+ } ,
94
101
] ,
95
102
}
96
103
You can’t perform that action at this time.
0 commit comments