Skip to content

Commit

Permalink
FIX - automation - update MakerCloseCommandV2 to `MakerStopLossComm…
Browse files Browse the repository at this point in the history
…andV2` (#93)
  • Loading branch information
halaprix authored Apr 12, 2023
1 parent 3eb4a24 commit b124af3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/automation/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/automation/src/mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const commandTypeJsonMapping: Record<CommandContractType, string[]> = {
'debtToken',
'ltv',
],
[CommandContractType.MakerCloseCommandV2]: ['cdpId', 'triggerType', 'maxCoverage', 'collRatio'],
[CommandContractType.MakerStopLossCommandV2]: ['cdpId', 'triggerType', 'maxCoverage', 'collRatio'],
[CommandContractType.MakerBasicBuyCommandV2]: [
'cdpId',
'triggerType',
Expand Down Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion packages/automation/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export enum CommandContractType {
SimpleAAVESellCommand = 'SimpleAAVESell',
AaveStopLossCommand = 'AaveStopLossCommand',
AaveStopLossCommandV2 = 'AaveStopLossCommandV2',
MakerCloseCommandV2 = 'MakerCloseCommandV2',
MakerStopLossCommandV2 = 'MakerStopLossCommandV2',
MakerAutoTakeProfitCommandV2 = 'MakerAutoTakeProfitCommandV2',
MakerBasicBuyCommandV2 = 'MakerBasicBuyCommandV2',
MakerBasicSellCommandV2 = 'MakerBasicSellCommandV2',
Expand Down

0 comments on commit b124af3

Please sign in to comment.