mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-23 15:10:37 +00:00
migrate
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
use steel::*;
|
||||
|
||||
use crate::state::OreAccountOLD;
|
||||
|
||||
use super::OreAccount;
|
||||
|
||||
/// Treasury is a singleton account which is the mint authority for the ORE token and the authority of
|
||||
@@ -9,6 +11,17 @@ use super::OreAccount;
|
||||
pub struct Treasury {
|
||||
// The amount of SOL collected for buy-bury operations.
|
||||
pub balance: u64,
|
||||
|
||||
/// The amount of ORE in the motherlode.
|
||||
pub motherlode: u64,
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
|
||||
pub struct TreasuryOLD {
|
||||
// The amount of SOL collected for buy-bury operations.
|
||||
pub balance: u64,
|
||||
}
|
||||
|
||||
account!(OreAccount, Treasury);
|
||||
account!(OreAccountOLD, TreasuryOLD);
|
||||
|
||||
Reference in New Issue
Block a user