Wrong judgement result about isFillPriceValid because of wrong implemented code.
The validity of the fill price depends on order type (is buy order or not) and the size of fillPrice and targetPrice.
We can see the implemented code and comment is inconsistency. In my understanding, buy order shows traders expect the price to rise. So the fill price should be less than target price. In this way traders maximize their profits if the price has indeed increased. Sell orders is in opposite case. The fill price should be larger than target price for sell orders.
So the imnplemented code is wrong. The comment is right. The judgement result about isFillPriceValid is wrong.
The normal order can't be fulfilled because of wrong judgement result about isFillPriceValid.
manual
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.