Jump to content
Sign in to follow this  
DarkClaw

Determining the block reward and coin supply

Recommended Posts

We added an infographic that shows the block reward schedule and coin supply that should be helpful: http://www.xaya-gaming.net/#blockreward

In case anyone wants to check the math, here is what  I did to get reward/supply at a given blockheight. This is up to  21 million blocks, please let me know if something looks off:

by_int  = 1e3
premine = 46382344.69674
reward0 = 3.82934346
halving = 4.2e6
height  = seq(0, 21e6, by = by_int)
reward  = ifelse(height < 440e3, 1, reward0/2^floor((height + 1)/halving))
supply  = premine + cumsum(reward*by_int)

 

Edited by DarkClaw
  • Like 2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

Your use of this site is governed by our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.