Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add max supply and current supply to budget object #2304

Merged
merged 1 commit into from
Nov 6, 2020

Conversation

abitmore
Copy link
Member

@abitmore abitmore commented Nov 5, 2020

Fixes #2303.

New fields:

/// Maximum supply
share_type max_supply;
/// Current supply
share_type current_supply;

All fields:

struct budget_record
{
uint64_t time_since_last_budget = 0;
/// Sources of budget
///@{
share_type from_initial_reserve = 0;
share_type from_accumulated_fees = 0;
share_type from_unused_witness_budget = 0;
///@}
/// Witness budget requested by the committee
share_type requested_witness_budget = 0;
/// Funds that can be released from reserve at maximum rate
share_type total_budget = 0;
/// Sinks of budget, should sum up to total_budget
///@{
share_type witness_budget = 0;
share_type worker_budget = 0;
///@}
/// Unused budget
share_type leftover_worker_funds = 0;
/// Change in supply due to budget operations
share_type supply_delta = 0;
/// Maximum supply
share_type max_supply;
/// Current supply
share_type current_supply;
};

@abitmore abitmore added this to the 5.1.0 - Feature Release milestone Nov 5, 2020
@abitmore abitmore linked an issue Nov 5, 2020 that may be closed by this pull request
17 tasks
@abitmore abitmore merged commit 2537f33 into develop Nov 6, 2020
@abitmore abitmore deleted the pr-2303-budget-supply branch November 6, 2020 20:14
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.

Add current supply and maximum supply to budget object
1 participant