Skip to content

Fix for supply calculation#191

Open
Alumn0 wants to merge 1 commit into
deroproject:community-mainnetfrom
Alumn0:fix/supply-calculation
Open

Fix for supply calculation#191
Alumn0 wants to merge 1 commit into
deroproject:community-mainnetfrom
Alumn0:fix/supply-calculation

Conversation

@Alumn0
Copy link
Copy Markdown

@Alumn0 Alumn0 commented May 5, 2026

Description

Since the first halving at block 7,000,000 the formular to calculate the current supply is incorrect.
These changes correct the supply calculation by adding a function, which considers the RewardReductionInterval value.

Type of change

Please select the right one.

  • [ x ] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • This will require a HardFork to be enabled

Which part is impacted ?

  • Wallet
  • [ x ] Daemon
  • Miner
  • Explorer
  • Simulator
  • Misc (documentation, comments, text...)

Checklist:

  • [ x ] I have performed a self-review of my code
  • [ x ] I have commented my code, particularly in hard-to-understand areas
  • [ x ] My changes generate no new warnings

License

Im am contributing & releasing the code under DERO Research License (which can be found here).

…erval into consideration

Replaced supply calculation formular in daemon to utilize the new function instead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants