Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
dev0xstar committed Jun 29, 2024
1 parent 328196f commit 1484046
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions stable-swap-client/src/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,16 @@ pub fn stop_ramp_a(
Ok(Instruction {
program_id: crate::ID,
accounts,
data,
})
}

/// Creates a 'pause' instruction
pub fn pause(swap_pubkey: &Pubkey, admin_pubkey: &Pubkey) -> Result<Instruction, ProgramError> {
let data = AdminInstruction::Pause.pack();

let accounts = vec![
AccountMeta::new(*swap_pubkey, false),
AccountMeta::new_readonly(*admin_pubkey, true),
];

Expand Down

0 comments on commit 1484046

Please sign in to comment.