7 namespace database_ns {
15 if (dprops_service.
head_block_time() < SCORUM_FIFA_WORLD_CUP_2018_BOUNTY_CASHOUT_DATE)
20 auto& fifa_world_cup_2018_bounty_reward_fund_service
21 = ctx.
services().content_fifa_world_cup_2018_bounty_reward_fund_service();
23 if (!fifa_world_cup_2018_bounty_reward_fund_service.is_exists())
29 = fifa_world_cup_2018_bounty_reward_fund_service.get();
39 = [&](
const comment_object& c) {
return c.net_rshares > 0 && c.cashout_time == fc::time_point_sec::maximum(); };
40 auto comments = comment_service.
get_by_create_time(SCORUM_FIFA_WORLD_CUP_2018_BOUNTY_CASHOUT_DATE, fn_filter);
44 impl.
reward(fifa_world_cup_2018_bounty_reward_fund_service, comments);
48 if (balance.amount > 0 && !comments.empty())
50 wlog(
"There is precision remainder = ${r}", (
"r", balance));
55 const auto& oldest_comment = comments[0];
59 fifa_world_cup_2018_bounty_reward_fund_service.update([&](
62 else if (balance.amount > 0)
64 wlog(
"Fund ${a} is not distributed", (
"a", balance));
68 fifa_world_cup_2018_bounty_reward_fund_service.update([&](
data_service_factory_i & services() const
block_info & get_block_info() const
asset activity_reward_balance
#define debug_log(CTX, FORMAT,...)
virtual void update(const modifier_type &modifier)=0
virtual void on_apply(block_task_context &)
virtual fc::time_point_sec head_block_time() const =0