Skip to content

Commit

Permalink
chore: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
halaprix committed Jan 31, 2024
1 parent a2246ff commit 4bf7e90
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions packages/automation/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,33 +27,33 @@ export enum CommandContractType {
DmaAaveStopLossCommandV2 = 'DmaAaveV3StopLossCommandV2',
}

export enum TriggerType {
StopLossToCollateral = 1,
StopLossToDai = 2,
BasicBuy = 3,
BasicSell = 4,
AutoTakeProfitToCollateral = 7,
AutoTakeProfitToDai = 8,
SimpleAAVESell = 9,
AaveStopLossToCollateral = 10,
AaveStopLossToDebt = 11,
MakerStopLossToCollateralV2 = 101,
MakerStopLossToDaiV2 = 102,
MakerBasicBuyV2 = 103,
MakerBasicSellV2 = 104,
MakerAutoTakeProfitToCollateralV2 = 105,
MakerAutoTakeProfitToDaiV2 = 106,
AaveStopLossToCollateralV2 = 111,
AaveStopLossToDebtV2 = 112,
SparkStopLossToCollateralV2 = 117,
SparkStopLossToDebtV2 = 118,
DmaAaveBasicBuyV2 = 121,
DmaAaveBasicSellV2 = 122,
DmaAaveStopLossToCollateralV2 = 123,
DmaAaveStopLossToDebtV2 = 124,
DmaSparkStopLossToCollateralV2 = 125,
DmaSparkStopLossToDebtV2 = 126,
}
export enum TriggerType {
StopLossToCollateral = 1,
StopLossToDai = 2,
BasicBuy = 3,
BasicSell = 4,
AutoTakeProfitToCollateral = 7,
AutoTakeProfitToDai = 8,
SimpleAAVESell = 9,
AaveStopLossToCollateral = 10,
AaveStopLossToDebt = 11,
MakerStopLossToCollateralV2 = 101,
MakerStopLossToDaiV2 = 102,
MakerBasicBuyV2 = 103,
MakerBasicSellV2 = 104,
MakerAutoTakeProfitToCollateralV2 = 105,
MakerAutoTakeProfitToDaiV2 = 106,
AaveStopLossToCollateralV2 = 111,
AaveStopLossToDebtV2 = 112,
SparkStopLossToCollateralV2 = 117,
SparkStopLossToDebtV2 = 118,
DmaAaveBasicBuyV2 = 121,
DmaAaveBasicSellV2 = 122,
DmaAaveStopLossToCollateralV2 = 123,
DmaAaveStopLossToDebtV2 = 124,
DmaSparkStopLossToCollateralV2 = 125,
DmaSparkStopLossToDebtV2 = 126,
}

export const triggerTypeToCommandContractTypeMap: Record<TriggerType, CommandContractType> = {
[TriggerType.StopLossToCollateral]: CommandContractType.CloseCommand,
Expand Down

0 comments on commit 4bf7e90

Please sign in to comment.