In SettlementBranch::fillOffchainOrders
function, the ctx.isFillPriceValid
conditional logic is implemented in contrary to what the workings of the protocol says.
based on the workings of the protocol as directed in comments, to check if a fillPrice is valid, when taking an offChain
Buy
order, the targetPrice
must be greater than or equal to the fillPrice
AND the reverse is the case when taking a Sell
order; However, the ctx.isFillPriceValid
conditional logic is doing the direct opposite
No offchain
order will be taken and if orders are taken based on the logic implemented, it will lead to lose of funds for traders
Manual review
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.