There are more than one ways to close the offer, but only one of the methods sets the offer to a state where it can be relisted again. This is inconsistent with the expected behaviour of the function as an user who isn't aware will not be able to relist his offer again.
The offer created if closed can be relisted via relistOffer method in PreMarkets.sol. However The offer can be closed in two ways, namely via closeBidOffer and closeOffer.
When closing the bid offer through closeOffer, the state of the offer is set to OfferStatus.Canceled.
When closing the bid offer through closeBidOffer, the state of the offer is set to OfferStatus.Settled.
However, there is a check in relistOffer that says that offer has to be in the state of Canceled for it to continue.
The user cannot relist his offer again if he tries to close the bid offer using closeBidOffer instead of closeOffer.
Manual analysis
Set the state to OfferStatus.Cancelled in closeBidOffer
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.