pub fn update_market_config_flag(
ctx: Context<'_, '_, '_, '_, UpdateMarketConfig<'_>>,
key: String,
value: bool,
) -> Result<()>
Expand description
Update a flag in the market config.
This instruction allows a MARKET_KEEPER to update a single flag in the market’s configuration. The key must be one of the predefined market config flags.
§Accounts
See the documentation for the accounts.
§Arguments
key
: The flag to update. Must be a valid key defined inMarketConfigFlag
.value
: The new boolean value to set for this flag.
§Errors
- The
authority
must be a signer and have the MARKET_KEEPER role in the store. - The
store
must be an initialized store account owned by this program. - The
market
must be an initialized market account owned by the store. - The provided
key
must be defined inMarketConfigFlag
.