Skip to content

Commit

Permalink
Merge pull request #888 from cyberway/fix-unvote
Browse files Browse the repository at this point in the history
Fix unvote.
  • Loading branch information
afalaleev committed Aug 14, 2019
2 parents 55d69be + 6ea154a commit 4785f83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion golos.publication/golos.publication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ fixp_t publication::calc_available_rshares(name voter, int16_t weight, uint64_t
auto used_power = use_charge(lims, structures::limitparams::VOTE, token::get_issuer(config::token_name, token_code),
voter, eff_vesting, token_code, false, weight);
fixp_t abs_rshares = FP(eff_vesting) * elaf_t(elai_t(used_power) / elai_t(config::_100percent));
eosio::check(abs_rshares >= FP(params().min_abs_rshares_param.value), "too low vote weight");
eosio::check(!weight || abs_rshares >= FP(params().min_abs_rshares_param.value), "too low vote weight");
return (weight < 0) ? -abs_rshares : abs_rshares;
}

Expand Down

0 comments on commit 4785f83

Please sign in to comment.