Skip to main content

Module consts

Module consts 

Source

Constants§

ASSOCIATED_TOKEN_PROGRAM_ID
CONFIG_SEED
PDA seeds.
EMISSION_PER_MINUTE
Emission: 10 tokens per minute.
INITIAL_BASE_WEIGHT
Initial base weight (free tier) in native token units. Denominated purely in tokens: each 1 token of balance = +1% power over the base (100 tokens = 2×). Tuned via update_config.
INITIAL_MIN_DIFFICULTY
Initial minimum hash difficulty (leading zero bits). 20 bits ≈ 1M hashes: a few seconds on a desktop, a dozen or so on a weak CPU. Proof-of-liveness is meant to take a moment, not be a race.
INITIAL_ROUND_SECONDS
Initial round length in seconds (lives in Config, tunable via update_config, from an “ORE feel” cadence to a frugal one).
MAX_ROUND_SECONDS
MINER_SEED
MIN_ROUND_SECONDS
Round length bounds for update_config.
ONE_TOKEN
One token in native units.
ROUND_RETENTION
How many rounds back Round accounts are kept before they can be closed (rent recovery: the crank closes old rounds and recycles the float). 2880 rounds × 60 s = 2 days to settle a reward at launch settings.
ROUND_SEED
SLOT_HASHES_SYSVAR_ID
SPL_TOKEN_MINT_TO_IX
MintTo instruction index in the SPL Token program.
SPL_TOKEN_PROGRAM_ID
External programs (canonical addresses).
SYSTEM_PROGRAM_ID
TOKEN_DECIMALS
Token decimal places.
TREASURY_SEED

Functions§

round_budget
Round budget for a given length: 10 tokens/min pro-rata. A round with no submissions = the emission lapses (nothing is minted).