From 1fcf4b368fb6c12737bf75d5c7e189dee725515a Mon Sep 17 00:00:00 2001 From: sebastianPiekarczyk Date: Wed, 26 Jun 2024 11:48:23 +0200 Subject: [PATCH] Spark weeth dai and eth on mainnet --- .../ethereum-spark-v3-strategies.ts | 37 +++++++++++++++++++ .../sparkV3/sparkV3Products.ts | 35 ++++++++++++++++++ 2 files changed, 72 insertions(+) diff --git a/features/aave/strategies/ethereum-spark-v3-strategies.ts b/features/aave/strategies/ethereum-spark-v3-strategies.ts index b79090fb2f..ada4ab8640 100644 --- a/features/aave/strategies/ethereum-spark-v3-strategies.ts +++ b/features/aave/strategies/ethereum-spark-v3-strategies.ts @@ -150,6 +150,18 @@ const availableTokenPairs: TokenPairConfig[] = [ }, }, }, + { + collateral: 'WEETH', + debt: 'ETH', + strategyType: StrategyType.Long, + productTypes: { + [ProductType.Earn]: { + featureToggle: undefined, + additionalManageActions: [], + defaultSlippage: SLIPPAGE_YIELD_LOOP, + }, + }, + }, { collateral: 'ETH', debt: 'USDC', @@ -175,6 +187,31 @@ const availableTokenPairs: TokenPairConfig[] = [ }, }, }, + { + collateral: 'WEETH', + debt: 'DAI', + strategyType: StrategyType.Long, + productTypes: { + [ProductType.Multiply]: { + featureToggle: undefined, + additionalManageActions: [ + { + action: 'switch-to-borrow', + featureToggle: undefined, + }, + ], + }, + [ProductType.Borrow]: { + featureToggle: undefined, + additionalManageActions: [ + { + action: 'switch-to-multiply', + featureToggle: undefined, + }, + ], + }, + }, + }, { collateral: 'SDAI', debt: 'USDC', diff --git a/handlers/product-hub/update-handlers/sparkV3/sparkV3Products.ts b/handlers/product-hub/update-handlers/sparkV3/sparkV3Products.ts index bd790f00b1..4ac1e7ce7f 100644 --- a/handlers/product-hub/update-handlers/sparkV3/sparkV3Products.ts +++ b/handlers/product-hub/update-handlers/sparkV3/sparkV3Products.ts @@ -41,6 +41,18 @@ export const sparkV3ProductHubProducts: ProductHubItemWithoutAddress[] = [ multiplyStrategyType: 'long', multiplyStrategy: 'Long ETH', }, + { + product: [OmniProductType.Multiply], + primaryToken: 'WEETH', + primaryTokenGroup: 'ETH', + secondaryToken: 'DAI', + depositToken: 'DAI', + network: NetworkNames.ethereumMainnet, + protocol: LendingProtocol.SparkV3, + label: 'WEETH/DAI', + multiplyStrategyType: 'long', + multiplyStrategy: 'Long WEETH', + }, { product: [OmniProductType.Multiply], primaryToken: 'SDAI', @@ -83,6 +95,16 @@ export const sparkV3ProductHubProducts: ProductHubItemWithoutAddress[] = [ protocol: LendingProtocol.SparkV3, label: 'ETH/DAI', }, + { + product: [OmniProductType.Borrow], + primaryToken: 'WEETH', + primaryTokenGroup: 'ETH', + secondaryToken: 'DAI', + depositToken: 'DAI', + network: NetworkNames.ethereumMainnet, + protocol: LendingProtocol.SparkV3, + label: 'WEETH/DAI', + }, { product: [OmniProductType.Borrow], primaryToken: 'SDAI', @@ -119,6 +141,19 @@ export const sparkV3ProductHubProducts: ProductHubItemWithoutAddress[] = [ earnStrategyDescription: 'RETH/ETH Yield Loop', managementType: 'active', }, + { + product: [OmniProductType.Earn], + primaryToken: 'WEETH', + primaryTokenGroup: 'ETH', + secondaryToken: 'ETH', + depositToken: 'ETH', + network: NetworkNames.ethereumMainnet, + protocol: LendingProtocol.SparkV3, + label: 'WEETH/ETH', + earnStrategy: EarnStrategies.yield_loop, + earnStrategyDescription: 'WEETH/ETH Yield Loop', + managementType: 'active', + }, { product: [OmniProductType.Earn], primaryToken: 'SDAI',