Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
andymck committed Dec 5, 2023
1 parent 5b8457c commit 5a511d6
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions mobile_verifier/src/rewarder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -471,19 +471,3 @@ async fn save_next_rewarded_end_time(
) -> db_store::Result<()> {
meta::store(exec, "next_rewarded_end_time", value.timestamp()).await
}

pub fn create_unallocated_reward(
unallocated_type: UnallocatedRewardType,
unallocated_amount: u64,
reward_period: &'_ Range<DateTime<Utc>>,
) -> anyhow::Result<proto::MobileRewardShare> {
let reward = UnallocatedReward {
reward_type: unallocated_type as i32,
amount: unallocated_amount,
};
Ok(proto::MobileRewardShare {
start_period: reward_period.start.encode_timestamp(),
end_period: reward_period.end.encode_timestamp(),
reward: Some(ProtoReward::UnallocatedReward(reward)),
})
}

0 comments on commit 5a511d6

Please sign in to comment.