diff --git a/libraries/chain/database.cpp b/libraries/chain/database.cpp index f00820dc00..f2afe04e6f 100644 --- a/libraries/chain/database.cpp +++ b/libraries/chain/database.cpp @@ -2430,6 +2430,10 @@ namespace golos { namespace chain { for (auto itr = c.vote_list.begin(); c.vote_list.end() != itr; ++itr) { uint128_t weight(itr->weight); uint64_t claim = ((max_rewards.value * weight) / total_weight).to_uint64(); + if (has_hardfork(STEEMIT_HARDFORK_0_22__1014)) { + claim -= (uint128_t(claim) * (*itr->vote).author_promote_rate / STEEMIT_100_PERCENT).to_uint64(); + } + // to_curators case if (c.comment.auction_window_reward_destination == protocol::to_curators && itr->vote->auction_time == c.comment.auction_window_size @@ -2446,9 +2450,6 @@ namespace golos { namespace chain { } if (claim > 0) { // min_amt is non-zero satoshis - if (has_hardfork(STEEMIT_HARDFORK_0_22__1014)) { - claim -= (uint128_t(claim) * (*itr->vote).author_promote_rate / STEEMIT_100_PERCENT).to_uint64(); - } unclaimed_rewards -= claim; actual_rewards += pay_curator(*itr->vote, claim, c.comment.author, to_string(c.comment.permlink)); } else {