Steadefi

Steadefi
DeFiHardhatFoundryOracle
35,000 USDC
View results
Submission Details
Severity: medium
Invalid

Availablility of GMX market not checked

Summary

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

Vulnerability Details

The GMX market token GM have some useful public funcitons that are not used in the protocol: IS_MARKET_DISABLED is one of them.

Impact

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.

Tools Used

Manual Review

Recommendations

Add check that point to this public function IS_MARKET_DISABLED to see if current market is disabled.

Updates

Lead Judging Commences

hans Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Lack of quality
Rozzo Submitter
almost 2 years ago
hans Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.