Definitions
Let:
- S = room slots (max miners that can run at once)
- E =
base_emission_per_hash_per_sec (GOLD per second per hash)
- For each equipped miner instance i:
- hi = miner hash
- cdi = cooldown end time (unix seconds)
- now = current time (unix seconds)
Effective hash
Each miner contributes either its hash or 0 if it’s cooling down:
hieff={hi0if now≥cdiif now<cdi
Total hash in a room
Take the miners equipped in the active room (up to S slots) and sum:
H=i=1∑Shieff
Base emission (tokens per second)
GOLD/sec=H×E
Multipliers (room + fuel)
If the contract applies room and fuel multipliers:
GOLD/sec=H×E×Mroom×Mfuel
Where Mroom and Mfuel are multipliers like 1.0, 1.2, 2.0, etc.
Example
Active room slots: S=4
Equipped miner hashes: [10000, 4000, 1500, 600]
No cooldowns active ⇒hieff=hi
H=10000+4000+1500+600=16100
Example emission rate E=0.0001:
GOLD/sec=16100×0.0001=1.61