This commit is contained in:
Hardhat Chad
2025-06-06 18:14:17 -07:00
parent 45fcf52c0f
commit 4942947647
3 changed files with 3 additions and 5 deletions

View File

@@ -15,4 +15,4 @@ pub mod prelude {
use steel::*;
declare_id!("oreV2ZymfyeXgNgBdqMkumTqqAprVqgBWQfoYkrtKWQ");
declare_id!("EmxGq9Bj8q6V998KDq3v19ch2DnARwhcNL2uXtgDFbra");

View File

@@ -6,9 +6,6 @@ use super::OreAccount;
/// the program's global token account.
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
pub struct Treasury {
/// The total amount of ORE that has been staked.
pub total_stake: u64,
}
pub struct Treasury {}
account!(OreAccount, Treasury);

View File

@@ -19,6 +19,7 @@ pub fn process_close(accounts: &[AccountInfo<'_>], _data: &[u8]) -> ProgramResul
.assert_mut(|m| m.id == block.id)?;
mint_base_info.has_address(&market.base.mint)?.as_mint()?;
mint_quote_info.has_address(&market.quote.mint)?.as_mint()?;
treasury_info.has_address(&TREASURY_ADDRESS)?;
let vault_base =
vault_base_info.as_associated_token_account(market_info.key, mint_base_info.key)?;
let vault_quote =