Closed market can be paused again
For a market to be closed it should first be paused. However a closed market can be paused again which is something that shouldn't be possible. Since there are no checks for the emergencyPause()
, meaning that it can be imposed on any state, which makes sense for most cases since it is used for emergency cases. However, the protocol shouldn't be able to be reverted from Closed
to Paused
, because closed is definitive, this is why we have the emergencyResume()
function, to revert from Pause
.
##POC
Closed market can be paused after it has been closed. If such event were to happen it would be a further annoyance to the protocol users that cannot withdraw their funds anymore because the status has been reverted to Paused
.
Manual review
Implement some checks before executing the Paused
state to make sure the market isn't closed such as :
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.