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

sp/sc-15947/spark-weeth-dai-and-eth-mainnet #3968

Merged
merged 1 commit into from
Jun 26, 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
37 changes: 37 additions & 0 deletions features/aave/strategies/ethereum-spark-v3-strategies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand Down
35 changes: 35 additions & 0 deletions handlers/product-hub/update-handlers/sparkV3/sparkV3Products.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down
Loading