CreateMarketOrder
causing the function to revertWe can see that it checks if the position increases or decreases:
then it undergoes this check :
the problem here is globalConfiguration.checkMarketIsEnabled(params.marketId);
and settlementConfiguration.checkIsSettlementEnabled();
as they would revert if disabled but according to protocol :
allow open positions not subject to liquidation to decrease their size or close
as we can see this will never happen as it will revert before that
positions not subject to liquidation won't be able to decrease or close their position
Manual Review
don't revert if the market and settlements are disabled
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.