ore_mint_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 maximum amount of ORE tokens that can be minted per request.
11pub const MAX_MINT_AMOUNT: u64 = ONE_ORE * 2;
12
13/// The number of slots required between mint requests.
14pub const MIN_SLOTS_BETWEEN_MINT: u64 = 150;
15
16/// The maximum token supply (3 million).
17pub const MAX_SUPPLY: u64 = ONE_ORE * 3_000_000;
18
19/// The seed of the automation account PDA.
20pub const AUTHORITY: &[u8] = b"authority";
21
22/// The address of the mint account.
23pub const MINT_ADDRESS: Pubkey = pubkey!("oreoU2P8bN6jkk3jbaiVxYnG1dCXcYxwhwyK9jSybcp");
24
25/// The treasury address allowed to request a mint.
26pub const TREASURY_ADDRESS: Pubkey = pubkey!("45db2FSR4mcXdSVVZbKbwojU6uYDpMyhpEi7cC8nHaWG");