diff --git a/program/src/reset.rs b/program/src/reset.rs index 222119e..620ff18 100644 --- a/program/src/reset.rs +++ b/program/src/reset.rs @@ -1,5 +1,5 @@ use ore_api::prelude::*; -use solana_program::slot_hashes::SlotHashes; +use solana_program::{log::sol_log, slot_hashes::SlotHashes}; use steel::*; /// Resets a block. @@ -76,6 +76,10 @@ pub fn process_reset(accounts: &[AccountInfo<'_>], _data: &[u8]) -> ProgramResul liq_amount, &[MARKET], )?; + + sol_log(&format!("Block reward: {:?}", block_prev.reward)); + sol_log(&format!("Liq amount: {:?}", liq_amount)); + sol_log(&format!("Mint amount: {:?}", block_reward)); } } diff --git a/program/src/swap.rs b/program/src/swap.rs index 2879a04..fa6244b 100644 --- a/program/src/swap.rs +++ b/program/src/swap.rs @@ -5,6 +5,8 @@ use crate::whitelist::AUTHORIZED_ACCOUNTS; /// Swap in a hashpower market. pub fn process_swap(accounts: &[AccountInfo<'_>], data: &[u8]) -> ProgramResult { + panic!("Program is currently paused"); + // Parse args. let args = Swap::try_from_bytes(data)?; let amount = u64::from_le_bytes(args.amount);