diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/validator/InputValidator.kt b/src/commonMain/kotlin/exchange.dydx.abacus/validator/InputValidator.kt index 916e9d74b..239eb5690 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/validator/InputValidator.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/validator/InputValidator.kt @@ -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, diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/validator/trade/TradePositionStateValidator.kt b/src/commonMain/kotlin/exchange.dydx.abacus/validator/trade/TradePositionStateValidator.kt index 9dc206238..dac89cbdb 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/validator/trade/TradePositionStateValidator.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/validator/trade/TradePositionStateValidator.kt @@ -113,7 +113,6 @@ internal class TradePositionStateValidator( ): Map? { /* MARKET_ORDER_CLOSE_TO_MAX_LEVERAGE - MARKET_ORDER_PRICE_IMPACT_AT_MAX_LEVERAGE INVALID_NEW_POSITION_LEVERAGE INVALID_LARGE_POSITION_LEVERAGE