mango-v4/programs/mango-v4/src/accounts_ix/perp_edit_market.rs

21 lines
553 B
Rust

use crate::state::*;
use anchor_lang::prelude::*;
#[derive(Accounts)]
pub struct PerpEditMarket<'info> {
pub group: AccountLoader<'info, Group>,
// group <-> admin relation is checked at #1
pub admin: Signer<'info>,
#[account(
mut,
has_one = group
)]
pub perp_market: AccountLoader<'info, PerpMarket>,
/// The oracle account is optional and only used when reset_stable_price is set.
///
/// CHECK: The oracle can be one of several different account types
pub oracle: UncheckedAccount<'info>,
}