Skip to content

Commit

Permalink
Enable multiply and automation for mkr pairs on morpho (#3945)
Browse files Browse the repository at this point in the history
  • Loading branch information
piekczyk committed Jun 10, 2024
1 parent f562536 commit 75f107a
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions features/omni-kit/protocols/morpho-blue/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ import { AutomationFeatures } from 'features/automation/common/types'
import { omniSidebarManageBorrowishSteps, omniSidebarSetupSteps } from 'features/omni-kit/constants'
import type { NetworkIdsWithValues, OmniProtocolSettings } from 'features/omni-kit/types'
import { OmniProductType } from 'features/omni-kit/types'
import { getLocalAppConfig } from 'helpers/config'
import { FeaturesEnum } from 'types/config'

const automationFeatureFlags =
getLocalAppConfig('features')[FeaturesEnum.LambdaAutomations].MorphoBlue

export const morphoMarkets: NetworkIdsWithValues<{ [key: string]: string[] }> = {
[NetworkIds.MAINNET]: {
Expand Down Expand Up @@ -76,6 +71,7 @@ export const settings: OmniProtocolSettings = {
'WEETH',
'WSTETH',
'WOETH',
'MKR',
],
},
steps: {
Expand All @@ -94,11 +90,11 @@ export const settings: OmniProtocolSettings = {
},
availableAutomations: {
[NetworkIds.MAINNET]: [
...(automationFeatureFlags.autoBuy ? [AutomationFeatures.AUTO_BUY] : []),
...(automationFeatureFlags.autoSell ? [AutomationFeatures.AUTO_SELL] : []),
...(automationFeatureFlags.partialTakeProfit ? [AutomationFeatures.PARTIAL_TAKE_PROFIT] : []),
...(automationFeatureFlags.stopLoss ? [AutomationFeatures.STOP_LOSS] : []),
...(automationFeatureFlags.trailingStopLoss ? [AutomationFeatures.TRAILING_STOP_LOSS] : []),
AutomationFeatures.AUTO_BUY,
AutomationFeatures.AUTO_SELL,
AutomationFeatures.PARTIAL_TAKE_PROFIT,
AutomationFeatures.STOP_LOSS,
AutomationFeatures.TRAILING_STOP_LOSS,
],
},
markets: morphoMarkets,
Expand All @@ -117,4 +113,6 @@ export const morphoMarketsWithAutomation = [
morphoMarkets?.[NetworkIds.MAINNET]?.['ETH-USDT'][0],
morphoMarkets?.[NetworkIds.MAINNET]?.['EZETH-ETH'][0],
morphoMarkets?.[NetworkIds.MAINNET]?.['WOETH-ETH'][0],
morphoMarkets?.[NetworkIds.MAINNET]?.['MKR-DAI'][0],
morphoMarkets?.[NetworkIds.MAINNET]?.['MKR-USDC'][0],
]

0 comments on commit 75f107a

Please sign in to comment.