Skip to content

Commit

Permalink
Add susde aave v3 strategies (#3984)
Browse files Browse the repository at this point in the history
  • Loading branch information
piekczyk authored Jul 9, 2024
1 parent 2197418 commit 1189726
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 3 deletions.
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

0 comments on commit 1189726

Please sign in to comment.