Skip to content

Commit

Permalink
chore: add excutionPrice to partial take profit trigger data
Browse files Browse the repository at this point in the history
  • Loading branch information
halaprix committed Feb 28, 2024
1 parent 0ff86c6 commit 2b3aa03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/automation/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oasisdex/automation",
"packageManager": "yarn@1.22.21",
"version": "1.6.4-alpha.0",
"version": "1.6.4-alpha.1",
"description": "The set of utilities for Oasis automation",
"homepage": "https://github.com/OasisDEX/common#readme",
"main": "lib/src/index.js",
Expand Down
4 changes: 4 additions & 0 deletions packages/automation/src/mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ export const commandTypeJsonMapping: Record<CommandContractType, string[]> = {
'operationName',
'executionLtv',
'targetLtv',
'excutionPrice',
'deviation',
'closeToCollateral',
],
Expand All @@ -217,6 +218,7 @@ export const commandTypeJsonMapping: Record<CommandContractType, string[]> = {
'operationName',
'executionLtv',
'targetLtv',
'excutionPrice',
'deviation',
'closeToCollateral',
],
Expand Down Expand Up @@ -552,6 +554,7 @@ export const defaultCommandTypeMapping: Record<CommandContractType, ParamDefinit
'bytes32', // operationName
'uint256', // execLtv
'uint256', // targetLtv
'uint256', // excutionPrice
'uint64', // deviation
'bool', // closeToCollateral
],
Expand All @@ -564,6 +567,7 @@ export const defaultCommandTypeMapping: Record<CommandContractType, ParamDefinit
'bytes32', // operationName
'uint256', // execLtv
'uint256', // targetLtv
'uint256', // excutionPrice
'uint64', // deviation
'bool', // closeToCollateral
],
Expand Down

0 comments on commit 2b3aa03

Please sign in to comment.