epoch tuning

This commit is contained in:
Hardhat Chad
2024-05-12 19:29:56 +00:00
parent ba6d746c50
commit e2868cc861

View File

@@ -25,7 +25,7 @@ pub const ONE_MINUTE: i64 = 60;
pub const ONE_DAY: i64 = 86400;
/// The number of minutes in an Ore epoch.
pub const EPOCH_MINUTES: i64 = 5;
pub const EPOCH_MINUTES: i64 = 1;
/// The duration of an Ore epoch, in seconds.
pub const EPOCH_DURATION: i64 = ONE_MINUTE.saturating_mul(EPOCH_MINUTES);
@@ -34,11 +34,11 @@ pub const EPOCH_DURATION: i64 = ONE_MINUTE.saturating_mul(EPOCH_MINUTES);
pub const MAX_SUPPLY: u64 = ONE_ORE.saturating_mul(42_000_000);
/// The target quantity of ORE to be mined per epoch.
/// Inflation rate ≈ 1 ORE / min (min 0, max 2)
pub const TARGET_EPOCH_REWARDS: u64 = ONE_ORE.saturating_mul(EPOCH_MINUTES as u64);
/// The maximum quantity of ORE that can be mined per epoch.
pub const MAX_EPOCH_REWARDS: u64 = TARGET_EPOCH_REWARDS.saturating_mul(3);
/// Inflation rate ≈ 1 ORE / min (min 0, max 5)
pub const MAX_EPOCH_REWARDS: u64 = TARGET_EPOCH_REWARDS.saturating_mul(5);
/// The quantity of ORE each bus is allowed to issue per epoch.
pub const BUS_EPOCH_REWARDS: u64 = MAX_EPOCH_REWARDS.saturating_div(BUS_COUNT as u64);