MarketOrderKeeper by making fillMarketOrder revert by withdrawing collateral after making an orderIt is possible to create an on chain market order and then perform actions to ensure that when the keeper calls fillMarketOrder it will revert
Here is how attacker can force fillMarketOrder to revert after creating a market order via createMarketOrder
Immediately withdraw all collateral after making an order, this will revert because of this check in _fillOrder
The protocol clearly does not intend to have these scenarios involving creating an order then making it instantly unfillable. Proof is from cancelMarketOrder in OrderBranch.sol
keeper loses funds
User can create an unfillable order
User can effectively cancel an order before the minimum order lifetime
Manual Review
Do not allow removing collateral when there is an active order
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.