File tree Expand file tree Collapse file tree 6 files changed +415
-241
lines changed Expand file tree Collapse file tree 6 files changed +415
-241
lines changed Original file line number Diff line number Diff line change
1
+ import dotenv from "dotenv"
2
+ dotenv . config ( )
3
+
1
4
import {
2
5
http ,
3
6
type Chain ,
Original file line number Diff line number Diff line change @@ -9,9 +9,6 @@ import { swapRouter } from "@/api/routes/swap/swapRouter"
9
9
import errorHandler from "@/common/middleware/errorHandler"
10
10
import rateLimiter from "@/common/middleware/rateLimiter"
11
11
import requestLogger from "@/common/middleware/requestLogger"
12
- import dotenv from "dotenv"
13
-
14
- dotenv . config ( )
15
12
16
13
const logger = pino ( { name : "server start" } )
17
14
const app : Express = express ( )
Original file line number Diff line number Diff line change @@ -3,10 +3,9 @@ import {
3
3
StrategyBalmySDK ,
4
4
StrategyCombinedUniswap ,
5
5
StrategyERC4626Wrapper ,
6
- StrategyMTBILL ,
6
+ StrategyMidas ,
7
7
StrategyRepayWrapper ,
8
8
} from "../strategies"
9
- import { MTBILL_MAINNET } from "../strategies/strategyMTBILL"
10
9
11
10
const SUSDS_MAINNET = "0xa3931d71877c0e7a3148cb7eb4463524fec27fbd"
12
11
const EBTC_MAINNET = "0x657e8c867d8b37dcc18fa4caead9c45eb088c642"
@@ -35,10 +34,8 @@ const mainnetRoutingConfig: ChainRoutingConfig = [
35
34
match : { isPendlePT : true } ,
36
35
} ,
37
36
{
38
- strategy : StrategyMTBILL . name ( ) ,
39
- match : {
40
- tokensInOrOut : [ MTBILL_MAINNET ] ,
41
- } ,
37
+ strategy : StrategyMidas . name ( ) ,
38
+ match : { } , // supports function will match mTokens
42
39
} ,
43
40
{
44
41
strategy : StrategyERC4626Wrapper . name ( ) ,
Original file line number Diff line number Diff line change @@ -3,14 +3,14 @@ import { StrategyBalmySDK } from "./strategyBalmySDK"
3
3
import { StrategyCombinedUniswap } from "./strategyCombinedUniswap"
4
4
import { StrategyERC4626Wrapper } from "./strategyERC4626Wrapper"
5
5
import { StrategyLifi } from "./strategyLifi"
6
- import { StrategyMTBILL } from "./strategyMTBILL "
6
+ import { StrategyMidas } from "./strategyMidas "
7
7
import { StrategyPendle } from "./strategyPendle"
8
8
import { StrategyRepayWrapper } from "./strategyRepayWrapper"
9
9
10
10
export {
11
11
Strategy1Inch ,
12
12
StrategyCombinedUniswap ,
13
- StrategyMTBILL ,
13
+ StrategyMidas ,
14
14
StrategyPendle ,
15
15
StrategyLifi ,
16
16
StrategyRepayWrapper ,
@@ -21,7 +21,7 @@ export {
21
21
export const strategies = {
22
22
[ Strategy1Inch . name ( ) ] : Strategy1Inch ,
23
23
[ StrategyPendle . name ( ) ] : StrategyPendle ,
24
- [ StrategyMTBILL . name ( ) ] : StrategyMTBILL ,
24
+ [ StrategyMidas . name ( ) ] : StrategyMidas ,
25
25
[ StrategyCombinedUniswap . name ( ) ] : StrategyCombinedUniswap ,
26
26
[ StrategyRepayWrapper . name ( ) ] : StrategyRepayWrapper ,
27
27
[ StrategyBalmySDK . name ( ) ] : StrategyBalmySDK ,
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ const defaultConfig: {
41
41
asset : "0x66a1E37c9b0eAddca17d3662D6c05F4DECf3e110" ,
42
42
assetDustEVault : "0x3a8992754e2ef51d8f90620d2766278af5c59b90" ,
43
43
} ,
44
- // // {
44
+ // {
45
45
// chainId: 1,
46
46
// protocol: "sUSDS",
47
47
// vault: "0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD",
You can’t perform that action at this time.
0 commit comments