Skip to content

Commit

Permalink
address cmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dydxwill committed Nov 8, 2023
1 parent f828f6b commit 82f7a60
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ export interface TradeContent {
price: string,
side: string,
createdAt: IsoString,
liquidation?: boolean,
deleveraging?: boolean,
liquidation: boolean,
deleveraging: boolean,
}

/* ------- MarketMessageContents ------- */
Expand Down
1 change: 1 addition & 0 deletions indexer/services/ender/__tests__/helpers/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ export const defaultTradeContent: TradeContent = {
side: 'BUY',
createdAt: 'createdAt',
liquidation: true,
deleveraging: false,
};
export const defaultTradeMessage: SingleTradeMessage = contentToSingleTradeMessage(
defaultTradeContent,
Expand Down
3 changes: 3 additions & 0 deletions indexer/services/ender/__tests__/lib/kafka-publisher.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ describe('kafka-publisher', () => {
side: 'side',
createdAt: 'today',
liquidation: false,
deleveraging: false,
};
const singleTrade1: SingleTradeMessage = contentToSingleTradeMessage(
tradeContent1,
Expand All @@ -427,6 +428,7 @@ describe('kafka-publisher', () => {
side: 'side',
createdAt: 'today',
liquidation: false,
deleveraging: false,
};
const singleTrade2: SingleTradeMessage = contentToSingleTradeMessage(
tradeContent2,
Expand All @@ -441,6 +443,7 @@ describe('kafka-publisher', () => {
side: 'side',
createdAt: 'today',
liquidation: false,
deleveraging: false,
};
const singleTrade3: SingleTradeMessage = contentToSingleTradeMessage(
tradeContent3,
Expand Down

0 comments on commit 82f7a60

Please sign in to comment.