Skip to main content

ore_stake_api/
consts.rs

1use solana_program::{pubkey, pubkey::Pubkey};
2
3/// The decimal precision of the ORE token.
4/// There are 100 billion indivisible units per ORE (called "grams").
5pub const TOKEN_DECIMALS: u8 = 11;
6
7/// One ORE token, denominated in indivisible units.
8pub const ONE_ORE: u64 = 10u64.pow(TOKEN_DECIMALS as u32);
9
10/// The duration of one minute, in seconds.
11pub const ONE_MINUTE: i64 = 60;
12
13/// The duration of one hour, in seconds.
14pub const ONE_HOUR: i64 = 60 * ONE_MINUTE;
15
16/// The duration of one day, in seconds.
17pub const ONE_DAY: i64 = 24 * ONE_HOUR;
18
19/// The seed of the stake account PDA.
20pub const STAKE: &[u8] = b"stake";
21
22/// The seed of the treasury account PDA.
23pub const TREASURY: &[u8] = b"treasury";
24
25/// The address of the mint account.
26pub const MINT_ADDRESS: Pubkey = pubkey!("oreoU2P8bN6jkk3jbaiVxYnG1dCXcYxwhwyK9jSybcp");