Skip to main content

royalty_tree_total

Function royalty_tree_total 

Source
pub fn royalty_tree_total(
    total_royalty: u64,
    generations: u32,
    share_percent: u64,
) -> u64
Expand description

Total royalty distributed up a chain of generations ancestors (the sum of each generation’s geometric share) — what leaves the deriving work as upstream attribution.