In OrderBook::buyOrder
or OrderBook::amendSellOrder
functions, it is verified that users are unable to call them if the order has expired, but it also reverts when order.deadlineTimestamp is equal to block.timestamp, but it should accept this case
Likelihood:
This bug will take place every time a user tries to call OrderBook::buyOrder
or OrderBook::amendSellOrder
when order.deadlineTimestamp is equal to block.timestamp
Impact:
OrderBook::buyOrder
and OrderBook::amendSellOrder
will revert when called under these conditions, and the seller will not be able to amend his/her order or user will be unable to buy an Order
The following PoC shows that a user is unable to call OrderBook::amendSellOrder
when block.timestamp is equal to order.deadlineTimestamp
Consider removing the >= to accept the block.timestamp in the order.deadlineTimestamp range
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.