According to the protocols invariant, delicate functionalities should not be performed when the market is offline, hence the need for the numerous checks. However, the abortBidTaker is currently susceptible to be broken in a function that currently does'nt implement the check.
*Line of Code
https://github.com/Cyfrin/2024-08-tadle/blob/04fd8634701697184a3f3a5558b41c109866e5f8/src/core/PreMarkets.sol#L536-L644
The PreMarkets.sol::abortBidTaker which is a function called by Only offer owner in order to abort bid taker.
However, this function can be called even when the market is offline which is due to a lack of check that should have been implemented. This makes it possible for users to abuse the system and breaks an invariant.
System can be abused while the market is offline and it also breaks the logic of the protocol.
Add the checkMarketPlaceStatus just like it is been done in other similar functions
Informational, during emergencies, even if abortions are allowed, withdrawal can be paused and collateral cannot be pulled anyways (`whenNotPaused` modifier within `withdraw()`), so there is no impact here, given funds outflow can be paused.
Informational, during emergencies, even if abortions are allowed, withdrawal can be paused and collateral cannot be pulled anyways (`whenNotPaused` modifier within `withdraw()`), so there is no impact here, given funds outflow can be paused.
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.