Payout operation fix
This commit is contained in:
parent
b40e823875
commit
9e624bd2c8
1 changed files with 3 additions and 2 deletions
|
|
@ -85,8 +85,9 @@ namespace graphene { namespace chain {
|
|||
{
|
||||
for( const auto& entry : accumulator )
|
||||
{
|
||||
_db.adjust_balance( entry.first, asset( entry.second, payout_asset ) );
|
||||
_db.push_applied_operation( affiliate_payout_operation( entry.first, tag, entry.second ) );
|
||||
asset payout = asset( entry.second, payout_asset );
|
||||
_db.adjust_balance( entry.first, payout );
|
||||
_db.push_applied_operation( affiliate_payout_operation( entry.first, tag, payout ) );
|
||||
}
|
||||
accumulator.clear();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue