Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yogurtandjam committed May 8, 2024
1 parent 1f3f729 commit 6366a4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ internal class InputValidator(
"MARKET_ORDER_NOT_ENOUGH_LIQUIDITY" to 1030,
"MARKET_ORDER_ERROR_INDEX_PRICE_SLIPPAGE" to 1031,
"MARKET_ORDER_ERROR_ORDERBOOK_SLIPPAGE" to 1032,
"MARKET_ORDER_PRICE_IMPACT_AT_MAX_LEVERAGE" to 1033,
// removed this codepath in favor of BE validation
// "MARKET_ORDER_PRICE_IMPACT_AT_MAX_LEVERAGE" to 1033,
"ORDER_WOULD_FLIP_POSITION" to 1034,
"TRIGGER_MUST_ABOVE_INDEX_PRICE" to 1040,
"TRIGGER_MUST_BELOW_INDEX_PRICE" to 1041,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ internal class TradePositionStateValidator(
): Map<String, Any>? {
/*
MARKET_ORDER_CLOSE_TO_MAX_LEVERAGE
MARKET_ORDER_PRICE_IMPACT_AT_MAX_LEVERAGE
INVALID_NEW_POSITION_LEVERAGE
INVALID_LARGE_POSITION_LEVERAGE
Expand Down

0 comments on commit 6366a4a

Please sign in to comment.