Constants§
- BASE_
REWARD_ RATE_ MAX_ THRESHOLD - The maximum allowed base reward rate, at which point the min difficulty should be decreased.
- BASE_
REWARD_ RATE_ MIN_ THRESHOLD - The minimum allowed base reward rate, at which point the min difficulty should be increased
- BUS
- The seed of the bus account PDA.
- BUS_
ADDRESSES - The addresses of the bus accounts.
- BUS_
COUNT - The number of bus accounts, for parallelizing mine operations.
- BUS_
EPOCH_ REWARDS - The quantity of MARSH each bus is allowed to issue per epoch.
- CONFIG
- The seed of the config account PDA.
- CONFIG_
ADDRESS - The address of the config account.
- END_AT
- The unix timestamp after which mining will stop. TODO decide a new date
- EPOCH_
DURATION - The duration of a program epoch, in seconds.
- EPOCH_
MINUTES - The number of minutes in a program epoch.
- INITIALIZER_
ADDRESS - INITIAL_
BASE_ REWARD_ RATE - The authority allowed to initialize the program. The base reward rate to intialize the program with.
- INITIAL_
MIN_ DIFFICULTY - The minimum difficulty to initialize the program with.
- MAX_
EPOCH_ REWARDS - The maximum quantity of MARSH that can be mined per epoch. Inflation rate ≈ 10 MARSH / min (min 0, max 8)
- MAX_
SUPPLY - The maximum token supply (50 million).
- METADATA
- The seed of the metadata account PDA.
- METADATA_
ADDRESS - The address of the mint metadata account.
- METADATA_
NAME - The name for token metadata.
- METADATA_
SYMBOL - The ticker symbol for token metadata.
- METADATA_
URI - The uri for token metdata.
- MINT
- The seed of the mint account PDA.
- MINT_
ADDRESS - The address of the mint account.
- MINT_
NOISE - Noise for deriving the mint pda. Noise for deriving the mint pda.
- MINT_
V1_ ADDRESS - The address of the legacy Mars(h) mint account.
- NOOP_
PROGRAM_ ID - The address of the CU-optimized Solana noop program.
- ONE_
MARSH - One Marsh token, denominated in indivisible units.
- ONE_
MINUTE - The duration of one minute, in seconds.
- PROOF
- The seed of proof account PDAs.
- SMOOTHING_
FACTOR - The smoothing factor for reward rate changes. The reward rate cannot change by more or less than a factor of this constant from one epoch to the next.
- START_
AT - The unix timestamp after which mining can begin. TODO decide a new date
- TARGET_
EPOCH_ REWARDS - The target quantity of MARSH to be mined per epoch.
- TEN_
MARSH - Ten MARSH token
- TOKEN_
DECIMALS - The decimal precision of the Marsh token. There are 1 billion indivisible units per Marsh (called “raindrops”).
- TOKEN_
DECIMALS_ V1 - The decimal precision of the legacy Mars(h) token.
- TOLERANCE
- The spam/liveness tolerance in seconds.
- TREASURY
- The seed of the treasury account PDA.
- TREASURY_
ADDRESS - The address of the treasury account.
- TREASURY_
BUMP - The bump of the treasury account, for cpis.
- TREASURY_
TOKENS_ ADDRESS - The address of the treasury token account.