diff --git a/programs/drift/src/instructions/admin.rs b/programs/drift/src/instructions/admin.rs index e431d95d1..e6fc03a58 100644 --- a/programs/drift/src/instructions/admin.rs +++ b/programs/drift/src/instructions/admin.rs @@ -4878,7 +4878,9 @@ pub struct UpdateHighLeverageModeConfig<'info> { #[derive(Accounts)] pub struct InitializeProtectedMakerModeConfig<'info> { - #[account(mut)] + #[account( + constraint = admin.key() == admin_hot_wallet::id() || admin.key() == state.admin + )] pub admin: Signer<'info>, #[account( init,