Skip to content

Commit

Permalink
delete pct and change memo
Browse files Browse the repository at this point in the history
  • Loading branch information
Alladin9393 committed Dec 27, 2019
1 parent 2a8edfe commit c9163cb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions contracts/contracts/rem.system/src/producer_pay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,7 @@ namespace eosiosystem {
transfer_act.send( vpay_account, producer, asset(producer_per_vote_pay, core_symbol()), "producer vote pay" );
}
if ( punishment > 0 ) {
double pct_missed_blocks = 100 - (prod.unpaid_blocks / double(expected_produced_blocks)) * 100;
string punishment_memo = "punishment transfer: missed blocks - " + std::to_string(expected_produced_blocks - prod.unpaid_blocks) + " (" + std::to_string(pct_missed_blocks) + "%)";

string punishment_memo = "punishment transfer: missed " + std::to_string(expected_produced_blocks - prod.unpaid_blocks) + " blocks out of " + std::to_string(expected_produced_blocks);
token::transfer_action transfer_act{ token_account, { {vpay_account, active_permission} } };
transfer_act.send( vpay_account, saving_account, asset(punishment, core_symbol()), punishment_memo );
}
Expand Down

0 comments on commit c9163cb

Please sign in to comment.