pub(crate) fn router_reward<S>(state: S) -> ApiRouterwhere S: RewardApi + Clone + Send + Sync + 'static,