Assessment reports>Nibiru>Threat Models>Message: ExecuteMsg.SetMarketEnabled

Message: ExecuteMsg.SetMarketEnabled

This message can be sent via a CosmosWasm contract and allows for a market to be enabled or disabled.

The contractAddr address is checked to ensure that it is contained within the set of sudo contracts defined in the x/sudo module.

The parameters that a user can control are

  • Pair — This is the pair of the market to enable or disable. It is checked to ensure that it is valid and that there is a market for it.

  • Enabled — This is the new enabled state to set for the market.

Zellic © 2024Back to top ↑