From 45553e054fc0bd60e69c9721b01b7097068b82aa Mon Sep 17 00:00:00 2001 From: James Tuckett Date: Fri, 26 Apr 2024 13:04:27 +0100 Subject: [PATCH] feat: add entries or placeholders for Morpho --- packages/automation/src/mapping.ts | 87 ++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/packages/automation/src/mapping.ts b/packages/automation/src/mapping.ts index 3538949..a7f2ea3 100644 --- a/packages/automation/src/mapping.ts +++ b/packages/automation/src/mapping.ts @@ -222,6 +222,36 @@ export const commandTypeJsonMapping: Record = { 'deviation', 'withdrawToDebt', ], + + // Morpho + [CommandContractType.DmaMorphoBlueBasicBuyCommandV2]: [ + 'positionAddress', + 'triggerType', + 'maxCoverage', + 'debtToken', + 'collateralToken', + 'operationName', + 'id', + 'quoteDecimals', + 'collateralDecimals', + 'executionLtv', + 'targetLtv', + 'maxBuyPrice', + 'deviation', + 'maxBaseFeeInGwei', + ], + [CommandContractType.DmaMorphoBlueBasicSellCommandV2]: [ + // TODO + ], + [CommandContractType.DmaMorphoBlueStopLossCommandV2]: [ + // TODO + ], + [CommandContractType.DmaMorphoBluePartialTakeProfitCommandV2]: [ + // TODO + ], + [CommandContractType.DmaMorphoBlueTrailingStopLossCommandV2]: [ + // TODO + ], }; export const commandOffchainDataTypeJsonMapping: Partial> = { [CommandContractType.DmaAaveTrailingStopLossCommandV2]: [ @@ -234,6 +264,11 @@ export const commandOffchainDataTypeJsonMapping: Partial {