From d2c6eb96e78025504e741addf58ca9390dce6e9d Mon Sep 17 00:00:00 2001 From: sebastianPiekarczyk Date: Tue, 9 Jul 2024 11:12:42 +0200 Subject: [PATCH] Add susde aave v3 strategies --- .../strategies/ethereum-aave-v3-strategies.ts | 36 +++++++++++++++-- .../aave-v3-products/ethereum-mainnet.ts | 39 +++++++++++++++++++ 2 files changed, 72 insertions(+), 3 deletions(-) diff --git a/features/aave/strategies/ethereum-aave-v3-strategies.ts b/features/aave/strategies/ethereum-aave-v3-strategies.ts index bbd1cae219..8e09beaf8e 100644 --- a/features/aave/strategies/ethereum-aave-v3-strategies.ts +++ b/features/aave/strategies/ethereum-aave-v3-strategies.ts @@ -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', @@ -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, @@ -729,7 +759,7 @@ const sdaiEarnStrategies: IStrategyConfig[] = availableTokenPairs export const ethereumAaveV3Strategies: IStrategyConfig[] = [ ...borrowStrategies, ...multiplyStategies, - ...sdaiEarnStrategies, + ...earnStrategies, { network: NetworkNames.ethereumMainnet, networkId: NetworkIds.MAINNET, diff --git a/handlers/product-hub/update-handlers/aaveV3/aave-v3-products/ethereum-mainnet.ts b/handlers/product-hub/update-handlers/aaveV3/aave-v3-products/ethereum-mainnet.ts index 8480ac20b4..f66037f163 100644 --- a/handlers/product-hub/update-handlers/aaveV3/aave-v3-products/ethereum-mainnet.ts +++ b/handlers/product-hub/update-handlers/aaveV3/aave-v3-products/ethereum-mainnet.ts @@ -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',