Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SUSDE aave v3 strategies #3984

Merged
merged 1 commit into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 33 additions & 3 deletions features/aave/strategies/ethereum-aave-v3-strategies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,36 @@ const availableTokenPairs: TokenPairConfig[] = [
},
},
},
{
collateral: 'SUSDE',
debt: 'DAI',
strategyType: StrategyType.Long,
productTypes: {
[ProductType.Earn]: {
featureToggle: undefined,
},
},
},
{
collateral: 'SUSDE',
debt: 'USDC',
strategyType: StrategyType.Long,
productTypes: {
[ProductType.Earn]: {
featureToggle: undefined,
},
},
},
{
collateral: 'SUSDE',
debt: 'USDT',
strategyType: StrategyType.Long,
productTypes: {
[ProductType.Earn]: {
featureToggle: undefined,
},
},
},
{
collateral: 'WSTETH',
debt: 'USDT',
Expand Down Expand Up @@ -675,9 +705,9 @@ const multiplyStategies: IStrategyConfig[] = availableTokenPairs
}
})

const sdaiEarnStrategies: IStrategyConfig[] = availableTokenPairs
const earnStrategies: IStrategyConfig[] = availableTokenPairs
.filter(hasEarnProductType)
.filter((config) => config.collateral === 'SDAI')
.filter((config) => ['SDAI', 'SUSDE'].includes(config.collateral))
.map((config): IStrategyConfig => {
return {
network: NetworkNames.ethereumMainnet,
Expand Down Expand Up @@ -729,7 +759,7 @@ const sdaiEarnStrategies: IStrategyConfig[] = availableTokenPairs
export const ethereumAaveV3Strategies: IStrategyConfig[] = [
...borrowStrategies,
...multiplyStategies,
...sdaiEarnStrategies,
...earnStrategies,
{
network: NetworkNames.ethereumMainnet,
networkId: NetworkIds.MAINNET,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,45 @@ export const aaveV3EthereumMainnetProductHubProducts: ProductHubItemWithoutAddre
earnStrategyDescription: 'SDAI/DAI Yield Loop',
managementType: 'active',
},
{
product: [OmniProductType.Earn],
primaryToken: 'SUSDE',
primaryTokenGroup: getTokenGroup('SUSDE'),
secondaryToken: 'DAI',
depositToken: 'SUSDE',
network: NetworkNames.ethereumMainnet,
protocol: LendingProtocol.AaveV3,
label: 'SUSDE/DAI',
earnStrategy: EarnStrategies.yield_loop,
earnStrategyDescription: 'SUSDE/DAI Yield Loop',
managementType: 'active',
},
{
product: [OmniProductType.Earn],
primaryToken: 'SUSDE',
primaryTokenGroup: getTokenGroup('SUSDE'),
secondaryToken: 'USDC',
depositToken: 'SUSDE',
network: NetworkNames.ethereumMainnet,
protocol: LendingProtocol.AaveV3,
label: 'SUSDE/USDC',
earnStrategy: EarnStrategies.yield_loop,
earnStrategyDescription: 'SUSDE/USDC Yield Loop',
managementType: 'active',
},
{
product: [OmniProductType.Earn],
primaryToken: 'SUSDE',
primaryTokenGroup: getTokenGroup('SUSDE'),
secondaryToken: 'USDT',
depositToken: 'SUSDE',
network: NetworkNames.ethereumMainnet,
protocol: LendingProtocol.AaveV3,
label: 'SUSDE/USDT',
earnStrategy: EarnStrategies.yield_loop,
earnStrategyDescription: 'SUSDE/USDT Yield Loop',
managementType: 'active',
},
{
product: [OmniProductType.Multiply],
primaryToken: 'WSTETH',
Expand Down
Loading