Building my own php-based monero profit calculator for fun.
However, setting a static variable for "block_reward" would be very bad, and become less accurate as time goes by.
I've looked at this thread here: What is the mining reward equation?
I've also looked at the whitepages here: https://cryptonote.org/whitepaper.pdf Page 13 specifically
I'll post their high-level equation first:
To ensure the smoothness of the emission process we use the following
formula for block rewards:
MSupply = 2^64 − 1 atomic units
BaseReward = (MSupply − A) >> 18,
where A is amount of previously generated coins.
Here's the laymen's version of the formula:
The Monero block reward = (M - A) * 2^-20 * 10^-12
Where A = current circulation. (NOTE:Assuming M = total supply)
Using this "laymen's" formula with current supply and circulation as of RIGHT now Doing this on a scientific calculator
(18,132,000 - 14,952,626) * 2^-20 *10^-12
(3179374) * (0.00000095367431640625) * (0.000000000001)
3.0320873260498046875 * (0.000000000001)
0.0000000000030320873260498046875 // Final Solution
What am I missing? That's clearly NOT the block reward
Current block reward is saying 6.6 XMR Found on: https://whattomine.com/coins/101-xmr-cryptonight