A call to bytes32 public constant IS_MARKET_DISABLED = keccak256(abi.encode("IS_MARKET_DISABLED"));
of GMX Market, can be done to see if the market is disabled to avoid unexpected behaviours from GMX
The GMX market token GM have some useful public funcitons that are not used in the protocol: IS_MARKET_DISABLED is one of them.
If market is down, is possible that no callback will be executed. Therefore the protocol will have lose tokens for not checking the state of GMX market state. Or unexpected response can arise.
Manual Review
Add check that point to this public function IS_MARKET_DISABLED
to see if current market is disabled.
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.