fillOffchainOrders()
doesn't validate the maxPositionsPerAccount
requirement.
While creating a market order in createMarketOrder()
, it calls validatePositionsLimit().
And validatePositionsLimit()
reverts if the trading account has more positions than maxPositionsPerAccount
.
But for offchain orders, there is no such a requirement while creating an offchain order(via offchain) and filling it.
A trading account would have more positions than maxPositionsPerAccount
after filling offchain orders.
Manual Review
fillOffchainOrders()
should validate the maxPositionsPerAccount
requirement.
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.