diff --git a/packages/automation/src/mapping.ts b/packages/automation/src/mapping.ts index 2e8d910..c57760a 100644 --- a/packages/automation/src/mapping.ts +++ b/packages/automation/src/mapping.ts @@ -133,6 +133,32 @@ export const commandTypeJsonMapping: Record = { 'operationName', 'executionLtv', ], + [CommandContractType.DmaSparkBasicBuyCommandV2]: [ + 'positionAddress', + 'triggerType', + 'maxCoverage', + 'debtToken', + 'collateralToken', + 'operationName', + 'executionLtv', + 'targetLtv', + 'maxBuyPrice', + 'deviation', + 'maxBaseFeeInGwei', + ], + [CommandContractType.DmaSparkBasicSellCommandV2]: [ + 'positionAddress', + 'triggerType', + 'maxCoverage', + 'debtToken', + 'collateralToken', + 'operationName', + 'executionLtv', + 'targetLtv', + 'minSellPrice', + 'deviation', + 'maxBaseFeeInGwei', + ], [CommandContractType.DmaSparkStopLossCommandV2]: [ 'positionAddress', 'triggerType',