pub fn calc_voter_rewards(
    vote_count: VoteCount,
    voters: Vec<SnapshotInfo>,
    vote_threshold: Threshold,
    total_rewards: Rewards
) -> Result<BTreeMap<RewardAddress, Rewards>, Error>