This commit is contained in:
Hardhat Chad
2025-09-18 09:01:56 -07:00
parent 9f9be6b80e
commit 55666405ef
5 changed files with 3 additions and 82 deletions

View File

@@ -1,6 +1,6 @@
use steel::*;
use crate::state::{config_pda, OreAccountOLD};
use crate::state::config_pda;
use super::OreAccount;
@@ -25,25 +25,6 @@ pub struct Config {
pub fee_rate: u64,
}
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
pub struct ConfigOLD {
// The address that can set the admin.
pub admin: Pubkey,
// The block duration in slots.
pub block_duration: u64,
// The duration in slots for which the sniper fee is applied.
pub sniper_fee_duration: u64,
// The address that receives fees.
pub fee_collector: Pubkey,
// The fee rate taken for each swap.
pub fee_rate: u64,
}
impl Config {
pub fn pda() -> (Pubkey, u8) {
config_pda()
@@ -51,4 +32,3 @@ impl Config {
}
account!(OreAccount, Config);
account!(OreAccountOLD, ConfigOLD);