27 lines
589 B
Rust
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%
|
|
}
|