mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-15 23:16:46 +00:00
comments
This commit is contained in:
@@ -5,6 +5,16 @@ use solana_program::{
|
||||
|
||||
use crate::{instruction::PauseArgs, loaders::*, state::Config, utils::AccountDeserialize};
|
||||
|
||||
/// Pause updates the program's pause flag. Its responsibilities include:
|
||||
/// 1. Update the pause flag.
|
||||
///
|
||||
/// Safety requirements:
|
||||
/// - Can only succeed if the signer is the program admin.
|
||||
/// - Can only succeed if the provided config is valid.
|
||||
///
|
||||
/// Discussion:
|
||||
/// - This should only be used to address critical contract risks and force migration to a new
|
||||
/// verison (hardfork).
|
||||
pub fn process_pause<'a, 'info>(
|
||||
_program_id: &Pubkey,
|
||||
accounts: &'a [AccountInfo<'info>],
|
||||
|
||||
Reference in New Issue
Block a user