Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

Commit

Permalink
Do not promote author by auction curator payout #1014
Browse files Browse the repository at this point in the history
  • Loading branch information
maslenitsa93 committed Jul 4, 2019
1 parent e3ea9b2 commit 7fe9a00
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions libraries/chain/database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 7fe9a00

Please sign in to comment.