Image for post
Image for post

Fixing a broken emission curve

RYO-Currency
May 20, 2019 · 3 min read

Correcting the last of the inherited code base

The emission curve for Ryo was one of the final aspects of the code we inherited that has not yet been re-written. Many community members over the last year had been pushing us to modify the curve. When we looked into it, we found code that in no way resembled the advertised emission curve. This article will explain what we found, and how we fixed it.

Total Supply

The advertised total supply is 88,888,888 coins before tail emission. When we burned the premine, we permanently removed 700,000 coins from the curve for a total planned emission of 88,188,888 coins. The existing code, however, hits 2,102,393 coins short of the intended target. That’s about a 2.4% difference. The modified curve will hit the intended target exactly when tail emission kicks in.

Image for post
Image for post

Post Peak Block Rewards

After the peak emission, block rewards start to drop. The emission curve was always advertised as changing every six months. The existing code, however, has a smooth decline in block rewards that decreases every block. The modified curve corrects this, and block rewards will change on six month intervals as intended.

Tail Emission

The tail emission was advertised at four coins per block. The existing code, however, had a fixed emission of four coins until those extra 2,102,393 coins were generated, then dropped to the true tail emission of two coins per block. The modified curve has a tail emission of four coins per block as intended.

Image for post
Image for post

The Modified Emission Curve Details

The modified curve (in blue above) was created with lots of input before two rounds of community debates. The final curve brings forward the peak one and half years, and extends the peak into a year long plateau. To account for the lower top block reward, the decline portion of the curve is drawn out and decreases by 6.53% every six months.

Further Reading

The modified curve was outlined in a lot more detail in this write-up. The final curve chosen is the “plateau 12” curve from the second debate, but with a 6.53% decline instead of a 6.55% decline in order to hit the intended 88,188,888 coins before tail emission.

Image for post
Image for post

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store