Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
justfortest2 committed Jul 29, 2020
1 parent 534235c commit 90818f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ibc.token/src/ibc.token.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1696,8 +1696,10 @@ namespace eosio {
ibc_withdraw = true;
}

const auto& acpt = get_currency_accept(hub_trx_p->to_quantity.symbol.code());
require_auth( acpt.administrator );

if ( ! ibc_withdraw ){ // rollback ibc transfer
const auto& acpt = get_currency_accept(hub_trx_p->to_quantity.symbol.code());
_accepts.modify( acpt, same_payer, [&]( auto& r ) {
r.accept -= hub_trx_p->to_quantity;
r.total_transfer -= hub_trx_p->to_quantity;
Expand Down

0 comments on commit 90818f7

Please sign in to comment.