mirror of
https://github.com/d0zingcat/ore.git
synced 2026-06-03 23:26:47 +00:00
config
This commit is contained in:
@@ -1,22 +1,41 @@
|
||||
use steel::*;
|
||||
|
||||
use crate::state::config_pda;
|
||||
use crate::state::{config_pda, OreAccountOLD};
|
||||
|
||||
use super::OreAccount;
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
|
||||
pub struct Config {
|
||||
// The address that can set the admin.
|
||||
/// The address that can update the config.
|
||||
pub admin: Pubkey,
|
||||
|
||||
// The last boost timestamp.
|
||||
/// The adress with authority to call bury.
|
||||
pub bury_authority: Pubkey,
|
||||
|
||||
/// The address that receives admin fees.
|
||||
pub fee_collector: Pubkey,
|
||||
|
||||
/// The last boost timestamp.
|
||||
pub last_boost: i64,
|
||||
|
||||
// Whether seeker activation is enabled.
|
||||
/// Whether seeker activation is enabled.
|
||||
pub is_seeker_activation_enabled: u64,
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
|
||||
pub struct ConfigOLD {
|
||||
/// The address that can update the config.
|
||||
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.
|
||||
/// The address that receives admin fees.
|
||||
pub fee_collector: Pubkey,
|
||||
|
||||
// The fee rate taken for each swap.
|
||||
@@ -31,3 +50,4 @@ impl Config {
|
||||
}
|
||||
|
||||
account!(OreAccount, Config);
|
||||
account!(OreAccountOLD, ConfigOLD);
|
||||
|
||||
Reference in New Issue
Block a user