mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-22 07:26:52 +00:00
Reduce emissions by 10% every year (#108)
* deprecate top balance * stub dynamic emissions impl * impl 90% curve * scaffold emissions rate function * emissions curve * implement new supply curve * remove comments * update comment * bump version * test reset * add tests for emissions reduction * test * fix test * bump version
This commit is contained in:
@@ -18,6 +18,7 @@ pub struct Bus {
|
||||
pub theoretical_rewards: u64,
|
||||
|
||||
/// The largest known stake balance seen by the bus this epoch.
|
||||
#[deprecated(since = "2.8.0", note = "Top balance is no longer tracked or used")]
|
||||
pub top_balance: u64,
|
||||
}
|
||||
|
||||
|
||||
@@ -15,8 +15,8 @@ pub struct Config {
|
||||
/// The minimum accepted difficulty.
|
||||
pub min_difficulty: u64,
|
||||
|
||||
/// Buffer for possible future use.
|
||||
pub _buffer: [u8; 8],
|
||||
/// The target emissions rate in ORE/min.
|
||||
pub target_emmissions_rate: u64,
|
||||
}
|
||||
|
||||
account!(OreAccount, Config);
|
||||
|
||||
Reference in New Issue
Block a user