Skip to content

Commit

Permalink
updated #548
Browse files Browse the repository at this point in the history
  • Loading branch information
kudzinp committed Apr 16, 2019
1 parent a762a53 commit 3df50f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions golos.vesting/golos.vesting.cpp
Expand Up @@ -353,7 +353,7 @@ void vesting::timeoutrdel() {
eosio_assert(balance_recipient != account_recipient.end(), "This token is not on the sender balance sheet");
account_recipient.modify(balance_recipient, name(), [&](auto &item){
item.delegated -= obj->quantity;
send_acc_and_quantity_event(obj->delegator, item.delegated);
send_acc_and_quantity_event(item);
});
obj = index.erase(obj);
}
Expand Down Expand Up @@ -444,8 +444,8 @@ void vesting::send_quantity_event(asset quantity) {
eosio::event(_self, "quantity"_n, quantity).send();
}

void vesting::send_acc_and_quantity_event(name account, asset quantity) {
eosio::event(_self, "accquantity"_n, std::make_tuple(account, quantity)).send();
void vesting::send_acc_and_quantity_event(const return_delegation& rdlg) {
eosio::event(_self, "accquantity"_n, std::make_tuple(rdlg.delegator, rdlg.quantity)).send();
}

int64_t fix_precision(const asset from, const symbol to) {
Expand Down
2 changes: 1 addition & 1 deletion golos.vesting/golos.vesting.hpp
Expand Up @@ -172,7 +172,7 @@ class vesting : public contract {
void add_balance(name owner, asset value, name ram_payer);
void send_account_event(name account, const struct account& balance);
void send_quantity_event(asset quantity);
void send_acc_and_quantity_event(name account, asset quantity);
void send_acc_and_quantity_event(const return_delegation& rdlg);

const asset vesting_to_token(const asset& vesting, const vesting_stats& vinfo, int64_t correction) const;
const asset token_to_vesting(const asset& token, const vesting_stats& vinfo, int64_t correction) const;
Expand Down

0 comments on commit 3df50f0

Please sign in to comment.