diff --git a/packages/automation/package.json b/packages/automation/package.json index 17a87ae..60d7f3f 100644 --- a/packages/automation/package.json +++ b/packages/automation/package.json @@ -1,6 +1,6 @@ { "name": "@oasisdex/automation", - "version": "1.5.0-alpha.3", + "version": "1.5.0-alpha.4", "description": "The set of utilities for Oasis automation", "homepage": "https://github.com/OasisDEX/common#readme", "main": "lib/src/index.js", diff --git a/packages/automation/src/mapping.ts b/packages/automation/src/mapping.ts index e37d87b..cfdcfcf 100644 --- a/packages/automation/src/mapping.ts +++ b/packages/automation/src/mapping.ts @@ -55,7 +55,7 @@ export const commandTypeJsonMapping: Record = { 'debtToken', 'ltv', ], - [CommandContractType.MakerCloseCommandV2]: ['cdpId', 'triggerType', 'maxCoverage', 'collRatio'], + [CommandContractType.MakerStopLossCommandV2]: ['cdpId', 'triggerType', 'maxCoverage', 'collRatio'], [CommandContractType.MakerBasicBuyCommandV2]: [ 'cdpId', 'triggerType', @@ -189,7 +189,7 @@ export const defaultCommandTypeMapping = { 'address', 'uint256', ], - [CommandContractType.MakerCloseCommandV2]: ['uint256', 'uint16', 'uint256', 'uint256'], + [CommandContractType.MakerStopLossCommandV2]: ['uint256', 'uint16', 'uint256', 'uint256'], [CommandContractType.MakerAutoTakeProfitCommandV2]: ['uint256', 'uint16', 'uint256', 'uint32'], [CommandContractType.MakerBasicBuyCommandV2]: [ 'uint256', diff --git a/packages/automation/src/types.ts b/packages/automation/src/types.ts index fb82bdb..1a088c4 100644 --- a/packages/automation/src/types.ts +++ b/packages/automation/src/types.ts @@ -14,7 +14,7 @@ export enum CommandContractType { SimpleAAVESellCommand = 'SimpleAAVESell', AaveStopLossCommand = 'AaveStopLossCommand', AaveStopLossCommandV2 = 'AaveStopLossCommandV2', - MakerCloseCommandV2 = 'MakerCloseCommandV2', + MakerStopLossCommandV2 = 'MakerStopLossCommandV2', MakerAutoTakeProfitCommandV2 = 'MakerAutoTakeProfitCommandV2', MakerBasicBuyCommandV2 = 'MakerBasicBuyCommandV2', MakerBasicSellCommandV2 = 'MakerBasicSellCommandV2',