Skip to content

Commit

Permalink
chore: lint/format what's there
Browse files Browse the repository at this point in the history
  • Loading branch information
zerotucks committed Apr 26, 2024
1 parent 45553e0 commit 559cfbf
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions packages/automation/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,14 @@ export enum TriggerType {
DmaMorphoBlueBasicSellV2 = 136,
DmaMorphoBluePartialTakeProfitV2 = 137,
DmaMorphoBlueStopLossV2 = 138,
DmaMorphoBlueTrailingStopLossV2 = 10008
DmaMorphoBlueTrailingStopLossV2 = 10008,
}

export const TrailingStopLossTriggers = [TriggerType.DmaAaveTrailingStopLossV2, TriggerType.DmaSparkTrailingStopLossV2, TriggerType.DmaMorphoBlueTrailingStopLossV2];
export const TrailingStopLossTriggers = [
TriggerType.DmaAaveTrailingStopLossV2,
TriggerType.DmaSparkTrailingStopLossV2,
TriggerType.DmaMorphoBlueTrailingStopLossV2,
];

export const triggerTypeToCommandContractTypeMap: Record<TriggerType, CommandContractType> = {
[TriggerType.StopLossToCollateral]: CommandContractType.CloseCommand,
Expand Down Expand Up @@ -115,9 +119,11 @@ export const triggerTypeToCommandContractTypeMap: Record<TriggerType, CommandCon

[TriggerType.DmaMorphoBlueBasicBuyV2]: CommandContractType.DmaMorphoBlueBasicBuyCommandV2,
[TriggerType.DmaMorphoBlueBasicSellV2]: CommandContractType.DmaMorphoBlueBasicSellCommandV2,
[TriggerType.DmaMorphoBluePartialTakeProfitV2]: CommandContractType.DmaMorphoBluePartialTakeProfitCommandV2,
[TriggerType.DmaMorphoBluePartialTakeProfitV2]:
CommandContractType.DmaMorphoBluePartialTakeProfitCommandV2,
[TriggerType.DmaMorphoBlueStopLossV2]: CommandContractType.DmaMorphoBlueStopLossCommandV2,
[TriggerType.DmaMorphoBlueTrailingStopLossV2]: CommandContractType.DmaMorphoBlueTrailingStopLossCommandV2,
[TriggerType.DmaMorphoBlueTrailingStopLossV2]:
CommandContractType.DmaMorphoBlueTrailingStopLossCommandV2,
};

export enum TriggerGroupType {
Expand Down

0 comments on commit 559cfbf

Please sign in to comment.