nu-node/crates/nu-vm/src/rewards.rs
Mukan Erkin 5430c34d9e feat(nu-node): initial Faz 0 scaffold
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 00:00:26 +03:00

27 lines
589 B
Rust

pub const NODE_REWARD_TOTAL: u64 = 100_000_000; // 100 NUT in micro-units
pub struct RewardSplit {
pub voters: u64, // 50%
pub author: u64, // 25%
pub burn: u64, // 25%
}
pub fn community_split() -> RewardSplit {
RewardSplit {
voters: NODE_REWARD_TOTAL / 2,
author: NODE_REWARD_TOTAL / 4,
burn: NODE_REWARD_TOTAL / 4,
}
}
pub fn genesis_split() -> u64 {
NODE_REWARD_TOTAL // 100% to dev wallet
}
pub fn entry_fee(reward: u64) -> u64 {
reward / 4 // 25%
}
pub fn vote_stake_lock(reward: u64) -> u64 {
reward / 10 // 10%
}