This check is intended to skip the two liquidity-cased invariant checks: MarketEfficiencyUnderLimitError and MarketInsufficientLiquidityError, under three conditions:
The market is in close-only mode.
takerCloseAlways is enabled and a taker position is being closed.
makerCloseAlways is enabled and a maker position is being closed.
Under the current logic several cases which are not listed above will fail this check, skipping the invariant check mentioned including:
takerCloseAlways being enabled and a maker position being opened
makerCloseAlways being enabled and any position being opened or closed
This check is intended to skip the two liquidity-cased invariant checks:
MarketEfficiencyUnderLimitError
andMarketInsufficientLiquidityError
, under three conditions:takerCloseAlways
is enabled and a taker position is being closed.makerCloseAlways
is enabled and a maker position is being closed.Under the current logic several cases which are not listed above will fail this check, skipping the invariant check mentioned including:
takerCloseAlways
being enabled and a maker position being openedmakerCloseAlways
being enabled and any position being opened or closed