Skip to content

Commit 3ed3442

Browse files
committed
finish idle strategy
1 parent cd34bb6 commit 3ed3442

File tree

6 files changed

+123
-1819
lines changed

6 files changed

+123
-1819
lines changed

src/swapService/config/mainnet.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {
33
StrategyBalmySDK,
44
StrategyCombinedUniswap,
55
StrategyERC4626Wrapper,
6+
StrategyIdleCDOTranche,
67
StrategyMidas,
78
StrategyRepayWrapper,
89
} from "../strategies"
@@ -32,22 +33,17 @@ const mainnetRoutingConfig: ChainRoutingConfig = [
3233
strategy: StrategyMidas.name(),
3334
match: {}, // supports function will match mTokens
3435
},
36+
{
37+
strategy: StrategyIdleCDOTranche.name(),
38+
match: { tokensInOrOut: [IDLEAATRANCHEFASANARA_MAINNET] },
39+
},
3540
{
3641
strategy: StrategyERC4626Wrapper.name(),
3742
match: {
3843
tokensInOrOut: [WSTUSR_MAINNET, PT_WSTUSR1740182579, YNETHX_MAINNET],
3944
excludeTokensInOrOut: [PT_WSTUSR_27MAR2025_MAINNET],
4045
},
4146
},
42-
{
43-
strategy: StrategyBalmySDK.name(),
44-
config: {
45-
sourcesFilter: {
46-
includeSources: ["idle-tranche"],
47-
},
48-
},
49-
match: { tokensInOrOut: [IDLEAATRANCHEFASANARA_MAINNET] },
50-
},
5147
{
5248
strategy: StrategyBalmySDK.name(),
5349
config: {

src/swapService/strategies/balmySDK/customSourceList.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { IFetchService, IProviderService } from "@balmy/sdk"
22
import { LocalSourceList } from "@balmy/sdk/dist/services/quotes/source-lists/local-source-list"
3-
import { CustomIdleAATrancheQuoteSource } from "./idleAATrancheQuoteSource"
43
import { CustomLiFiQuoteSource } from "./lifiQuoteSource"
54
import { CustomNeptuneQuoteSource } from "./neptuneQuoteSource"
65
import { CustomOdosQuoteSource } from "./odosQuoteSource"
@@ -20,7 +19,6 @@ const customSources = {
2019
"open-ocean": new CustomOpenOceanQuoteSource(),
2120
neptune: new CustomNeptuneQuoteSource(),
2221
odos: new CustomOdosQuoteSource(),
23-
"idle-tranche": new CustomIdleAATrancheQuoteSource(),
2422
}
2523
export class CustomSourceList extends LocalSourceList {
2624
constructor({ providerService, fetchService }: ConstructorParameters) {

src/swapService/strategies/balmySDK/idleAATrancheQuoteSource.ts

Lines changed: 0 additions & 201 deletions
This file was deleted.

src/swapService/strategies/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { StrategyBalmySDK } from "./strategyBalmySDK"
22
import { StrategyCombinedUniswap } from "./strategyCombinedUniswap"
33
import { StrategyERC4626Wrapper } from "./strategyERC4626Wrapper"
4+
import { StrategyIdleCDOTranche } from "./strategyIdleCDOTranche"
45
import { StrategyMidas } from "./strategyMidas"
56
import { StrategyRepayWrapper } from "./strategyRepayWrapper"
67

@@ -10,6 +11,7 @@ export {
1011
StrategyRepayWrapper,
1112
StrategyBalmySDK,
1213
StrategyERC4626Wrapper,
14+
StrategyIdleCDOTranche,
1315
}
1416

1517
export const strategies = {
@@ -18,4 +20,5 @@ export const strategies = {
1820
[StrategyRepayWrapper.name()]: StrategyRepayWrapper,
1921
[StrategyBalmySDK.name()]: StrategyBalmySDK,
2022
[StrategyERC4626Wrapper.name()]: StrategyERC4626Wrapper,
23+
[StrategyIdleCDOTranche.name()]: StrategyIdleCDOTranche,
2124
}

0 commit comments

Comments
 (0)