This commit is contained in:
Hardhat Chad
2025-06-25 14:33:58 -05:00
parent 11d5442dd2
commit d03acda291
6 changed files with 134 additions and 3 deletions

View File

@@ -4,11 +4,13 @@ use crate::state::config_pda;
use super::OreAccount;
// TODO Config stuff
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
pub struct Config {}
pub struct Config {
pub admin: Pubkey,
pub fee_collector: Pubkey,
pub fee_rate: u64,
}
impl Config {
pub fn pda() -> (Pubkey, u8) {