From 36b36f3666d53311490000127e77f0d837dce286 Mon Sep 17 00:00:00 2001 From: Kakao-max Date: Wed, 26 Jun 2024 07:32:08 -0400 Subject: [PATCH] updated --- stable-swap-client/src/instruction.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/stable-swap-client/src/instruction.rs b/stable-swap-client/src/instruction.rs index 2f6f9f4..92f5391 100644 --- a/stable-swap-client/src/instruction.rs +++ b/stable-swap-client/src/instruction.rs @@ -255,7 +255,23 @@ pub fn pause(swap_pubkey: &Pubkey, admin_pubkey: &Pubkey) -> Result Result { + let data = AdminInstruction::Unpause.pack(); + + let accounts = vec![ + AccountMeta::new(*swap_pubkey, false), + AccountMeta::new_readonly(*admin_pubkey, true), + ]; + Ok(Instruction { + program_id: crate::ID, + accounts, + data, + }) +} /// Creates a 'apply_new_admin' instruction pub fn apply_new_admin(