diff --git a/libraries/chain/database.cpp b/libraries/chain/database.cpp index b345331a59..f29a2d6121 100644 --- a/libraries/chain/database.cpp +++ b/libraries/chain/database.cpp @@ -2334,15 +2334,6 @@ namespace golos { namespace chain { uint64_t database::pay_curator(const comment_vote_object& cvo, uint64_t claim, const account_name_type& author, const std::string& permlink) { const auto &voter = get(cvo.voter); - uint64_t to_author = 0; - if (has_hardfork(STEEMIT_HARDFORK_0_21__1014)) { - to_author = (uint128_t(claim) * cvo.author_promote_rate / STEEMIT_100_PERCENT).to_uint64(); - claim -= to_author; - if (claim == 0) { - return to_author; - } - } - if (has_hardfork(STEEMIT_HARDFORK_0_19__756)) { claim -= pay_delegators(voter, cvo, claim); } @@ -2393,6 +2384,9 @@ namespace golos { namespace chain { } if (claim > 0) { // min_amt is non-zero satoshis + if (has_hardfork(STEEMIT_HARDFORK_0_21__1014)) { + claim -= (uint128_t(claim) * (*itr->vote).author_promote_rate / STEEMIT_100_PERCENT).to_uint64(); + } unclaimed_rewards -= claim; unclaimed_rewards += pay_curator(*itr->vote, claim, c.comment.author, to_string(c.comment.permlink)); } else {