Skip to content

Commit

Permalink
refactor: Add new fields to command type JSON mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
zerotucks committed Feb 22, 2024
1 parent cd7d07f commit 511a000
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions packages/automation/src/mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,32 @@ export const commandTypeJsonMapping: Record<CommandContractType, string[]> = {
'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',
Expand Down

0 comments on commit 511a000

Please sign in to comment.