Files
ore/api/src/state/config.rs
Hardhat Chad d1d9991496 seeker
2025-09-25 20:32:18 -07:00

34 lines
671 B
Rust

use steel::*;
use crate::state::config_pda;
use super::OreAccount;
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
pub struct Config {
// The address that can set the admin.
pub admin: Pubkey,
// The last boost timestamp.
pub last_boost: i64,
// Whether seeker activation is enabled.
pub is_seeker_activation_enabled: u64,
// The address that receives fees.
pub fee_collector: Pubkey,
// The fee rate taken for each swap.
#[deprecated(since = "1.0.0", note = "Unused")]
pub fee_rate: u64,
}
impl Config {
pub fn pda() -> (Pubkey, u8) {
config_pda()
}
}
account!(OreAccount, Config);