-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update formatting and comments in EmissionSchedule and test files chore: update tests for tail emission in schedule The tests for the tail emission in the schedule have been updated to include the faucet value in the supply calculations. This ensures that the total supply up to the tail emission is correct. Additionally, new tests have been added to cover the inflating tail emission. feat: update tail inflation calculation to use basis points The `EmissionSchedule` struct now includes a `inflation_bips` field, which represents the tail inflation rate in basis points (bips). The `new_tail_emission` method in the `Emission` implementation has been updated to calculate the `epoch_issuance` using the updated inflation rate. Additionally, the `as_u128` method has been added to convert the `MicroMinotari` value to a `u128` for more precise calculations. In the `consensus` module, the `inflation_bips` field in the `NetworkParams` struct has been updated to use basis points. The inflation rates for different networks have been adjusted accordingly. fix: update parameters for EmissionSchedule initialization
- Loading branch information
Showing
12 changed files
with
323 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.