From a81b1851ce27b28654e2222d7abf0ce7306ff4df16f4dd3085517197d60f7c9f Mon Sep 17 00:00:00 2001 From: Mukan Erkin Date: Fri, 24 Apr 2026 11:11:35 +0300 Subject: [PATCH] feat(vm): define Shell/NUT/NU constants, set NODE_REWARD to 100 NUT --- crates/nu-vm/src/rewards.rs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/crates/nu-vm/src/rewards.rs b/crates/nu-vm/src/rewards.rs index a9901bd..eeac365 100644 --- a/crates/nu-vm/src/rewards.rs +++ b/crates/nu-vm/src/rewards.rs @@ -1,9 +1,14 @@ -pub const NODE_REWARD_TOTAL: u64 = 100_000_000; // 100 NUT in micro-units +pub const SHELL_PER_NUT: u64 = 1_000; +pub const NUT_PER_NU: u64 = 100; +pub const SHELL_PER_NU: u64 = SHELL_PER_NUT * NUT_PER_NU; // 100_000 + +pub const NODE_REWARD_NUT: u64 = 100; +pub const NODE_REWARD_TOTAL: u64 = NODE_REWARD_NUT * SHELL_PER_NUT; // 100,000 Shell pub struct RewardSplit { - pub voters: u64, // 50% - pub author: u64, // 25% - pub burn: u64, // 25% + pub voters: u64, // 50% + pub author: u64, // 25% + pub burn: u64, // 25% } pub fn community_split() -> RewardSplit {