mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-29 15:11:03 +00:00
cleanup
This commit is contained in:
19
api/src/state/treasury.rs
Normal file
19
api/src/state/treasury.rs
Normal file
@@ -0,0 +1,19 @@
|
||||
use steel::*;
|
||||
|
||||
use crate::state::treasury_pda;
|
||||
|
||||
use super::OreAccount;
|
||||
|
||||
/// Treasury is a singleton account which is the mint authority for the ORE token and the authority of
|
||||
/// the program's global token account.
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
|
||||
pub struct Treasury {}
|
||||
|
||||
impl Treasury {
|
||||
pub fn pda() -> (Pubkey, u8) {
|
||||
treasury_pda()
|
||||
}
|
||||
}
|
||||
|
||||
account!(OreAccount, Treasury);
|
||||
Reference in New Issue
Block a user