mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-13 23:16:52 +00:00
continue migration
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
use steel::*;
|
||||
|
||||
use crate::consts::CONFIG;
|
||||
|
||||
use super::OreAccount;
|
||||
|
||||
/// Config is a singleton account which manages program global variables.
|
||||
@@ -21,9 +19,4 @@ pub struct Config {
|
||||
pub top_balance: u64,
|
||||
}
|
||||
|
||||
/// Derive the PDA of the config account.
|
||||
pub fn config_pda() -> (Pubkey, u8) {
|
||||
Pubkey::find_program_address(&[CONFIG], &crate::id())
|
||||
}
|
||||
|
||||
account!(OreAccount, Config);
|
||||
|
||||
Reference in New Issue
Block a user