Skip to content

Commit

Permalink
Merge pull request #316 from fioprotocol/develop
Browse files Browse the repository at this point in the history
2.9.x rc update from develop
  • Loading branch information
misterleet authored Aug 17, 2023
2 parents f2827eb + 0f15ccc commit 1d14bdf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions contracts/fio.system/src/voting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,10 @@ namespace eosiosystem {
p.id = id;
p.owner = actor;
});
}else{
if((voter_proxy_iter->last_vote_weight > 0)&&!(voter_proxy_iter->proxy)) {
_gstate.total_voted_fio -= voter_proxy_iter->last_vote_weight;
}
}

//note -- we can call these lock token computations like this
Expand Down Expand Up @@ -1054,6 +1058,11 @@ namespace eosiosystem {
processrewardsnotpid(reg_amount, get_self());
//end new fees, logic for Mandatory fees.

INLINE_ACTION_SENDER(eosiosystem::system_contract, updatepower)
("eosio"_n, {{_self, "active"_n}},
{actor, false}
);

const string response_string = string("{\"status\": \"OK\",\"fee_collected\":") +
to_string(reg_amount) + string("}");
fio_400_assert(transaction_size() <= MAX_TRX_SIZE, "transaction_size", std::to_string(transaction_size()),
Expand Down Expand Up @@ -1172,6 +1181,7 @@ namespace eosiosystem {
votersbyowner.modify(pitr, same_payer, [&](auto &p) {
p.fioaddress = fio_address;
p.addresshash = addresshash;
p.proxied_vote_weight = 0;
p.is_proxy = isproxy;
p.is_auto_proxy = false;
p.proxy = nm;
Expand Down

0 comments on commit 1d14bdf

Please sign in to comment.