Incorrect offerStatus is set while closing a bid by calling DeliveryPlace::closeBidOffer().
The closeBidOffer() is called by the owner of a bid offer when they want to close that offer, after calling this function the price, which was deposited by the Maker while listing the offer but was not used for buying points, are sent back to the Maker i.e is refunded. But to note, in this stage the offer is not settled, offer will be settled when the taker i.e the seller of the points to Maker will settle the stock, by calling settleAskTaker(). But after the execution of the closeBidOffer() the offerStatus is changed to offerStatus.settled, but the status should be offerStatus.settling.
Manual review.
Change the status to offerStatus.settling instead of offerStatus.settled.
https://github.com/Cyfrin/2024-08-tadle/blob/04fd8634701697184a3f3a5558b41c109866e5f8/src/core/DeliveryPlace.sol#L79
https://github.com/Cyfrin/2024-08-tadle/blob/04fd8634701697184a3f3a5558b41c109866e5f8/src/storage/OfferStatus.sol#L21
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.