25 lines
687 B
Rust
25 lines
687 B
Rust
use crate::state::*;
|
|
use anchor_lang::prelude::*;
|
|
|
|
/// Changes a token's parameters.
|
|
///
|
|
/// In addition to these accounts, all banks must be passed as remaining_accounts
|
|
/// in MintInfo order.
|
|
#[derive(Accounts)]
|
|
pub struct TokenEdit<'info> {
|
|
pub group: AccountLoader<'info, Group>,
|
|
// group <-> admin relation is checked at #1
|
|
pub admin: Signer<'info>,
|
|
|
|
#[account(
|
|
mut,
|
|
has_one = group
|
|
)]
|
|
pub mint_info: AccountLoader<'info, MintInfo>,
|
|
|
|
/// 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>,
|
|
}
|