mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-13 23:16:52 +00:00
tresaury
This commit is contained in:
@@ -15,4 +15,4 @@ pub mod prelude {
|
||||
|
||||
use steel::*;
|
||||
|
||||
declare_id!("oreV2ZymfyeXgNgBdqMkumTqqAprVqgBWQfoYkrtKWQ");
|
||||
declare_id!("EmxGq9Bj8q6V998KDq3v19ch2DnARwhcNL2uXtgDFbra");
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user