Skip to content

Commit

Permalink
let hot wallet init config
Browse files Browse the repository at this point in the history
  • Loading branch information
crispheaney committed Dec 5, 2024
1 parent dd4c96f commit ff48a96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion programs/drift/src/instructions/admin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ff48a96

Please sign in to comment.